Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've been trying to upgrade to 12.10 ever since it was released today but I keep meeting this error: "An unresolvable problem occurred while calculating the upgrade: E:Unable to correct problems, you have held broken packages. This can be caused by:
* Upgrading to a pre-release version of Ubuntu
* Running the current pre-release version of Ubuntu
* Unofficial software packages not provided by Ubuntu"

I've tried updating all the currently installed software, removing all the extra PPAs, downgrading the files installed from xorg edgers' ppa but I haven't been able to solve the problem.

share|improve this question
add comment

4 Answers

up vote 1 down vote accepted

I fixed mine by removing ppa packages I had installed using ppa-purge

I knew I needed to do this by checking the logs in /var/log/dist-upgrade/ at the end of the apt.log file youll see what was confusing it. In mine it was a video driver, and i was running several upgrades, so I did:

sudo ppa-purge ppa:ubuntu-x-swat/x-updates
sudo ppa-purge ppa:unity-team/staging
sudo ppa-purge ppa:webapps/preview
sudo ppa-purge ppa:nilarimogard/webupd8
sudo ppa-purge ppa:scopes-packagers/ppa
sudo ppa-purge ppa:glasen/intel-driver

the last one - the glasen driver - seems to have done the trick for me. Upgrade is now proceeding as normal.

share|improve this answer
add comment

As stated here , removing PPA sources does not work every time.

You need to uninstall offending packages. you can find them with:

grep Broken /var/log/dist-upgrade/apt.log

Mine was an xorg package. I removed it with the command:

sudo apt-get remove xserver-xorg-video-all

and then the upgrade could continue.

share|improve this answer
2  
Thanks for pointing out WHERE the broken packages were. That was the key to my successful upgrade to 13.10. –  DaShaun Oct 17 '13 at 18:59
    
Yes! All was couse of xserver-xorg-*. (apt-get remove xserver-xorg-*) –  qeremy Apr 10 at 23:55
add comment

For a "NonPainful" release upgrade.

  • Before proceed, check if the new release is available for upgrade. Open a terminal and give this command

    do-release-upgrade -c

If yes, proceed:

  • Remove all the external PPAs you've added.

    From Software-Center > Edit > Software Sources > Other Software. Do not only un-tick ,but delete them.

  • Then close all the graphical applications and open only a terminal.(Fullscreen is better) Give the bellow commands

    sudo apt-get update 
    sudo apt-get dist-upgrade
    
  • Then give the bellow commands to do a little housekeeping

    sudo apt-get --purge autoremove
    sudo apt-get autoclean
    sudo apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')
    
  • Then you can procceed with the upgrade

    sudo do-release-upgrade
    

Do not navigate or open windows or programs during the upgrade.

Be patient until the upgrade finish.

Friendly: Do not run (or rush) to upgrade from the day one. Upgrade from the day two or three(better).

share|improve this answer
    
Thank you! Your answer is extremely educating! However, I fixed my issue before reading your reply. I had to enable the conflicting PPAs then purge them to get the job done. –  Vagrant232 Oct 19 '12 at 8:12
add comment
sudo sed -i 's/raring/saucy/' /etc/apt/sources.list
sudo apt-get dist-upgrade

that worked for me.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.