Page MenuHomePhabricator

GPG error: http://nova.clouds.archive.ubuntu.com precise Release BADSIG 40976EAF437D05B5
Closed, ResolvedPublic

Description

While running apt-get update on deployment-bastion.eqiad.wmflabs I am yield:

W: GPG error: http://nova.clouds.archive.ubuntu.com precise Release:
The following signatures were invalid:
     BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

The sig does not show up in the output of apt-key list.

Event Timeline

hashar raised the priority of this task from to Needs Triage.
hashar updated the task description. (Show Details)
hashar subscribed.

http://ubuntuforums.org/showthread.php?t=802156

tldr: bad proxies

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

?

other method, delete list files and have them re-created

http://www.ubuntugeek.com/how-to-fix-the-ubuntu-gpg-error-badsig.html

Dzahn claimed this task.

fixed with method 2:

# apt-get clean
# cd /var/lib/apt
# mv lists lists.old
# mkdir -p lists/partial
# apt-get clean

root@deployment-bastion:/var/lib/apt# apt-get update
...
Hit http://nova.clouds.archive.ubuntu.com precise-updates/universe Translation-en
Fetched 3,132 kB in 3s (804 kB/s)
Reading package lists... Done
root@deployment-bastion:/var/lib/apt#

root@deployment-bastion:~# apt-key list | grep -B1 ftpmaster
pub   1024D/437D05B5 2004-09-12
uid                  Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
--
pub   4096R/C0B21F32 2012-05-11
uid                  Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>

Thanks a ton @Dzahn for the fix, the reference and the detailed step by step instructions!