11

When I run sudo apt-get update I get this error:

Reading package lists... Error!
E: Unable to parse package file /var/lib/dpkg/status (1)
E: The package lists or status file could not be parsed or opened.

What each line is saying and how to solve it?

I'm running Linux Mint 17 Qiana Cinnamon in VMWare Workstation 10.0.2.

2
  • 1
    Does /var/lib/dpkg/status exist? If so, what are its permissions, and is it empty? If not, what does it contain? Commented Jun 26, 2014 at 23:54
  • Yes, it does exist. Its permissions are 644. It contains a detailed list of packages-such as the package name, status, priority...etcetera. There is also a "status-old" file with the same permissions. It appears to contain the same information. Commented Jun 27, 2014 at 0:37

2 Answers 2

22

If you google out this error there are plenty of links which describe this error. It seems that the file is messed up. You can try out the options specified here.

sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.bad
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo apt-get update

This below option did not work for this particular case.

Another link that describes the similar issue is here.

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
7
  • The first option worked. I tried the second option first, but the error appeared again. Thanks Ramesh. Commented Jun 27, 2014 at 0:46
  • 1
    Welcome to U & L Stack Exchange. Glad it worked. :) Commented Jun 27, 2014 at 1:08
  • 1
    @Ramesh that's mine. :-) Commented Jun 27, 2014 at 1:40
  • @AvinashRaj, yeah. I see you are pretty active in AU than here :) Commented Jun 27, 2014 at 1:41
  • @Ramesh you must remove the second code block. Because removing the files inside /var/lib/apt/lists/ shouldn't work for him. Commented Jun 27, 2014 at 1:48
1

It's working fine to remove files in lists folder.

By the way apt-get is working fine after command line bash I found out over The Net.

Just add:

sudo apt-get -f install

to have an update/upgrade working at well.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.