I tried to update my Ubuntu 22.04 droplet, but cannot. An upgrade to 24.04 is also an acceptable solution for me, but I also cannot seem to upgrade from here. Do I need to destroy and create a new droplet?
(Ubuntu 22.04 should not be EOL yet at time of writing)
$ sudo apt update
Ign:1 http://security.ubuntu.com/ubuntu kinetic-security InRelease
Err:2 http://security.ubuntu.com/ubuntu kinetic-security Release
404 Not Found [IP: 185.125.190.81 80]
Ign:3 http://mirrors.digitalocean.com/ubuntu kinetic InRelease
Ign:4 http://mirrors.digitalocean.com/ubuntu kinetic-updates InRelease
Hit:5 https://download.docker.com/linux/ubuntu kinetic InRelease
Ign:6 http://mirrors.digitalocean.com/ubuntu kinetic-backports InRelease
Hit:7 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Err:8 http://mirrors.digitalocean.com/ubuntu kinetic Release
404 Not Found [IP: 104.21.29.13 80]
Err:9 http://mirrors.digitalocean.com/ubuntu kinetic-updates Release
404 Not Found [IP: 104.21.29.13 80]
Err:10 http://mirrors.digitalocean.com/ubuntu kinetic-backports Release
404 Not Found [IP: 104.21.29.13 80]
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu kinetic-security Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirrors.digitalocean.com/ubuntu kinetic Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirrors.digitalocean.com/ubuntu kinetic-updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirrors.digitalocean.com/ubuntu kinetic-backports Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
$ 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.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.10
Release: 22.10
Codename: kinetic
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Heya,
Your issue arises because Ubuntu 22.10 (“Kinetic Kudu”) has reached its end of life (EOL) as of July 20, 2023, and its repositories have been removed from the mirrors. Here’s how you can resolve this situation without needing to destroy and recreate the droplet:
Steps to Fix and Upgrade:
Manually Update
sources.list
to Use Old Releases Archive Since 22.10 repositories are no longer active, you need to point your package manager to the old-releases repository.Edit the
sources.list
file:Replace all instances of
http://archive.ubuntu.com/
andhttp://security.ubuntu.com/
withhttp://old-releases.ubuntu.com/
. For example, change:To:
Save and exit the file (
Ctrl+O
,Enter
,Ctrl+X
).Update the Package Cache Run the following command to update the package list:
Upgrade to the Latest 22.10 Packages Since Ubuntu requires the latest updates for an in-place release upgrade, do the following:
Upgrade to Ubuntu 23.04 (Lunar Lobster) After updating to the latest 22.10 packages, you can upgrade to the next release:
Upgrade to Ubuntu 24.04 (LTS) Once Released Since you prefer an LTS release, you can later upgrade to Ubuntu 24.04 (LTS) when it becomes available. For now, Ubuntu 23.04 (non-LTS) is your intermediate step. To switch directly to 24.04 when it becomes available: