Upgrading with no disk space breaks dpkg irrecoverably
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Baltix) |
New
|
Undecided
|
Unassigned | ||
dpkg (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dpkg
I ran "sudo aptitude safe-upgrade" yesterday and I lacked sufficient space on / for the upgrades, so dpkg failed. I'm afraid I didn't record the output.
After freeing some space I run "sudo aptitude safe-upgrade" and it gives me the following output:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Running "sudo dpkg --configure -a":
dpkg: parse error, in file `/var/lib/
newline in field name `#padding'
dpkg seems permanently broken. I can't install new packages, or upgrades.
I get a similar error and need help resolving
When i try to add/remove programs i get the following error:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report
So i've tried all the following comands:
sudo apt-get -f install
sudo apt-get clean all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean all
sudo apt-get autoremove
but each time i get asked to run sudo dpkg --configure -a and when i do i get dpkg/updates/ 0214' near line 1:
dpkg: parse error, in file `/var/lib/
newline in field name `#padding'
How do i solve this error?