23

On a Lenovo laptop, I want to upgrade from Ubuntu 18.04 to Ubuntu 18.10 (budgie).

When I select upgrade on the update manager, the dialog box disappears and nothing happens. The upgrade doesn't start.

Note- I went through the same procedure this morning on my other laptop and Ubuntu successfully upgraded.

do-release-upgrade fails to upgrade and throws this error:

Please install all available updates for your release before upgrading.

What can I do to upgrade the system successfully?

  • 1
    Reboot your system. Open a Terminal. Try the command do-release-upgrade. If it fails, edit your question to include the complete terminal output. – user535733 Oct 19 '18 at 17:08
  • 1
    terminal reply : "please install all available updates version before upgrading" – dupont Oct 19 '18 at 18:18
  • 1
    I found the solution after typing in the terminal "sudo apt-get update " and "sudo apt-get dist-upgrade" and then launch the update manager and the upgrade started. – dupont Oct 19 '18 at 18:35
17

Enable upgrading to non-LTS versions

software-properties-gtk

Then:

  • "Updates" tab
  • "Notify me of a new Ubuntu version" dropdown
  • "For any new version"

enter image description here

TODO how to do it from the command line only?

Then as usual:

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo do-release-upgrade

Without the For any new version setting, it failed to find the new version with:

No new release found.

Also note that the upgrade is not released at the exact same time as the 18.10 disk comes out, it seems that you have to wait a few days until 18.04.1 is released before upgrading.

For some reason, apt-get missed one of the upgrades and I got:

Please install all available updates for your release before upgrading."

only apt worked.

I advise against -d unless you really know what you are doing as that upgrades to unstable development versions, which is not something that most users want.

  • 3
    +1 The note at the end about using apt instead of apt-get was what I needed. – Phlarx Apr 4 at 21:12
7

Install all updates and then perform the system upgrade via Terminal, that should work:

sudo apt-get update && sudo apt-get upgrade
sudo do-release-upgrade -d
  • 4
    Note that -d upgrades to the development version, and is likely a bad idea for most users, have a look at this option instead: askubuntu.com/questions/1085295/… – Ciro Santilli 新疆改造中心法轮功六四事件 Dec 14 '18 at 17:11
  • 6
    It is also necessary to call apt dist-upgrade before doing do-release-upgrade – kap Feb 19 at 21:35
  • 1
    Even doing dist-upgrade, it still gives me the error Please install all available updates for your release before upgrading. – Cerin Apr 2 at 18:35
2

I had exactly the same issue on my Lenovo ThinkPad X240. After sudo apt-get update && sudo apt-get upgrade in the Terminal, the graphical update-manager (Software Updater) worked properly...

2

I've came across the same issue when upgrading from 18.10 to 19.04. In my case the reason was that I had some packages marked as kept back. In this case they were related to MSSQL.

szymon@szymon-Lenovo-Z580:~$ sudo apt upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libodbc1 unixodbc
0 to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade.

I simply removed them along with their dependencies:

szymon@szymon-Lenovo-Z580:~$ sudo apt remove unixodbc libodbc1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  odbcinst odbcinst1debian2
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
freetds-bin libodbc1 msodbcsql17 mssql-tools unixodbc

Then the following sequence of commands led me to the successful upgrade:

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo do-release-upgrade

EDIT: Later I found this detailed Michael's answer to similar question which might help achieve the same goal.

0

What version of the OS do you have (32/64 bit)? The output of the terminal on my Lubuntu machine after a use of sudo do-release-upgrade is:

apt architecture is i386 

Upgrades from 18.04 on the i386 architecture are not supported at 
this time.

(The cammand sudo do-release-upgrade -d is for upgrading to the latest development release! And it is possible from the latest release only.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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