6

Before you mark this one duplicate hear me out:

When I run sudo apt-get update I'm getting the following classic error:

W: GPG error: http://de.archive.ubuntu.com trusty-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>

So the first thing I've tried was of course

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

which updated the key with new signatures but didn't solve the GPG error. If I run it again the key remains unchanged.

I did some research (read about 10 questions around here, all marked duplicate) and also tried removing /var/lib/apt/lists (https://askubuntu.com/a/64544/43951), which also didn't do it.

If I run

sudo aptitude -o Acquire::http::No-Cache=True -o Acquire::BrokenProxy=true update

I don't get the signature error but bad hashes:

W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages: Hash Sum mismatch
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages: Hash Sum mismatch
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages: Hash Sum mismatch
13
  • 2
    Tried a different mirror?
    – muru
    Feb 21, 2015 at 9:49
  • 1
    @muru That did the trick. Seems http://de.archive.ubuntu.com was faulty. http://archive.ubuntu.com works :-) Feb 21, 2015 at 10:06
  • 2
    @muru I'd say this deserves to be converted to a proper answer.
    – Jos
    Feb 21, 2015 at 11:29
  • 1
    @Fabby I voted to close as localised actually. I'd bet that if op tried now, or in a couple of days, the mirror would be fine.
    – muru
    Feb 21, 2015 at 23:30
  • 1
    In which case, I think the answer should be on the original GPG post. I'll mark to close as a dupe and flag for merging.
    – muru
    Feb 22, 2015 at 0:05

1 Answer 1

4

Try a different mirror, like to the non-regional specific http://archive.ubuntu.com. Doing this is covered here.

You can also find out more mirrors on the Wiki.

Not the answer you're looking for? Browse other questions tagged .