Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Any install that I'm trying through the Software Center is telling me:

Requires installation of untrusted packages: The action would require the installation of packages from not authenticated sources.

I did an apt-get update from the command line, then removed the software sources that the keys were bad from (PPAs I added myself), and unchecked them in the software sources for software center, but to no avail. I can't install anything from software center anymore - only> from the command line with apt-get.

Is uninstalling/installing the only option? I don't want to break other PPAs that I have.

Additional information:

Here's a paste from apt-get update:

Reading package lists... Done
W: GPG error: http://ppa.launchpad.net oneiric Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B725097B3ACC3965
W: GPG error: http://us.archive.ubuntu.com oneiric Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

I've tried apt-key update, and there was no effect (two keys unchanged).

The output of apt-get update and apt-get upgrade, and the contents of /etc/apt/sources.list, can be found in this pastebin post.

share|improve this question
    
please add the full output of cat /etc/apt/sources.list as well as sudo apt-get update && sudo apt-get upgrade –  fossfreedom Dec 6 '11 at 17:01
1  
    
Had to snip some output because I hit the body limit. –  b. e. hollenbeck Dec 6 '11 at 18:12
    
If you use the Muon Update Manager instead, it allows you to override warnings about unsigned packages, rather like the standard update manager did in version prior to 10.04. –  user77363 Jul 16 '12 at 14:27

3 Answers 3

up vote 71 down vote accepted

Open the Terminal and enter the commands below one by one:

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update
share|improve this answer
8  
Thanks, but why is this required of the user, the ubuntu system updater should really try to "do the right thing" –  Chris Nicola Jun 1 '12 at 16:59
3  
Solved the problem! @Sadi could you please explain what is happening behind the scenes? Were some of the keys outdated or what? –  Daniel Dinnyes Jul 14 '12 at 13:42
    
this works BUT depending on the country where you are, you MIIGHT get a "SOMETHING WICKED HAPPENED" while updating, indicating that there might be a SOFTWARE SOURCES problem with ubuntu software center (or synaptics). in that case, change from your country's server to main server (ubuntu software center > edit tab > software sources) –  tony gil Dec 6 '12 at 1:32
2  
please refer to @Tom Brossman answer, it is much better one –  sepisoad Dec 10 '12 at 11:57

This is a common problem with Launchpad PPAs. Common enough that I've copied these commands to use when I reinstall or add new Launchpad PPAs.

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

Then,

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys YOURKEYNUMBERHERE  

Substitute YOURKEYNUMBERHERE with the problem keys, like this:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B725097B3ACC3965  

And

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

The first line is almost the same, minus the keys. It might even be optional, I honestly don't know. All I am sure of is that this method always fixes the problem immediately.

If anyone finds the original answer that I copied these from let me know and I'll link to it and give them the attribution.

**EDIT It's almost certainly karthik87's answer here or here I got this from. This can probably be closed as a duplicate.

Either way, don't forget to do a

sudo apt-get update  

after, to fix everything.

share|improve this answer
    
This didn't work for me.. When I try to receive the keys, it show total number processed: 1, and unchanged: also 1. nothing changes. –  Starx Feb 7 '12 at 7:21
    
@Starx You might be better off copying your specific error message into a search engine, or posting it here as a new question. Also, take a look at the Related Questions in the sidebar to the right. There are a lot of problems similar to this, and several different solutions. Sorry I can't be more help. –  Tom Brossman Feb 7 '12 at 9:28
    
I have posted a question here. Please see it –  Starx Feb 7 '12 at 10:17
    
@TomBrossman I was able to repair the GPG error using your method without the first line. –  Mario Nov 6 '13 at 23:12

Maybe you could try changing to Main Server in Software Sources, where it says Download from.

share|improve this answer

protected by Radu Rădeanu Jan 26 at 8:59

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.