Error when updating Ubuntu
By Rayed
Lately I migrated all of my server to Ubuntu server, what I really loved about it the easy of updating the system, all I need to is:
$ sudo aptitude update # to update packages meta data
$ sudo aptitude safe-upgrade # to perform the actual upgrade
But sometimes on of the package information meta data files get corrupted, and I will get this error:
$ sudo aptitude update
:
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://security.ubuntu.com hardy-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: You may want to run apt-get update to correct these problems
To solve this problem, try:
sudo rm /var/lib/apt/lists/partial/*
sudo apt-get update -o Acquire::http::No-Cache=true