Solve W: GPG error in Ubuntu 13.04 / 12.10 / 12.04

In Ubuntu 13.04 / 12.10 / 12.04, while updating your system you might face this GPG problems.

W: GPG error: raring Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <>

E: Encountered a section with no Package: header

E: Problem with MergeList /var/lib/apt/lists/download.virtualbox.org_virtualbox_debian_dists_raring_contrib

E: The package lists or status file could not be parsed or opened.


To Solve this Error

Run the following commands one by one in the terminal (Ctrl+alt+t) and issue the password for the user, when prompted.

cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
cd ~
sudo apt-get update

ubuntu-gpg-error update-error-ubuntu


To solve duplicate entry error

Error : “W: Duplicate sources.list entry raring/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_raring_partner_binary-i386_Packages)”

Follow the below link

Fix : W: Duplicate sources.list entry in ubuntu 13.04 raring

Hope this will be helpful for you!!!

  • Marwan Bel Hadj Ali

    yes very helpful thanks

  • Edward Durden

    dont work

  • Prasanna Venkadesh

    Cool, it solved. Thanks bro :-) Now can we delete the renamed directory ‘lists.old’ ?

    • Manivannan M

      Yes, you can :)