Results 1 to 6 of 6

Thread: Could not install the upgrades

  1. #1
    Join Date
    Apr 2006
    Location
    Atlanta
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Could not install the upgrades

    I'm trying do-release-upgrade -d and am getting the following error:

    Code:
    Could not install the upgrades 
    
    The upgrade has aborted. Your system could be in an unusable state. A 
    recovery will run now (dpkg --configure -a). 
    
    dpkg: error: parsing file '/var/lib/dpkg/status' near line 54770 package 'libqt4-scripttools:i386':
     mixed non-coinstallable and coinstallable package instances present
    dpkg-query: error: parsing file '/var/lib/dpkg/status' near line 54770 package 'libqt4-scripttools:i386':
     mixed non-coinstallable and coinstallable package instances present
    
    Upgrade complete 
    
    The upgrade has completed but there were errors during the upgrade 
    process.
    I also notice this output when I try running it, which is the same from the GUI installer (update-manager -d):

    Code:
    start: Job is already running: apport
    Any thoughts?

  2. #2
    Join Date
    Apr 2006
    Location
    Atlanta
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Could not install the upgrades

    ttt

  3. #3
    Join Date
    Sep 2012
    Location
    Denver,Colorado
    Beans
    243
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Could not install the upgrades

    You could try "sudo apt-get -f upgrade" that will attempt to fix it
    + Linux Mint 13 Cinnamon 64bit +
    Lubuntu 12.04 PPC 32bit G4 | Ubuntu 12.04 PPC 64bit G5

  4. #4
    Join Date
    Apr 2006
    Location
    Atlanta
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Could not install the upgrades

    Quote Originally Posted by Epodx64 View Post
    You could try "sudo apt-get -f upgrade" that will attempt to fix it
    Yeah, it couldn't resolve everything, either could aptitude safe-upgrade. Totally bizarre.

  5. #5
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Could not install the upgrades

    I'd suggest making a backup copy of /var/lib/dpkg/status, then deleting the file to see if that solves your problem.

  6. #6
    Join Date
    Sep 2008
    Beans
    796

    Re: Could not install the upgrades

    Try this:

    Code:
    sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
    sudo aptitude update
    sudo aptitude safe-upgrade
    or if you're using apt-get:

    Code:
    sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
    sudo apt-get update
    sudo apt-get upgrade
    Eventually you should be able to do:

    Code:
    sudo aptitude full-upgrade
    or

    Code:
    sudo apt-get dist-upgrade
    If that doesn't work, try using /var/backups/dpkg.status.0 instead of /var/lib/dpkg/status-old.

    Note also that in /var/backups there are other backups of the status file (dpkg.status.1.gz, dpkg.status.2.gz etc). If things are really screwed up, try unzipping one or more of those and replacing your corrupted status file with an even older one. It just means you'll end up applying more updates.

    EDIT: Just make sure that if you revert to a status file which precedes your do-release-upgrade -d command you update and upgrade before repeating the do-release-upgrade -d.
    Last edited by paul_in_london; September 8th, 2012 at 02:20 AM. Reason: Text added

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
  •