Why does do-release-upgrade from 16.04 LTS to 16.10/17.04 not find updates even with --devel-release?

6

3

I'm trying to upgrade a server (CLI only) from Ubuntu 16.04 to a newer non-LTS release using the do-release-upgrade tool.

I know LTS versions usually don't upgrade to 'non-LTS' releases prompting. Some assorted (old...) forum posts seem to imply that the -d, --devel-release option should be enough to force the update, but even that does not find anything.

I've tried various combinations of -c and -d.

There's also lots of people discussing how to upgrade from 14.04 to 16.04, where apparently it now waits for the next point release (16.04.1) first. But that's not relevant here, as I'm trying to upgrade away from LTS.


The exact message is:

# do-release-upgrade -c -d
Checking for a new Ubuntu release
No new release found

My current version is 16.04.2:

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial

Bob

Posted 2017-04-24T14:26:10.977

Reputation: 51 526

Strangely, it is also possible to get this message when there is no internet connection, e.g. when networking is down. For some reason no error message is shown in such cases. – jotik – 2019-08-24T09:10:52.190

Answers

5

So by default it'll only try and upgrade to the next LTS release, and it'll only do so at version '.10' for 'reasons'...?

So to change it manually on either a desktop version or server version you can edit the file where this is set using vi:

sudo vi /etc/update-manager/release-upgrades
# Find the line that reads:
Prompt=LTS
# Change it to say:
Prompt=normal

Save the file, then run the upgrade again

do-release-upgrade

And it should upgrade as expected, to the next version (non-lts).

Note: You can do the same thing in reverse, to set it to only upgrade to the next LTS version too.

djsmiley2k TMW

Posted 2017-04-24T14:26:10.977

Reputation: 5 937

1Ah... thanks. Now I feel incredibly dumb... how'd I miss that?! – Bob – 2017-04-24T15:37:05.027

Due to the lameness of Ubuntu documentation I'd bet ! – djsmiley2k TMW – 2017-04-24T15:37:52.820