2
New release 'oneiric' available.
Run 'do-release-upgrade' to upgrade to it.

2222222-desktop:~$ do-release-upgrade
Checking for a new ubuntu release
No new release found

why does it say there is an upgrade then says it does not find it?

I have been slowly upgrading from 9x to 11.04. I had some issues along the way but nothing google could not help me with. Now this has me stuck.

I have tried

sudo apt-get update

this worked so it was not the issue I had before where my keys were invalid.

sudo apt-get upgrade

after that did nothing.

sudo do-release-upgrade returned with "no upgrade found"

do-release-upgrade -d. did the trick. I should have tried it since I did come across the -d tag in researching this. I had thought since the terminal itself knew there was an update available, it should find it. Thank you all for helping.

Thomas Ward
  • 78,878
Jonathan
  • 29
  • 1
  • 3

2 Answers2

1

do-release-upgrade

should be prefixed with sudo

sudo do-release-upgrade

and you may want to run the following command first

sudo apt-get update

although if you have been upgrading from 9.xx then you probably know that anyway,

so I apologise for stating the obvious if that is the case. :o)

0

From Natty to Oneiric
Oneiric Release Notes - Upgrading
Focus on the "Upgrading from 11.04" section.

To upgrade from Ubuntu 11.04 on a desktop system, press Alt+F2 and type in update-manager -d into the command box. Update Manager should open up and display following message: "New distribution release '11.10' is available. Click Upgrade and follow the on-screen instructions".

To upgrade from Ubuntu 11.04 on a server system, follow the steps listed below:
Step 1: Install the update-manager-core package (if it is not already installed).
Step 2: Use following command: sudo do-release-upgrade -d to launch the upgrade tool.
Step 3: Follow the on-screen instructions. Note that the server upgrade is now more robust and will utilize GNU screen and automatically re-attach in case of dropped connection problems, for example.


Precise
Precise Release Notes - Desktop - Upgrading
Precise Release Notes - Server/CLI - Upgrading

Using CLI and do-release-upgrade:

You will need to upgrade to Oneiric (11.10) first before you can upgrade to Precise.

From 11.10 to 12.04
To upgrade from Ubuntu 11.10 on a server system, follow the steps listed below:
1.Install the update-manager-core package (if it is not already installed).
2.Run sudo do-release-upgrade to launch the upgrade tool.
3.Follow the on-screen instructions. Note that the server upgrade is now more robust and will utilize GNU screen and automatically re-attach in case of dropped connection problems, for example.

From 10.04 to 12.04
(see the release notes for Server/CLI)

Thomas Ward
  • 78,878