Update manager not working in 11.04

Asked by srikanth

I am getting error when opening update manager or synaptic package manager. Looks like some bug and not able to resolve. I am getting following error.

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/us.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages, E:The package lists or status file could not be parsed or opened.'

Please help me to resolve this issue.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Paul Stewart (paulbrianstewart) said :
#1

Type the following commands in the terminal

sudo rm /var/lib/apt/lists/* -vf

sudo apt-get update

This should remove the messed up lists and reload them again with the correct ones

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

If previous doesn't sove:

Open a terminal by pressing ctrl + alt + t then copy and paste into terminale the rows below, please copy and paste a row a time then press enter, the system will ask you for a password please give your user password (you will not see any screen chars when you type the password, so type and press enter)

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
sudo apt-get clean; sudo apt-get autoclean
sudo apt-get update
sudo dpkg --clear-avail; sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get update
sudo apt-get dist-upgrade

Can you help with this problem?

Provide an answer of your own, or ask srikanth for more information if necessary.

To post a message you must log in.