Upgrade Ubuntu 11.10 to 12.04 – Complete Guide


I was trying to upgrade this afternoon from 11.10 to 12.04. After most of the packages had been downloaded, I lost my Internet connection. When I re-connected to the Internet, still on Ubuntu 11.10, software update showed me a huge ammount of updates to perform (because it hald already altered the software sources and ppas to 12.04).

Well, I performed all the updates. Now, I have an Ubuntu that is half-way between 12.04 and 11.10. It identifies itself as 12.04, but its mostly 11.10. When I try update-manager -d, I get the message

Not all updates can be installed, run a partial upgrade to install as many updates as possible.

Then, if I click "partial update" I get the following error: "an upgrade prom precise to oneric is not suported with this tool"

What is happening? Is there a way I can fix this? Perhaps changing ALL the software sources to 12.04's?

I don't want to do a fresh install, cause I want to keep all my installed software and all my settings!

Best Answer

When this happened to me because the update process had "too many errors" (whatever that means), I did the following.

  1. Boot the recovery mode of whatever kernel still works.
  2. Your / partition will have been mounted as read-only because you booted in recovery mode. Run fsck Check all file systems from the recovery menu. Hopefully it will complete successfully at which point your install partition will be remounted as read/write.
  3. Enable networking so that you will have access to the Internet when you try to fix your packages.
  4. Attempt to Repair broken packages

Maybe this will not be any more successful than your previous attempts to fix the packages. But I figured it might be worth a try. It seems to have worked for me.

Related Question