Report this

What is the reason for this report?

error while updating ubuntu 23.10

Posted on January 30, 2025

Command : apt update

Logs are below:

Hit:1 https://repos.insights.digitalocean.com/apt/do-agent main InRelease

Hit:2 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease

Ign:3 http://mirrors.digitalocean.com/ubuntu mantic InRelease

Ign:4 http://security.ubuntu.com/ubuntu mantic-security InRelease

Ign:5 http://mirrors.digitalocean.com/ubuntu mantic-updates InRelease

Ign:6 http://mirrors.digitalocean.com/ubuntu mantic-backports InRelease

Err:7 http://security.ubuntu.com/ubuntu mantic-security Release

  404  Not Found [IP: 185.125.190.82 80]

Err:8 http://mirrors.digitalocean.com/ubuntu mantic Release

  404  Not Found [IP: 104.21.29.13 80]

Ign:9 https://ppa.launchpadcontent.net/ondrej/apache2/ubuntu mantic InRelease

Err:10 http://mirrors.digitalocean.com/ubuntu mantic-updates Release

  404  Not Found [IP: 104.21.29.13 80]

Err:11 http://mirrors.digitalocean.com/ubuntu mantic-backports Release

  404  Not Found [IP: 104.21.29.13 80]

Hit:12 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease

Err:13 https://ppa.launchpadcontent.net/ondrej/apache2/ubuntu mantic Release

  404  Not Found [IP: 185.125.190.80 443]

Reading package lists... Done

**E:** The repository 'http://security.ubuntu.com/ubuntu mantic-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 mantic 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 mantic-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 mantic-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.

**E:** The repository 'https://ppa.launchpadcontent.net/ondrej/apache2/ubuntu mantic Release' does not have 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.


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.

Hello @abhaypokharkar

Hi there,

The error messages you’re seeing indicate that the repositories for Ubuntu 23.10 are no longer available at the specified URLs. This is expected behavior when a version of Ubuntu reaches its end of life (EOL).

Ubuntu 23.10 is not a long-term support (LTS) version, so upgrading to 24.04 LTS (Noble) is the best solution for stability and security.

Before attempting a major upgrade on any system, you should make sure you won’t lose data if the upgrade goes awry. The best way to accomplish this is to make a backup of your entire filesystem. Failing that, ensure that you have copies of user home directories, any custom configuration files, and data stored by services such as relational databases.

On a DigitalOcean Droplet, one approach is to power down the system and take a snapshot (powering down ensures that the filesystem will be more consistent). See How to Create Snapshots of Droplets for more details on the snapshot process. After you have verified that the Ubuntu update was successful, you can delete the snapshot so that you will no longer be charged for its storage.

For backup methods which will work on most Ubuntu systems, see How To Choose an Effective Backup Strategy for your VPS.

  • Ensure your system is up-to-date (using old-releases mirrors):
sudo sed -i 's/mirrors.digitalocean.com\/ubuntu/old-releases.ubuntu.com\/ubuntu/g' /etc/apt/sources.list 
sudo sed -i 's/security.ubuntu.com\/ubuntu/old-releases.ubuntu.com\/ubuntu/g' /etc/apt/sources.list 
sudo apt update && sudo apt upgrade -y
  • Run the upgrade command:
sudo do-release-upgrade

If you cannot upgrade right away, you can still get package updates by switching to Ubuntu’s old-releases archive.

Modify your sources.list:

sudo sed -i 's/mirrors.digitalocean.com\/ubuntu/old-releases.ubuntu.com\/ubuntu/g' /etc/apt/sources.list 
sudo sed -i 's/security.ubuntu.com\/ubuntu/old-releases.ubuntu.com\/ubuntu/g' /etc/apt/sources.list

Then run:

sudo apt update && sudo apt upgrade -y

Hope that this helps!

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.