Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: can't upgrade, dpkg error 1, old failed install keeps trying to -configure

  1. #1
    Join Date
    Feb 2008
    Location
    utah
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    can't upgrade, dpkg error 1, old failed install keeps trying to -configure

    Greetings!

    I have been running a jaunty server for years. It is still running fine with a couple of problems I am finally trying to iron out.

    I can't upgrade or update because there is an old failed installation that keeps trying to re-configure so apt will not get passed it; lock files are not a problem. I can't upgrade using do-release-upgrade or by way of the CDs either server or alt.

    Before I trash the root partition and start over, I want to see if there is a way to get rid of this old installation program that keeps on coming up and stopping the upgrades. I don't think it matters but the failed program is snort. I could not get rid of it the conventional way so I have also tried getting rid of all the snort and oink files manually including referenced in the rc. and init.d files. I have no idea where apt keeps keying into this program to reinstall it.

    apt-get upgrade says there are unmet dependencies for snort. apt-get -f only tries to install those dependencies and fails. When I try to install any other program I get the snort failing to install error. I have tried dpkg configure to no avail.

    If I do reinstall the OS to karmic then lynx, is there a way to do it keeping my home and var partitions intact? The installation cds have a warning that all system files (etc, var, usr) at any mount point will be erased since I am choosing not to format root. That is a little ambiguous. Do they mean any mount points that exist within the root directory that is being installed or do they mean the possibility of a different designated var partition being erased?

    I could format root, then change the var and home partitions from the default to the correct partitions but that means reinstalling a whole lot of difficult programs....

    If I could just get rid of that repeating failed installation (apt/dpkg) maybe it would save me a lot of headaches.

    Sorry for this convoluted question. I'm a bit convoluted myself The server is on another machine with no floppy or writable cdrom so I can't cut and paste the errors or logs.

    any takers? Thanks

  2. #2
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: can't upgrade, dpkg error 1, old failed install keeps trying to -configure

    Can you post the actual output of:
    Code:
    sudo apt-get upgrade
    and

    Code:
    sudo apt-get -f install

  3. #3
    Join Date
    Feb 2008
    Location
    utah
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: can't upgrade, dpkg error 1, old failed install keeps trying to -configure

    Thanks for the reply... I can't copy it directly as that server has no floppy or writable cdrom but I can try to remember the gist from memory...

    it says:

    building dependency tree
    reading state information... done
    you might want to run apt-get -f to fix these
    unmet dependencies...
    .. then it lists 3 long snort dependencies that end with "but is not installable"
    E: unmet dependencies. try using -f

    That's it. If I run with -f, it runs the whole upgrade list like normal but when it begins to install it immediately goes into the snort install routine which fails and causes the upgrade to fail and I am back at the prompt.

    adding edit: after running apt-get install -f, it says: 1 to remove snort, 248 to upgrade Y/n. I choose Y and it goes into the snort install routine asking which eth card to use. I am forced to choose eth0, 1, 2, or 3 or none. no matter which I choose, the install fails then I come back to E: sub process /usr/bin/dpkg returned error code (1)

    Then I am back to the prompt.
    Last edited by cornflake000; May 27th, 2011 at 05:42 AM. Reason: adding

  4. #4
    Join Date
    May 2006
    Location
    Boston
    Beans
    1,918
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: can't upgrade, dpkg error 1, old failed install keeps trying to -configure

    Quote Originally Posted by cornflake000 View Post
    If I run with -f, it runs the whole upgrade list like normal but when it begins to install it immediately goes into the snort install routine which fails and causes the upgrade to fail and I am back at the prompt.
    what does the snort routine says, when it starts installing?

    blog
    Donations BTC : 12FwoB7uAM5FnweykpR1AEEDVFaTLTYFkS
    DOUBLEPLUSGOOD!!

  5. #5
    Join Date
    Feb 2008
    Location
    utah
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: can't upgrade, dpkg error 1, old failed install keeps trying to -configure

    i just stepped on you... I wrote your question's answer in the edit above...

    thanks

    the snort install routine asks which eth card to use. I am forced to choose eth0, 1, 2, or 3 or none. no matter which I choose, the install fails then I come back to E: sub process /usr/bin/dpkg returned error code (1)

    Then I am back to the prompt.
    Last edited by cornflake000; May 27th, 2011 at 05:59 AM.

  6. #6
    Join Date
    May 2006
    Location
    Boston
    Beans
    1,918
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: can't upgrade, dpkg error 1, old failed install keeps trying to -configure

    have u tried to remove snort and upgrade with 'dselect'?

    blog
    Donations BTC : 12FwoB7uAM5FnweykpR1AEEDVFaTLTYFkS
    DOUBLEPLUSGOOD!!

  7. #7
    Join Date
    Feb 2008
    Location
    utah
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: can't upgrade, dpkg error 1, old failed install keeps trying to -configure

    Quote Originally Posted by fdrake View Post
    have u tried to remove snort and upgrade with 'dselect'?
    No I haven't. I don't know what that is actually. How's it work? Is that a command, flag, program?

  8. #8
    Join Date
    Feb 2008
    Location
    utah
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: can't upgrade, dpkg error 1, old failed install keeps trying to -configure

    I just looked up dselect. Sounds nice but I can't install anything on my server. That's the problem...

  9. #9
    Join Date
    May 2006
    Location
    Boston
    Beans
    1,918
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: can't upgrade, dpkg error 1, old failed install keeps trying to -configure

    Code:
    sudo dselect
    you actually select and configure the package you want to install and remove... it doesn't really have options flags, you use ur arrows to select the packages and the dependencies...

    but other than that I can't think of another way to solve this dependencies issue.. sorry!

    blog
    Donations BTC : 12FwoB7uAM5FnweykpR1AEEDVFaTLTYFkS
    DOUBLEPLUSGOOD!!

  10. #10
    Join Date
    Feb 2008
    Location
    utah
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: can't upgrade, dpkg error 1, old failed install keeps trying to -configure

    After looking a little deeper, it seems the snort program is in a "half installed state". "postinst abort-remove failed" is another error message when I run apt-get remove -f snort.

    If anyone knows what this means or how I can purge this snort install program from trying to install every time I upgrade or install another program, I would appreciate it.

Page 1 of 2 12 LastLast

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
  •