Question

unable to update Ubuntu 22.04. Getting the error while running the command -sudo apt update

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

Submit an answer


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!

Sign In or Sign Up to Answer

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.

KFSys
Site Moderator
Site Moderator badge
December 16, 2024
Accepted Answer

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:

  1. 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:

sudo nano /etc/apt/sources.list

Replace all instances of http://archive.ubuntu.com/ and http://security.ubuntu.com/ with http://old-releases.ubuntu.com/. For example, change:

deb http://security.ubuntu.com/ubuntu kinetic-security main restricted universe multiverse

To:

deb http://old-releases.ubuntu.com/ubuntu kinetic-security main restricted universe multiverse
  • Save and exit the file (Ctrl+O, Enter, Ctrl+X).

  • Update the Package Cache Run the following command to update the package list:

sudo apt update

Upgrade to the Latest 22.10 Packages Since Ubuntu requires the latest updates for an in-place release upgrade, do the following:

sudo apt upgrade -y
sudo apt dist-upgrade -y

Upgrade to Ubuntu 23.04 (Lunar Lobster) After updating to the latest 22.10 packages, you can upgrade to the next release:

sudo do-release-upgrade

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:

-   Wait for its official release (expected April 2024).
-   Run `sudo do-release-upgrade` again at that time.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.