henadin
Posts: 7
Joined: Wed Dec 17, 2014 7:29 am
Location: United States

Unable to parse package file...

Wed Dec 17, 2014 7:55 am

Hello! I've never had any breaking errors like this on my raspberry pi.

I've just installed Raspian wheezy on my Pi.
I SSH into my Pi then I ran sudo raspi-config and expanded filesystem, changed password, then rebooted.

When the pi loaded back again I logged in, then proceeded to try to install a program.

Here's what we get:

"sudo apt-get install apache2
Reading package lists...Error!
E: Unable to parser package file /var/lib/dpkg/status (1)
E: The package lists or status file could not be parsed or opened.
"

What can be causing this issue?

Thanks

dr.meow
Posts: 3
Joined: Fri Mar 06, 2015 5:36 pm

Re: Unable to parse package file...

Fri Mar 06, 2015 5:44 pm

me too

dr.meow
Posts: 3
Joined: Fri Mar 06, 2015 5:36 pm

Re: Unable to parse package file...

Sun Mar 08, 2015 8:17 pm

i did find a solution. think it was the second post of this:
http://ubuntuforums.org/showthread.php?t=1841228

basically - remove cached package lists with:

Code: Select all

sudo rm -rf /var/lib/apt/lists/*
then download new package location lists with:

Code: Select all

sudo apt-get update

irishcanuck
Posts: 13
Joined: Fri May 03, 2013 5:30 pm

Re: Unable to parse package file...

Wed Oct 21, 2015 11:09 am

I was getting the same error trying to update a fresh install of jessie; I had ignored the error from unzip when uncompressing the image onto a vfat filesystem. The problem was that vfat is only capable of 4gb files or less and had truncated the 4.3 gb raspbian image to 4gb. Hence I encountered the above error when attempting to apt-get update

M.Amin
Posts: 1
Joined: Tue Aug 07, 2018 6:07 am

Re: Unable to parse package file...

Tue Aug 07, 2018 6:15 am

Hi!
this problem has a simple solution. don't worry :)
just execute this in command line (terminal):

Code: Select all

sudo mv /var/lib/apt/extended_states /var/lib/apt/extended_states_tmp

Return to “Troubleshooting”