Could not download all repository indexes (for Stretch)

If none of the more specific forums is the right place to ask

Could not download all repository indexes (for Stretch)

Postby z0rk » 2017-06-22 13:27

Distributor ID: Debian
Description: Debian GNU/Linux 9.0 (stretch)
Release: 9.0
Codename: stretch

Gnome Version 3.22.2

I've installed Stretch from scratch to a new laptop. After install when I check Reload in Synaptic I get the following:


Could not download all repository indexes

The repository may no longer be available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and ensure the repository address in the preferences is correct.
GPG error: http://mirrors.kernel.org/debian stretch-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010The repository 'http://mirrors.kernel.org/debian stretch-updates InRelease' is not signed.Updating from such a repository can't be done securely, and is therefore disabled by default.See apt-secure(8) manpage for repository creation and user configuration details.GPG error: http://mirrors.kernel.org/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY CBF8D6FD518E17E1 NO_PUBKEY EF0F382A1A7B6500The repository 'http://mirrors.kernel.org/debian stretch Release' is not signed.Updating from such a repository can't be done securely, and is therefore disabled by default.See apt-secure(8) manpage for repository creation and user configuration details.The repository 'http://deb.debian.org/debian stretch/updates Release' does not have a Release file.

I've tried to manually import the GPG keys as follows, but failed:

gpg --keyserver pgpkeys.mit.edu --recv-key CBF8D6FD518E17E1
gpg -a --export CBF8D6FD518E17E1 | sudo apt-key add -

~$ gpg --keyserver pgpkeys.mit.edu --recv-key 8B48AD6246925553
gpg: key 8B48AD6246925553: public key "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1
~$ gpg -a --export 8B48AD6246925553 | sudo apt-key add -
gpg: Warning: 1 key skipped due to its large size
gpg: Warning: 1 key skipped due to its large size
OK
z0rk
 
Posts: 11
Joined: 2016-03-20 20:59


Re: Could not download all repository indexes (for Stretch)

Postby z0rk » 2017-06-23 02:42

Thanks for the link... but no dice.

1) Tried first option; import fails
wget -O - https://ftp-master.debian.org/keys/arch ... curity.asc | apt-key add -
--2017-06-22 20:22:17-- https://ftp-master.debian.org/keys/arch ... curity.asc
Resolving ftp-master.debian.org (ftp-master.debian.org)... 138.16.160.17
Connecting to ftp-master.debian.org (ftp-master.debian.org)|138.16.160.17|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7024 (6.9K) [text/plain]
Saving to: ‘STDOUT’

- 100%[========================>] 6.86K --.-KB/s in 0s

2017-06-22 20:22:18 (296 MB/s) - written to stdout [7024/7024]

gpg: Warning: 1 key skipped due to its large size
gpg: Warning: 1 key skipped due to its large size
OK

2) Tried second option; import succeeds, but Reload in Synaptic (or apt-get update) generates same error message as mentioned in my first post
sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key EF0F382A1A7B6500
sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key CBF8D6FD518E17E1
sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 7638D0442B90D010
sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 8B48AD6246925553

sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 8B48AD6246925553
gpg: key 8B48AD6246925553: public key "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1

I really don't understand why I am getting these error after a FRESH install (NOT upgrade from Jessie) of Stretch?

Thanks
z0rk
 
Posts: 11
Joined: 2016-03-20 20:59

Re: Could not download all repository indexes (for Stretch)

Postby swissk » 2017-07-15 19:37

Same problem here. In my case, dirmngr did not get installed. Installed it and it gpg error was gone.
swissk
 
Posts: 1
Joined: 2017-07-15 19:31

Re: Could not download all repository indexes (for Stretch)

Postby Bulkley » 2017-07-15 20:32

What is this for?
Code: Select all
hkp://keyserver.ubuntu.com:80
Bulkley
 
Posts: 5190
Joined: 2006-02-11 18:35


Return to General Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable