Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: apt-get stuck in limbo

  1. #11
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: apt-get stuck in limbo

    Hi

    Let's try to work through the problem.

    What's the output of these commands.

    Code:
    sudo dpkg -l mysql-server-5.1
    sudo dpkg -l virtual-mysql-client
    sudo dpkg -l cacti
    Post back the results.

    There are ways to remove packages manually if required and, depending on what is the problem with the system, it may be fixable.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  2. #12
    Join Date
    Aug 2008
    Location
    WA
    Beans
    2,186
    Distro
    Ubuntu

    Re: apt-get stuck in limbo

    backup and open:

    Code:
    /var/lib/dpkg/status
    search for and remove the cacti section.

    then all should be good.

  3. #13
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: apt-get stuck in limbo

    Hi

    Quote Originally Posted by iponeverything View Post
    backup and open:

    Code:
    /var/lib/dpkg/status
    search for and remove the cacti section.

    then all should be good.
    What you have suggested was going to be part of what i was going to suggest.

    As an addendum to this

    Code:
    dpkg -L <package_name>
    will list all the files installed for that package.

    Using that you can find out what files have been installed and remove the files as well as the references to the packages.

    That way you can manually remove a package and any files it may have partly installed.

    But as this is a production server, i though the softly, softly approach would be better to find the current state of each package.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  4. #14
    Join Date
    Aug 2008
    Location
    WA
    Beans
    2,186
    Distro
    Ubuntu

    Re: apt-get stuck in limbo

    agreed -- a manual cleaning of cacti detritus is good idea for a production box.

  5. #15
    Join Date
    Jul 2011
    Beans
    16

    Re: apt-get stuck in limbo

    Quote Originally Posted by iponeverything View Post
    backup and open:

    Code:
    /var/lib/dpkg/status
    search for and remove the cacti section.

    then all should be good.
    Thank you! That did it.

    FYI, I also had to remove the section for mysql-server too.

  6. #16
    Join Date
    Jul 2009
    Beans
    13

    Re: apt-get stuck in limbo

    Hey, I got caught in this same catch 22. What I had done was I had erased the file /etc/init.d/mysql . I replaced the file with a file empty except for the line
    #hi
    And then ran the line from above

    sudo dpkg -i --force-overwrite /var/cache/apt/archives/mysql-server-5...

    (except with the name of the mysql server deb actually matching the one my computer had in /var/cache/apt/archives/ )
    And it fixed it.

Page 2 of 2 FirstFirst 12

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
  •