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.

Possible Duplicate:
What is the easiest way to resolve apt-get BADSIG GPG errors?

I use ubuntu 11.10 latest update, but when I change the ubuntu update server to the main server i get this error:

sudo apt-get update
......
......

Hit http://archive.ubuntu.com oneiric-security/universe Translation-en
Fetched 198 B in 16s (11 B/s)
Reading package lists... Done
W: GPG error: http://archive.ubuntu.com oneiric-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>

i tried many solutions from google but nothing helps. Any ideas?

share|improve this question

marked as duplicate by fossfreedom, Jorge Castro, htorque, Oli Jan 3 '12 at 15:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 1 down vote accepted

First of all try

sudo apt-get clean

sudo apt-get update && sudo apt-get upgrade

Some ISPs cache the packages and errors like these are reported then. If the above commands don't work, try

sudo apt-get update -o Acquire::http::No-Cache=True

and again

sudo apt-get update && sudo apt-get upgrade

If it still doesn't work,

sudo apt-get update -o Acquire::BrokenProxy=true 

sudo apt-get update && sudo apt-get upgrade

If all set, u can make it permanent, so that no problem in future persists by editing

/etc/apt/apt.conf

APT 
{
// Options for the downloading routines
  Acquire
  {
    http
    {
      No-Cache "true";
    };
  };
}
share|improve this answer
    
I tried all these solution and still have the error message. My problem was, that my Virtual Ubuntu freeze while I'm installing sublime. And now apt is broken and always see this error. Any help? thanks. –  Kostanos Sep 10 '13 at 21:10

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