PDA

View Full Version : Upgrade from 17.04 fails



danik56
July 30th, 2018, 11:23 AM
I am trying to upgrade a system still running 17.04
I have modified /etc/apt/sources.list as advised to include only:

deb http://old-releases.ubuntu.com/ubuntu/ zesty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ zesty-security main restricted universe multiverse


Then had no errors running:

apt update
apt upgrade
apt dist-upgrade

Then when attempting "do-release-upgrade" I get the following error:

Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1,257 kB]
Fetched 1,258 kB in 0s (0 B/s)
authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg'
extracting 'bionic.tar.gz'
Reading cache
Checking package manager
Can not upgrade
An upgrade from 'zesty' to 'bionic' is not supported with this tool.

Can I somehow upgrade first to 17.10 ?

Impavidus
July 30th, 2018, 11:59 AM
Just try a fresh install of 18.04. It's faster and much more likely to succeed.

Autodave
July 30th, 2018, 12:10 PM
17.04 was dead a while ago, so you cannot upgrade from it. 17.10 is also dead. So, at this point, you have to do a clean install of 18.04. make sure you back up anything you need to an external source.

danik56
July 31st, 2018, 05:46 AM
I can obviously do a clean install of 18.04 but what about all the configured software that I have running ? Install everything from scratch ? It will be a nightmare..

danik56
July 31st, 2018, 09:16 AM
When will 17.10 repositories move to old-releases ?

Impavidus
July 31st, 2018, 12:49 PM
I can obviously do a clean install of 18.04 but what about all the configured software that I have running ? Install everything from scratch ? It will be a nightmare..Backup your config files and restore them after the fresh install, or keep them on a separate /home partition. Keep a list of all installed software and reinstall it (as far as you still need it) with a few clicks or commands. It shouldn't take more than an hour. The old configs aren't guaranteed to work, but you get that problem with an upgrade too. Sometimes things change.


When will 17.10 repositories move to old-releases ?
Could be any moment, if they haven't moved already. It may depend on your mirror.

danik56
July 31st, 2018, 04:04 PM
For example, can IPTABLES rules be backed up and restored after fresh OS install ?

1fallen
July 31st, 2018, 04:21 PM
Yes of course:

iptables-save > /etc/iptables/rules.v4

These files can be loaded again with the command iptables-restore for IPv4.


iptables-restore < /etc/iptables/rules.v4

If you would also like to use IPv6 rules, these can be stored in a separate file.


ip6tables-save > /etc/iptables/rules.v6
I don't use ipv6 here on my system.(To note only)

jwinterton68
October 8th, 2018, 02:28 PM
Hi danik56
Where did you get to with your upgrade? I too need to upgrade from 17.04. In the past I have had more luck upgrading incrementally to get to a supported version than undertaking a clean install. Like you I want to avoid the hassle of configuring all my servers components again from scratch on 18.04. There should be (must have been at some point) an upgrade from 17.04 to 17.10. The installer only wants to jump me from 17.04 to 18.04 which it says of course is not supported. Any idea how to get it to upgrade to 17.10 instead. Then I will do 17.10 to 18.04 after that! At least, that is the theory.

oldos2er
October 8th, 2018, 03:58 PM
Hi jwinterton68, please start your own thread, danik56 hasn't returned to the forum since August.