Home Technology How to fix Apt-Get package manager when it’s broken.

How to fix Apt-Get package manager when it’s broken.

0

If you see something like this on your terminal when you’re doing an update or install then you’ll know you have a problem.

sudo apt-get install 

Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/toolbelt.heroku.com_ubuntu_._en
E: The package lists or status file could not be parsed or opened.

Fortunately, it’s really to fix it. To do that simply:


sudo apt-get clean 
cd /var/lib/apt 
sudo mv lists lists.old 
sudo mkdir -p lists/partial 
sudo apt-get clean 
sudo apt-get update

And that’s all there is to it! I hope this helps.