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

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!