02-10-2016, 03:47 PM
Hm, looks like /var/lib/dpkg/status got messed up
There are backups of this file
To list the backups use
Now copy /var/backups/dpkg.status.0 to /var/lib/dpkg/status
And try to run the updates.
If that doesn't help try to use the other backup files
but as you see the files are compressed
so you have to unpack them first
For example /var/backups/dpkg.status.1.gz
Then you can copy to /var/lib/dpkg/status
Hope this helps
There are backups of this file
To list the backups use
Code:
ls -l /var/backups/dpkg.status.*
Now copy /var/backups/dpkg.status.0 to /var/lib/dpkg/status
Code:
sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
If that doesn't help try to use the other backup files
but as you see the files are compressed
Code:
ls /var/backups/dpkg.status.*
/var/backups/dpkg.status.0 /var/backups/dpkg.status.4.gz
/var/backups/dpkg.status.1.gz /var/backups/dpkg.status.5.gz
/var/backups/dpkg.status.2.gz /var/backups/dpkg.status.6.gz
/var/backups/dpkg.status.3.gz
For example /var/backups/dpkg.status.1.gz
Code:
sudo gunzip /var/backups/dpkg.status.1.gz
Code:
sudo cp /var/backups/dpkg.status.1 /var/lib/dpkg/status
