Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to update package's repository but APT gives me this error:

W: Errore GPG: precise Release: Le seguenti firme non erano valide: BADSIG XXXXXXXXXXXXXXXX Ubuntu Archive Automatic Signing Key

The Ubuntu Archive Automatic Signing Key is not valid. Can this problem make APT not to download important updates for my system? I'm using Ubuntu 12.04. Thank you!

share|improve this question
Trying to update package's repository to which repository? There may be a good reason for the error in that the repository you're trying to assign may contain malware. – TeXnewbie Nov 1 '12 at 21:06

You can try to fix it using the following commands:

The easiest way:

sudo apt-key adv --recv-keys --keyserver THE_KEY

Where "THE_KEY" is the repository key which you've masked with XXXXXXXXXXXX for some reason.

If that doesn't work, try this:

sudo apt-get install aptitude
sudo aptitude -o Acquire::http::No-Cache=True -o Acquire::BrokenProxy=true update
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

You can also use Y PPA Manager which has options to automatically import missing GPG keys and fix BADSIG errors.

share|improve this answer

In the absence of other details (see comment), I'm thinking that the answer to your question is that the problem you describe is unlikely to cause you to miss important updates.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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