1

I found instructions for the upgrade on Focal Release Notes, but when I follow them, they don't work. The steps I followed along with their outputs:

  • You can upgrade to Ubuntu 20.04 LTS from either Ubuntu 18.04 LTS or Ubuntu 19.10.
  • Ensure that you have all updates installed for your current version
    of Ubuntu before you upgrade.

Output of sudo apt update:

$ sudo apt update  
Get:2 https //download.docker.com/linux/ubuntu eoan InRelease [43.0 kB]  
Hit:1 https //packages.cloud.google.com/apt kubernetes-xenial InRelease  
Hit:3 http //old-releases.ubuntu.com/ubuntu eoan InRelease  
Hit:4 http //old-releases.ubuntu.com/ubuntu eoan-updates InRelease  
Hit:5 http //old-releases.ubuntu.com/ubuntu eoan-backports InRelease  
Hit:6 http //old-releases.ubuntu.com/ubuntu eoan-security InRelease  
Fetched 43.0 kB in 3s (15.9 kB/s)  
Reading package lists... Done  
Building dependency tree  
Reading state information... Done  
42 packages can be upgraded. Run 'apt list --upgradable' to see them.  
  • Confirm that you also have a network connectivity to one of the official mirrors or to a locally accessible mirror as there are no offline upgrade options.
$ wget mirror.enzu.com.ubuntu  
--2021-02-15 22:33:09--  http://mirror.enzu.com.ubuntu/  
Resolving <MIRROR NAME> (<MIRROR NAME>)... 92.242.140.21  
Connecting to <MIRROR NAME> (<MIRROR NAME>)|92.242.140.21|:80... connected.  
HTTP request sent, awaiting response... 200 OK  
Length: unspecified [text/html]  
Saving to: ‘index.html’  
  
index.html                                          [ <=>                                                                                                   ]     894  --.-KB/s    in 0s  

2021-02-15 22:33:09 (9.06 MB/s) - ‘index.html’ saved [894]  
  • Install update-manager-core if it is not already installed.
$ sudo apt install update-manager-core  
Reading package lists... Done  
Building dependency tree  
Reading state information... Done  
update-manager-core is already the newest version (1:19.04.8).  
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
  • Make sure the Prompt line in /etc/update-manager/release-upgrades is set to 'normal' if you are using 19.10, or 'lts' if you are using 18.04 LTS.
$ grep Prompt /etc/update-manager/release-upgrades  
Prompt=normal
  • Launch the upgrade tool with the command sudo do-release-upgrade
$ 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  

Please install all available updates for your release before upgrading.  

What have I done wrong? I edited the /etc/apt/sources.list to point it to the old-releases.ubuntu.com URLs and it appears that the apt update was successful. Why would the instructions say that I can do it from a particular version only to tell me that I can't do it because I am coming from that version?

Any help in explaining this to me would be most appreciated.

$ sudo apt full-upgrade  
[sudo] password for dalex:  
Reading package lists... Done  
Building dependency tree  
Reading state information... Done  
Calculating upgrade... Done  
The following packages have been kept back:  
  kubeadm kubectl kubelet  
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.  
13
  • Something common that I see that could cause this. You may have an update that’s installed but not applied. Try rebooting your system.
    – Taux1c
    Feb 16, 2021 at 4:07
  • The upgrade window for 19.10 has long-since passed. You'll need to follow these steps to upgrade your system, or you'll need to do a fresh install.
    – user1091774
    Feb 16, 2021 at 4:13
  • 4
    Does this answer your question? How to install software or upgrade from an old unsupported release?
    – user1091774
    Feb 16, 2021 at 4:14
  • @Matigo Thank you, but, as I described in the question, I have done those steps and it is still not working.
    – dalex1
    Feb 16, 2021 at 4:20
  • 2
    You nailed it: Those three packages are preventing the do-release-upgrade. It won't run if ANY package isn't up-to-date. Were it my system, I would uninstall those packages, then run the do-release--upgrade, then reinstall the packages after.
    – user535733
    Feb 16, 2021 at 5:08

1 Answer 1

2

The following three packages can't be upgraded, and they are preventing the upgrade to 20.04: kubeadm kubectl kubelet. These packages are not essential to the operating system, and they can be reinstalled after the upgrade. Uninstall the three packages that can't be upgraded, and the upgrade can continue successfully.

sudo apt remove kubeadm kubectl kubelet

Here's another example of an error that occurred when trying to upgrade from Ubuntu 16.10 to Ubuntu 17.04.

The following packages have unmet dependencies:  
click-apparmor : Depends: python3-apparmor-click (= 0.3.17) but 0.3.18 is installed
libubuntu-app-launch4 : Depends: ubuntu-app-launch (= 0.12+17.04.20170404.2-0ubuntu2) but 0.9+16.10.20160928-0ubuntu1 is installed
ubuntu-app-launch-tools : Depends: ubuntu-app-launch (= 0.12+17.04.20170404.2-0ubuntu2) but 0.9+16.10.20160928-0ubuntu1 is installed
url-dispatcher-tools : Depends: url-dispatcher (= 0.1+17.04.20170328-0ubuntu2) but 0.1+16.10.20160816.1-0ubuntu1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or 
specify a solution).

As you can see from the error message three packages that have 16.10 in their names are preventing similar packages that have 17.04 in their names from being installed. To solve this error uninstall the three packages in the above error message that have 16.10 in their names.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .