Update manager error: The package lists or status file could not be parsed or opened

Asked by dannycrobo1

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

i am using jaunty release 9.04

i have an error message saying i must start up package manager to see what is wrong, so when i do this, th epackage manager then displays what is quoted above.

what do i do? how do i update my system?

Question information

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

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

i have reported this problem. it wont allow me to open update manager it just displays this message, or package installer.

what do i do?

dan

Revision history for this message
Tom (tom6) said :
#2

Does it also say something like "Please run; dpkg --configure -a"?

Revision history for this message
Sam_ (and-sam) said :
#3

You may simply try via terminal commands to fix it:
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -f

Reference:
http://ubuntuforums.org/showthread.php?t=863742
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/370294
https://help.ubuntu.com/community/AptGet/Howto
https://help.ubuntu.com/community/UsingTheTerminal

Revision history for this message
Sam_ (and-sam) said :
#4
Revision history for this message
Best Mark Rijckenberg (markrijckenberg) said :
#5

Hi,

First please make sure to close all open programs, including all package managers like Synaptic, Add/remove programs, etc ...

Then please try this procedure:

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Run the following commands (copy-paste each line below to the Terminal then hit <enter> after each line)

sudo rm /var/lib/dpkg/info/*
sudo apt-get update
sudo rm /var/lib/apt/lists/*
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo aptitude install -f
sudo aptitude update
sudo aptitude dist-upgrade

Step 3: Please post results (copy/paste terminal output from each command) on this thread

Hope it helps,

Regards,

Mark

Revision history for this message
dannycrobo1 (dannycrobo1) said :
#6

Thanks so much mark, this got rid of the error message symbol and has allowed me to start up my update manager and everything. thanks so much buddy, i feel like sending you flowers.

Dan

Revision history for this message
Tom (tom6) said :
#7

Congrats, and welcome to linux-land, especially the Ubuntu corner of it :))
Regards from
Tom :)

Revision history for this message
Freek Goeree (fhgoeree) said :
#8

Hi Mark,

Your solution helped me too. Only I did it a little bit different or maybe I did not quite understand what you meant. This is what happened.
I copied the first command: sudo rm /var/lib/dpkg/info/* , but then got an error message. Then I tried to remove the content of /info, but again got an error (cd /var/lib/dpkg/info/ en sudo rm * ).
Finally I copied the whole block of commands in my terminal and then "something" happened in the terminal. Probably (I think) the commands you gave were executed. Now my system is completely OK again, but maybe you can imagine that I am wondering what happened exactly. Didn't I read your description well or was there something wrong in the description or did something else happen. I'm rather curious.

But nevertheless, thank you very, very much for helping me out.

Revision history for this message
Tom (tom6) said :
#9

There seems to be a lot of variables in there. Maybe when you thought you had quit all the package managers there was still some process running involving one of them. To see all the processes running just type in

ps aux

but that is usually more useful if you filter it through a pipe and use 'grep' to do the filtering. Eg to see only firefox stuff that is running try

ps aux | grep firefox

to stop a process you can find the process id number that way and then key in something like

kill 12345

Note that in the grep'd command you will see the "ps aux" command is included in the output list even tho by the time your human eyes are reading it the process will have finished as the process doesnt take long to complete

Revision history for this message
Diana Di (diana-cfbc-mf0313g) said :
#10

Thank you Mark it worked very well.
Regards!