Ubuntu Upgrade

ubuntu logo

Installiert habe ich ubuntu 17.04, ich will ein upgrade nach 18.04. Aber mit folgender Eingabe

# sudo do-release-upgrade

erhalte ich nur die Meldung An upgrade from 'zesty' to 'bionic' is not supported with this tool. Hier die komplette Rückmeldung:

# sudo do-release-upgrade
Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife

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. 

Eine Lösung gibt es bei StackExchange

Zunächst mal aufräumen

# sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #to be safe
# sudo sed -i -re 's/old-releases.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list
# sudo sed -i -re 's/zesty/artful/g' /etc/apt/sources.list
# sudo apt update
# sudo apt dist-upgrade
# sudo apt autoremove

Sodann alles im Verzeichnis /etc/apt/sources.list ersetzen mit:

## EOL upgrade sources.list
# Required
# deb http://old-releases.ubuntu.com/ubuntu/ artful main restricted universe multiverse
# deb http://old-releases.ubuntu.com/ubuntu/ artful-updates main restricted universe multiverse
# deb http://old-releases.ubuntu.com/ubuntu/ artful-security main restricted universe multiverse

# Optional
# deb http://old-releases.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse

Um schließlich das upgrade zu starten mit

# do-release-upgrade  

👍👌