Ubuntu: Problems with Software Center [duplicate]



Question:

I am unable to launch software-center on my laptop. No matter how many times I try clicking on the icon, it never launches. I tried to see if it is already working by typing the following command in the terminal:

sudo killall software-center  

and it says:

software-center: no process found  

I tried to reinstall software-center by using the following commands:

sudo apt-get update  

It gives me the following message:

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

and followed by:

sudo apt-get --purge --reinstall software-center  

I get the following error message:

E: Invalid operation software-center  

Also, I am unable to install any software from the terminal. For instance I tried to install vlc player by using the command:

sudo apt-get install vlc  

and I get the following error message:

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

Please help me out.


Solution:1

These commands will help to reset your list.

sudo rm -f /var/lib/dpkg/lock  sudo rm -f /var/lib/apt/lists/lock  sudo dpkg --configure -a  

Then try

sudo apt-get install software-center  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »