Results 1 to 10 of 10

Thread: apt-get and synaptic broken

  1. #1
    Join Date
    Oct 2012
    Beans
    19

    Question apt-get and synaptic broken

    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:

    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:
    Tried "apt-get -f install", result in other 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)
    So i tried to reinstall as its requested, only to get another error:
    sudo apt-get install bandwidthd:i386
    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).
    What should i do now?

    - - - - - EDIT, Solved - - - - - -
    sudo gedit /var/lib/dpkg/status

    then remove all segment mentioned the culprit.

    Solved.
    Last edited by kruget; December 2nd, 2012 at 09:13 AM. Reason: add solution

  2. #2
    Join Date
    Nov 2012
    Beans
    2

    Re: apt-get and synaptic broken

    You need to try to manually remove the packages. Open a terminal and type:
    Code:
    cd /var/lib/dpkg/info
    sudo rm bandwidthd:i386.*
    Then clean it up in dpkg:

    Code:
    sudo dpkg --remove --force-remove bandwithd:i386
    I believe that should work...

    http://blog.bodhizazen.net/linux/apt...oken-packages/

  3. #3
    Join Date
    Oct 2012
    Beans
    19

    Re: apt-get and synaptic broken

    Quote Originally Posted by LonghornCS13 View Post
    You need to try to manually remove the packages. Open a terminal and type:
    Code:
    cd /var/lib/dpkg/info
    sudo rm bandwidthd:i386.*
    Then clean it up in dpkg:

    Code:
    sudo dpkg --remove --force-remove bandwithd:i386
    I believe that should work...

    http://blog.bodhizazen.net/linux/apt...oken-packages/
    sudo dpkg --remove --force-remove bandwithd:i386 resulted in error:

    dpkg: error: unknown force/refuse option `remove'

    Type dpkg --help for help about installing and deinstalling packages [*];
    Use `dselect' or `aptitude' for user-friendly package management;
    Type dpkg -Dhelp for a list of dpkg debug flag values;
    Type dpkg --force-help for a list of forcing options;
    Type dpkg-deb --help for help about manipulating *.deb files;

    Options marked [*] produce a lot of output - pipe it through `less' or `more' !

  4. #4
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: apt-get and synaptic broken

    sudo apt-get purge bandwidthd:i386

    should work too.

    note: you need the exact name (not bandwithd , with is false)
    Last edited by dino99; November 30th, 2012 at 04:38 PM.

  5. #5
    Join Date
    Oct 2012
    Beans
    19

    Angry Re: apt-get and synaptic broken

    Quote Originally Posted by dino99 View Post
    sudo apt-get purge bandwidthd:i386

    should work too.

    note: you need the exact name (not bandwithd , with is false)
    That still resulted in error:

    sudo apt-get purge bandwidthd:i386
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be REMOVED:
    bandwidthd:i386*
    0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.
    1 not fully installed or removed.
    After this operation, 201 kB disk space will be freed.
    Do you want to continue [Y/n]? Y
    dpkg: error processing bandwidthd:i386 (--purge):
    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)

  6. #6
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: apt-get and synaptic broken

    sudo dpkg --remove --force-remove bandwithd:i386

    should be

    sudo dpkg --remove --force-remove-reinstreq bandwithd

    I believe
    Last edited by Elfy; November 30th, 2012 at 08:14 PM.

  7. #7
    Join Date
    Nov 2012
    Beans
    2

    Re: apt-get and synaptic broken

    Quote Originally Posted by Elfy View Post
    sudo dpkg --remove --force-remove bandwithd:i386

    should be

    sudo dpkg --remove --force-remove-reinstreq bandwithd

    I believe

    I think this is right. I was forgetting that reinstreq flag..

  8. #8
    Join Date
    Oct 2012
    Beans
    19

    Unhappy Re: apt-get and synaptic broken

    Quote Originally Posted by Elfy View Post
    sudo dpkg --remove --force-remove-reinstreq bandwithd
    That give me this:

    dpkg: warning: there's no installed package matching bandwithd
    But synaptic and apt-get still broken, and sudo apt-get install -f still give me this:

    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)
    Any other suggestion?

  9. #9
    Join Date
    Sep 2012
    Beans
    21

    Re: apt-get and synaptic broken

    Shouldn't the command be
    sudo dpkg --remove --force-remove-reinstreq bandwithd:i386

  10. #10
    Join Date
    Oct 2012
    Beans
    19

    Re: apt-get and synaptic broken

    it doesn't work. Fortunately i found a solution on iasptk via ptheo:

    sudo gedit /var/lib/dpkg/status

    then remove all segment mentioned the culprit.

    Solved.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •