Can Ubuntu 12.04 be upgraded to 14.04 instead of 16.04?
15,357
Solution 1
You can check the release you'll get with do-release-upgrade
by adding the -c
flag like so:
do-release-upgrade -c
As far I understand, there is not yet an upgrade possibility for upgrading 12.04 LTS to 16.04 without going step by step (i.e. to 14.04 on the first run), so do-release-upgrade
can be expected to do exactly what you want.
Solution 2
I tested this just now.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04 Codename: precise
Then:
$ sudo do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [198 B]
et:2 Upgrade tool [1,156 kB]
Fetched 1,156 kB in 0s (0 B/s)
authenticate 'trusty.tar.gz' against 'trusty.tar.gz.gpg' extracting 'trusty.tar.gz'
Related videos on Youtube
Author by
Kalle Richter
Updated on September 18, 2022Comments
-
Kalle Richter over 1 year
I've got a live web server running 12.04 which is in desperate need of an update. I cannot upgrade to 16.04 as the new version of PHP is not compatible with the hosted site as well as a few other packages that won't be compatible.
Is there a way I can run
do-release-upgrade
for the 14.04 release? -
djsmiley2kStaysInside about 7 yearsWhat does the -c flag do? Is it really 'check? because it's not actually listed on the man page (way to go devs!)
-
djsmiley2kStaysInside about 7 yearsFound it in the -h help, rather than man pages o_O -- It is 'Check dist upgrade only'