Unable to install any packages through Software Center

Asked by Russ Spencer

I get the "Untrusted packages" warning and can't install anything. Ran "sudo apt-get update" and got the following message at the end:

GPG error: http://extras.ubuntu.com raring Release:: The following signatures were invalid: BADSIG 16126D3A3E5C1192
GPG error: http://us.archive.ubuntu.com raring Release: The following signatures were invalid: BADSIG 40976EAF437D05B5

Any help will be appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
N1ck 7h0m4d4k15
Solved:
Last query:
Last reply:
Revision history for this message
Thomas Krüger (thkrueger) said :
#1

Most likely the packages that have been download where not transmitted correctly. There can be many causes for this. From a simple technical malfunction to a try to temper with the packages from an attacker. In either way you are not having the package the Ubuntu team has released.

You should try:

1. Reboot the machine and if available the router. That will reset all DNS caches and give you an other download server.
2. Switch the download server in Edit → Software Sources…
3. Wait a few hours, so that there is time to get possible server problems fixed.

Revision history for this message
Best N1ck 7h0m4d4k15 (nicktux) said :
#2

Try to add again the keys into ubuntu keyring with the following commands

sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 16126D3A3E5C1192
sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 40976EAF437D05B5

Then remove the old lists

sudo rm -rf /var/lib/apt/lists/*

be careful to not misspelling the above command (copy-paste from here)

then try to update again

sudo apt-get update

Regards
 NikTh

Revision history for this message
Russ Spencer (spence-w) said :
#3

Thanks Nik.Th., that solved my question.

Revision history for this message
Russ Spencer (spence-w) said :
#4

Thomas Kruger, thank you for your reply. I will definitely reboot my router, as I keep forgetting to do it on a regular basis.