How To “Fix E: Could not open file /var/lib/dpkg/status”

by
Share this Article: Facebook0Google+0Twitter10LinkedIn0Reddit0StumbleUpon1

QUESTION:

I get the following error when I use sudo apt-get update:

E: Could not open file /var/lib/dpkg/status - open (2: No such file or directory)
E: The package lists or status file could not be parsed or opened.

dpkg_status1

 

ANSWER:

Open Terminal and run the commands below, the the next you run sudo apt-get update it should run successfully:

$ sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
$ sudo apt-get update

dpkg_lock_fixed

If you get error E: Lists directory /var/lib/apt/lists/partial is missing.

Run the command below:

$ sudo mkdir /var/lib/apt/lists/partial

Enjoy!

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook0Google+0Twitter10LinkedIn0Reddit0StumbleUpon1