'E:Encountered a section with no Package

Asked by siba

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

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
Last query:
Last reply:
Revision history for this message
Best Sam_ (and-sam) said :
#1
Revision history for this message
siba (skynetssl) said :
#2

i faced this one again in the pass and i fix it by one of the ways posted in here (cant remember the right one one) but now i cant.
What can i do?

Revision history for this message
siba (skynetssl) said :
#3

Thanks mate the second one work for me.
Thanks a lot

Revision history for this message
siba (skynetssl) said :
#4

Thanks Sam, that solved my question.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#5

Hi,

For future reference, the current package management fix procedure should be as follows:

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 mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo aptitude clean
LANG=C;sudo aptitude autoclean
LANG=C;sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo aptitude install -f
LANG=C;sudo aptitude update
LANG=C;sudo aptitude dist-upgrade

The previous procedure includes the following line, which is damaging to the apt-get and aptitude package management system. So please, NEVER use the following line:

sudo rm /var/lib/dpkg/info/*

Regards,

Mark

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

Thanks Mark, I'll bookmark it, because this issue occurs over and over again. What do you think about making it an FAQ? Like "How do I solve a problem with MergeList".

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#7

Good idea. But how do you make a new FAQ on answers.launchpad.net? Do I have the access rights to create one myself? Maybe someone else can create it for us?