After Update I received an Error Message "Error opening cache

Asked by David Hope

E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages, E:The package lists or status file could not be parsed or opened

When I tried "sudo apt-get update" I received the following:

Reading package lists... Error!
W: GPG error: http://security.ubuntu.com precise-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG E61380B28313A596 Launchpad synergy+
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <email address hidden>

W: GPG error: http://us.archive.ubuntu.com precise-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: GPG error: http://us.archive.ubuntu.com precise-backports Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release

W: Some index files failed to download. They have been ignored, or old ones used instead.
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.

I also attempted "sudo apt-get upgrade" and received the following:

david@AcerAspireOneZG5:~$ sudo apt-get upgrade
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.

I am on assignment in Venezuela and I'm limited in my support capability. Thank you all.

I'm a moderate novice details are good!!!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
David Hope (dhhope) said :
#1

additional details from the "Show Udates" dialog box

Could not initialize the package information

An unresolvable problem occurred while initializing the package information.

Please report this bug against the 'update-manager' package and include the following error message:

'E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages, E:The package lists or status file could not be parsed or opened.'

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

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

Can you then give the output of:

sudo apt-get update; lsb_release -a

Thanks

Revision history for this message
David Hope (dhhope) said :
#3

In response to actionparsnip's request for more data from $ sudo apt-get update; lsb_release -a

david@AcerAspireOneZG5:~$ sudo apt-get update; lsb_release -a
[sudo] password for david:
Ign http://archive.canonical.com precise InRelease
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Ign http://security.ubuntu.com precise-security InRelease
Hit http://archive.canonical.com precise Release.gpg
Ign http://extras.ubuntu.com precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Hit http://archive.canonical.com precise Release
Get:1 http://us.archive.ubuntu.com precise Release.gpg [198 B]
Get:2 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:3 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:4 http://extras.ubuntu.com precise Release.gpg [72 B]
Get:5 http://ppa.launchpad.net precise Release.gpg [316 B]
Get:6 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:7 http://us.archive.ubuntu.com precise Release [49.6 kB]
Hit http://extras.ubuntu.com precise Release
Hit http://security.ubuntu.com precise-security Release
Hit http://ppa.launchpad.net precise Release
Hit http://archive.canonical.com precise/partner Sources
Err http://extras.ubuntu.com precise Release

Ign http://security.ubuntu.com precise-security Release
Ign http://ppa.launchpad.net precise Release
Hit http://archive.canonical.com precise/partner i386 Packages
Ign http://archive.canonical.com precise/partner TranslationIndex
Ign http://security.ubuntu.com precise-security/main Sources/DiffIndex
Ign http://ppa.launchpad.net precise/main Sources/DiffIndex
Ign http://security.ubuntu.com precise-security/restricted Sources/DiffIndex
Ign http://security.ubuntu.com precise-security/universe Sources/DiffIndex
Ign http://security.ubuntu.com precise-security/multiverse Sources/DiffIndex
Ign http://security.ubuntu.com precise-security/main i386 Packages/DiffIndex
Ign http://security.ubuntu.com precise-security/restricted i386 Packages/DiffIndex
Ign http://ppa.launchpad.net precise/main i386 Packages/DiffIndex
Ign http://ppa.launchpad.net precise/main TranslationIndex
Ign http://security.ubuntu.com precise-security/universe i386 Packages/DiffIndex
Ign http://security.ubuntu.com precise-security/multiverse i386 Packages/DiffIndex
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise-updates Release
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Sources
Hit http://security.ubuntu.com precise-security/restricted Sources
Hit http://security.ubuntu.com precise-security/universe Sources
Hit http://security.ubuntu.com precise-security/multiverse Sources
Hit http://us.archive.ubuntu.com precise-backports Release
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/main Translation-en
Ign http://us.archive.ubuntu.com precise-updates Release
Ign http://us.archive.ubuntu.com precise-backports Release
Get:8 http://us.archive.ubuntu.com precise/main Sources [932 kB]
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Ign http://archive.canonical.com precise/partner Translation-en_US
Ign http://archive.canonical.com precise/partner Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Get:9 http://us.archive.ubuntu.com precise/restricted Sources [5,467 B]
Get:10 http://us.archive.ubuntu.com precise/universe Sources [5,070 kB]
Get:11 http://us.archive.ubuntu.com precise/multiverse Sources [157 kB]
Get:12 http://us.archive.ubuntu.com precise/main i386 Packages [1,287 kB]
Get:13 http://us.archive.ubuntu.com precise/restricted i386 Packages [8,388 B]
Get:14 http://us.archive.ubuntu.com precise/universe i386 Packages [4,841 kB]
Get:15 http://us.archive.ubuntu.com precise/multiverse i386 Packages [122 kB]
Get:16 http://us.archive.ubuntu.com precise/main TranslationIndex [3,706 B]
Get:17 http://us.archive.ubuntu.com precise/multiverse TranslationIndex [2,676 B]
Get:18 http://us.archive.ubuntu.com precise/restricted TranslationIndex [2,596 B]
Get:19 http://us.archive.ubuntu.com precise/universe TranslationIndex [2,922 B]
Ign http://us.archive.ubuntu.com precise-updates/main Sources/DiffIndex
Ign http://us.archive.ubuntu.com precise-updates/restricted Sources/DiffIndex
Ign http://us.archive.ubuntu.com precise-updates/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com precise-updates/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com precise-updates/main i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com precise-updates/restricted i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com precise-updates/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages/DiffIndex
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Ign http://us.archive.ubuntu.com precise-backports/main Sources/DiffIndex
Ign http://us.archive.ubuntu.com precise-backports/restricted Sources/DiffIndex
Ign http://us.archive.ubuntu.com precise-backports/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com precise-backports/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com precise-backports/main i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com precise-backports/restricted i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com precise-backports/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages/DiffIndex
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://us.archive.ubuntu.com precise-updates/main Sources
Hit http://us.archive.ubuntu.com precise-updates/restricted Sources
Hit http://us.archive.ubuntu.com precise-updates/universe Sources
Hit http://us.archive.ubuntu.com precise-updates/multiverse Sources
Hit http://us.archive.ubuntu.com precise-updates/main i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/main Sources
Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
Hit http://us.archive.ubuntu.com precise-backports/universe Sources
Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Fetched 12.5 MB in 3min 3s (68.2 kB/s)
Reading package lists... Error!
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <email address hidden>

W: GPG error: http://security.ubuntu.com precise-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG E61380B28313A596 Launchpad synergy+
W: GPG error: http://us.archive.ubuntu.com precise-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: GPG error: http://us.archive.ubuntu.com precise-backports Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release

W: Some index files failed to download. They have been ignored, or old ones used instead.
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu precise (development branch)
Release: 12.04
Codename: precise
david@AcerAspireOneZG5:~$

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#4

Try:

sudo fuser -vvv /var/lib/dpkg/lock
sudo rm /var/lib/apt/lists/lock
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo apt-get clean
LANG=C;sudo apt-get autoclean
LANG=C;sudo apt-get --purge autoremove
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo apt-get -f install
LANG=C;sudo apt-get --fix-missing install
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade

Revision history for this message
David Hope (dhhope) said :
#5

I would like to extend my sincere gratitude to actionparsnip for the solution to my problem. It worked like a charm. Ubuntu rocks!! This never would hve happened with that other OS

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

No worries dude, that happens when the hash files for the packages go out of whack. You deleted ALL the knowledge of any packages and then re downloaded, making it clear.

Revision history for this message
David Hope (dhhope) said :
#7

Thank you for the explanation. I always try to increase my knowledge base. In doing so I try to become more of a contributor and less of a user. What is a hash file?

Revision history for this message
Nipun Shakya (nipunshakya) said :
#8

Hello sir. I have the same problem and i tried to run the commands suggested above... but the following output were generated after execution of the last command suggested above:

E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)
Reading package lists... Error!
E: Unable to increase the size of the MMap as the limit of 25165824 bytes is already reached.
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)
E: Error occurred while processing kradioripper (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise_universe_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.

Revision history for this message
Scott Wright (swright198) said :
#9

Thank you SO SO much... I just saved this to my hard drive just in case I need it again. This really worked like a champ!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

I have it in a script called 'fixpackage', just run it with sudo :)

Revision history for this message
archie_1257 (manindramohanshukla) said :
#11

very helpful. thank you very much

Revision history for this message
davoud nasr esfahabi (dd-nasr) said :
#12

I have used the comments by actionparsnip it simply worked , thank you;)

Revision history for this message
intuited (intuited) said :
#13

I found that just doing `sudo rm -rf /var/lib/apt/lists && sudo mkdir /var/lib/apt/lists` worked for me.

Revision history for this message
chirag (chiragmittal1989) said :
#14

Hello sir, I tried all commands but found following error after this command : LANG=C;sudo apt-get -f install

Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.

Revision history for this message
ken bright (kenbright) said :
#15

I think it's worked for me too but haven't a clue what it's done!

Revision history for this message
Scott Folkedahl (scott-folkedahl) said :
#16

When I ran "sudo apt-get update" I was receiving this error:

W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 531EE72F4C9D234C

and after reading this post, I ran the following:

> sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 531EE72F4C9D234C

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.fzFlLmYsys --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/mc3man-trusty-media.gpg --keyring /etc/apt/trusted.gpg.d/pipelight-stable.gpg --keyring /etc/apt/trusted.gpg.d/team-xbmc-ppa.gpg --recv-key --keyserver keyserver.ubuntu.com 531EE72F4C9D234C
gpg: requesting key 4C9D234C from hkp server keyserver.ubuntu.com
gpg: key 4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

I had to grab the key from the "apt-get update" error (531EE72F4C9D234C) and ran the "sudo apt-key" command.

> sudo apt-get update

Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en

Success! Thanks! >>> actionparsnip (andrew-woodhead666)