Ubuntu apt-get install error

I tried installing few packages using apt-get on my Ubuntu machine and it kept failing and also the Ubuntu Software Center kept crashing on launch.



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

To fixed the issue by deleting all the package lists files inside “/var/lib/apt/lists/” and downloaded the package lists from the repositories and “updated” them to get information on the newest versions of packages and their dependencies (sudo apt-get update).

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update

This seemed to fix the problem. Not sure what was the reason for the corruption of the files in the first place.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s