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: http://archive.ubuntu.com raring Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

E: Encountered a section with no Package: header

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

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

gpg-error-ubuntu

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 http://archive.canonical.com/ubuntu/ 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!!!

Related Posts Plugin for WordPress, Blogger...

  • 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 :)