Somehow i installed a 32bit deb to 64bit Xubuntu using Ubuntu Software Center. Tho it failed, it breaks my apt-get. Now apt-get stuck, refused to do anything before the problem fixed.
I tried to fix broken package using Synaptic, resulting in this error:
Tried "apt-get -f install", result in other error:dpkg: error processing bandwidthd:i386 (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
bandwidthd:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:So i tried to reinstall as its requested, only to get another error:Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libpcap0.8:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libpcap0.8:i386
The following packages will be REMOVED:
bandwidthd:i386
The following NEW packages will be installed:
libpcap0.8:i386
0 upgraded, 1 newly installed, 1 to remove and 7 not upgraded.
1 not fully installed or removed.
Need to get 0 B/117 kB of archives.
After this operation, 88.1 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: error processing bandwidthd:i386 (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
bandwidthd:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt-get install bandwidthd:i386
What should i do now?Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
bandwidthd:i386 : Depends: libpcap0.8:i386 (>= 0.9.8) but it is not going to be installed
Depends: ucf:i386 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
- - - - - EDIT, Solved - - - - - -
sudo gedit /var/lib/dpkg/status
then remove all segment mentioned the culprit.
Solved.
Bookmarks