Bug#861751: [apt] apt-key cannot add new keys for new repositories
Package: apt
Version: 1.4.1
Severity: important
--- Please enter the report below this line. ---
apt-key is not able to add new keys for new repositories. I have tried
with many repositories (Google Earth, VirtualBox etc.), for example for
Docker repository:
# curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
Moreover, the file /etc/apt/trusted.gpg has permissions rw------- (is
not readable for _apt user). When I do chmod a+r, this error occurs
after apt update:
# apt update
Stary:1 http://ftp.pl.debian.org/debian stretch InRelease
Stary:2 http://security.debian.org/debian-security stretch/updates InRelease
Błąd:1 http://ftp.pl.debian.org/debian stretch InRelease
Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza
publicznego: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
Błąd:2 http://security.debian.org/debian-security stretch/updates InRelease
Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza
publicznego: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
All packages are up to date.
W: An error occurred during the signature verification. The repository
is not updated and the previous index files will be used. GPG error:
http://ftp.pl.debian.org/debian stretch InRelease: Następujące podpisy
nie mogły zostać zweryfikowane z powodu braku klucza publicznego:
NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
W: An error occurred during the signature verification. The repository
is not updated and the previous index files will be used. GPG error:
http://security.debian.org/debian-security stretch/updates InRelease:
Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza
publicznego: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
W: Nie udało się pobrać
http://ftp.pl.debian.org/debian/dists/stretch/InRelease Następujące
podpisy nie mogły zostać zweryfikowane z powodu braku klucza
publicznego: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
W: Nie udało się pobrać
http://security.debian.org/debian-security/dists/stretch/updates/InRelease
Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza
publicznego: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
W: Nie udało się pobrać niektórych plików indeksu, zostały one
zignorowane lub użyto ich starszej wersji.
Portions of this output is in Polish, because my localization is
pl_PL.UTF-8.
--- System information. ---
Architecture:
Kernel: Linux 4.9.0-2-amd64
Debian Release: 9.0
500 testing ftp.pl.debian.org
--- Package information. ---
Depends (Version) | Installed
=======================================-+-=============
adduser | 3.115
gpgv | 2.1.18-6
OR gpgv2 |
OR gpgv1 |
debian-archive-keyring | 2014.3
init-system-helpers (>= 1.18~) | 1.47
libapt-pkg5.0 (>= 1.3~rc2) | 1.4.1
libc6 (>= 2.15) | 2.24-10
libgcc1 (>= 1:3.0) | 1:6.3.0-14
libstdc++6 (>= 5.2) | 6.3.0-14
Recommends (Version) | Installed
=========================-+-===========
gnupg | 2.1.18-6
OR gnupg2 | 2.1.18-6
OR gnupg1 |
Suggests (Version) | Installed
==============================-+-============
apt-doc | 1.4.1
aptitude |
OR synaptic |
OR wajig |
dpkg-dev (>= 1.17.2) | 1.18.23
powermgmt-base | 1.31+nmu1
python-apt | 1.4.0~beta3
--- Output from package bug script ---
Reply to: