Broken package
After a crash, I get the following error when trying to open Synaptic:
E: Unable to parse package file /var/lib/
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.
The package is there so I suppose it's corrupted. How can I fix/replace it?
Thanks in advance,
Danny
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu synaptic Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Sam_
- Solved:
- 2009-04-21
- Last query:
- 2009-04-21
- Last reply:
- 2009-04-20
Have a look at this trend.
http://
Hope this helps
Shane
| peter (peter-neuweiler) said : | #2 |
If you boot up the system press the Esc key. Choose the recovery mode and you will find a menu where you can start the process Broken packages. These process will repair all broken packages.
Hope it helps.
Peter
| danyodin (danyodin) said : | #3 |
Thanks for the comments.
I did follow the suggestions in the thread (apt fix and changing the main server in synaptic) and tried to fix the broken packages in recovery mode, I got to the following:
E: Could not open file /var/lib/
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.
Any suggestion?
| peter (peter-neuweiler) said : | #4 |
Hope you will get a wise answer.
Peter
| Sam_ (and-sam) said : | #5 |
Please try this in a terminal:
sudo dpkg --clear-avail && sudo apt-get update
sudo apt-get upgrade
Reference:
https:/
https:/
| danyodin (danyodin) said : | #6 |
I tried Sam's suggestion - still same thing. It reads some of the packages but then reports an error:
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Reading package lists... Error!
E: Could not open file /var/lib/
E: The package lists or status file could not be parsed or opened.
|
|
#7 |
Ok,
you can copy the status-old file and make it the current status file like this:
sudo cp /var/lib/
then again:
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade
| danyodin (danyodin) said : | #8 |
Thanks Sam, that solved my question.

