Broken package, failed to update

Asked by rfbonham

I have a broken package (libecal1.2-7). I have looked at all the dependencies and they are appaently present. I have removed and reloaded libcal1.2.7. But this did not help.

In addition, the package manager will no longer download updates. I get the following error message:

"dpkg: parse error, in file '/var/lib/dpkg/status' near line 22793 package 'fam': error in version string '131072:': nothing in version number E: subprocess /usr/bin/dpkg returned error code (2) a package failed to install. Trying to recover:"

Although it says it is trying to recover, the 'system monitor' does not show any activity.

I am a new user and a novice. I am stuck....

What are my options? What do I do?

Thanks and Best Regards

Roger

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
rfbonham
Solved:
Last query:
Last reply:
Revision history for this message
Koen (koen-beek) said :
#1

Seems like you cache is corrupted.
Try with a sudo dpkg --clear-avail && sudo apt-get update

Revision history for this message
rfbonham (gemulichkeit2005) said :
#2

per Koen Beek's suggestion, I did the clear-avail and the install and following is the error message I copied from my terminal window....

dpkg: parse error, in file `/var/lib/dpkg/status' near line 22793 package `fam':
 error in Version string `131072:': nothing after colon in version number
E: Sub-process /usr/bin/dpkg returned an error code (2)

Revision history for this message
juancarlospaco (juancarlospaco) said :
#3

sudo apt-get -f
or
Use Synaptics and " Broken packages " Filter.

Revision history for this message
rfbonham (gemulichkeit2005) said :
#4

I'm still getting the same error message:

dpkg: parse error, in file `/var/lib/dpkg/status' near line 22793 package `fam':
 error in Version string `131072:': nothing after colon in version number
E: Sub-process /usr/bin/dpkg returned an error code (2)

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

Please try:

Open a Terminal from the menu Applications → Accessories → Terminal and type:
(if the system ask you a password give your user password, you will not see nothing when you type it, then press enter)

sudo mv /var/lib/dpkg/status /var/lib/dpkg/status_nogood

sudo cp /var/backups/dpkg.status.1.gz /var/lib/dpkg/

sudo gunzip -d /var/lib/dpkg/dpkg.status.1.gz

sudo mv /var/lib/dpkg/dpkg.status.1 /var/lib/dpkg/status

sudo apt-get update
sido apt-get clean
sudo apt-get update
sudo apt-get upgrade

sudo rm /var/lib/dpkg/status_nogood

Hope this helps

Revision history for this message
rfbonham (gemulichkeit2005) said :
#6

Marcobra, thank you for taking the time to help.

After some fumbling, I managed to reach" sudo apt-get update" on your list. It ran and returned the following error messsage. All of this is way beyond my skill level. Do you think this error is a result of something I did?

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.

Thanks and Best Regards

Roger

Revision history for this message
rfbonham (gemulichkeit2005) said :
#7

I went back and reviewed my steps. I found a step missing and have corrected. The procedure seems to have worked. Again, Thank you Marcobra for taking the time to help me.