[Solved] Could not Ddownload all Repository Indexes

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
mikeflan
Level 17
Level 17
Posts: 7155
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

[Solved] Could not Ddownload all Repository Indexes

Post by mikeflan »

When I start Update Manager it works fine. I can update no problem.
But if I hit "Refresh" it gives this error:

Code: Select all

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.

An error occurred during the signature verification. The repository is not updated and the previous 
index files will be used. GPG error: https://qgis.org/debian bionic InRelease: The following signatures 
couldn't be verified because the public key is not available: NO_PUBKEY 46B5721DBBD2996AFailed to 
fetch https://qgis.org/debian/dists/bionic/InRelease  The following signatures couldn't be verified 
because the public key is not available: NO_PUBKEY 46B5721DBBD2996ASome index files failed to 
download. They have been ignored, or old ones used instead.
I tried this:

Code: Select all

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 46B5821DBBD2996A
sudo apt update
from this topic:
viewtopic.php?f=90&t=311808

The first command responds with this:

Code: Select all

$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 46B5821DBBD2996A
[sudo] password for mike:     
Executing: /tmp/apt-key-gpghome.axyqGcUckx/gpg.1.sh --recv-keys --keyserver keyserver.ubuntu.com 46B5821DBBD2996A
gpg: keyserver receive failed: No data
It happens on both my machines - LM 19.3 and LM 20.1.

I'm going to be travelling, so won't respond too often in the next 2-3 days.

I'm running LM19.3 Cinnamon.
Repos inxi says:

Code: Select all

$ inxi -r
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
           1: deb https://qgis.org/debian bionic main
           Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list 
           1: deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com tricia main upstream import backport
           2: deb http://archive.linux.duke.edu/ubuntu bionic main restricted universe multiverse
           3: deb http://archive.linux.duke.edu/ubuntu bionic-updates main restricted universe multiverse
           4: deb http://archive.linux.duke.edu/ubuntu bionic-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ bionic partner
           Active apt repos in: /etc/apt/sources.list.d/teams.list 
           1: deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main
           Active apt repos in: /etc/apt/sources.list.d/thomas_tsai-ubuntu-tuxboot-bionic.list 
           1: deb http://ppa.launchpad.net/thomas.tsai/ubuntu-tuxboot/ubuntu bionic main
sudo apt update lists 10 hits, and then gives this:

Code: Select all

Get:12 https://qgis.org/debian bionic InRelease [3,705 B]                
Err:12 https://qgis.org/debian bionic InRelease                 
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 46B5721DBBD2996A
Fetched 3,705 B in 1s (3,079 B/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
25 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://qgis.org/debian bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 46B5721DBBD2996A
W: Failed to fetch https://qgis.org/debian/dists/bionic/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 46B5721DBBD2996A
W: Some index files failed to download. They have been ignored, or old ones used instead.
I have not done a ton of research on this yet, but I will in 3-4 days if nobody comes up with an easy fix.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: Could not Ddownload all Repository Indexes

Post by sleeper12 »

I think you entered the wrong number, try:

Code: Select all

 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 46B5721DBBD2996A 

Code: Select all

 sudo apt update
mikeflan
Level 17
Level 17
Posts: 7155
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Could not Ddownload all Repository Indexes

Post by mikeflan »

Thanks so much sleeper. Very much appreciated. I don't know how this problem developed, but I have it on at least 2 computers - probably 3. It sure worked for fixing my main computer. I have some research to do to figure out why this fixes it.

Code: Select all

$ sudo apt update
Ign:1 http://packages.linuxmint.com tricia InRelease
Hit:2 http://packages.microsoft.com/repos/code stable InRelease                                       
Hit:3 http://archive.linux.duke.edu/ubuntu bionic InRelease                                           
Hit:4 http://packages.linuxmint.com tricia Release                                                    
Hit:5 http://archive.linux.duke.edu/ubuntu bionic-updates InRelease                                   
Hit:6 https://packages.microsoft.com/repos/ms-teams stable InRelease                                  
Hit:7 http://ppa.launchpad.net/thomas.tsai/ubuntu-tuxboot/ubuntu bionic InRelease                     
Hit:8 http://archive.linux.duke.edu/ubuntu bionic-backports InRelease                                 
Hit:9 http://security.ubuntu.com/ubuntu bionic-security InRelease                                     
Hit:10 http://dl.google.com/linux/earth/deb stable InRelease                                          
Hit:11 http://archive.canonical.com/ubuntu bionic InRelease                                   
Get:13 https://qgis.org/debian bionic InRelease [3,705 B]                
Fetched 3,705 B in 2s (2,278 B/s)                             
Reading package lists... Done
Building dependency tree       
Reading state information... Done
107 packages can be upgraded. Run 'apt list --upgradable' to see them.
So now I am good. Thanks again.
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: [Solved] Could not Ddownload all Repository Indexes

Post by sleeper12 »

Glad it worked for you. In case I wasn't clear, you previously entered:
46B5821DBBD2996A

Should be:
46B5721DBBD2996A
mikeflan
Level 17
Level 17
Posts: 7155
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: [Solved] Could not Ddownload all Repository Indexes

Post by mikeflan »

Doh. The lightbulb comes on :idea:
Locked

Return to “Software & Applications”