update Manager and software center not working.

Asked by vishal

Hello My update manager shows the following message:E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages, E:The package lists or status file could not be parsed or opened.'

and further software centre is not working ,its not showing the list of installed software and software available. Please help regards

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
actionparsnip (andrew-woodhead666) said :
#1

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

Revision history for this message
vishal (zvesda1) said :
#2

what do i do with the command plz guide me with more steps I am new to ubuntu and i am not getting it. Thank you.

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

Run each line in turn in a terminal

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

Run each line in turn in a terminal

Revision history for this message
vishal (zvesda1) said :
#5

Though I didn't understand how it worked but problem solved!! Thank you very much and please suggest me some tutorials to understand ubuntu 11.04 clearly ,Thank You

Revision history for this message
vishal (zvesda1) said :
#6

Thanks actionparsnip, that solved my question.