Report this

What is the reason for this report?

apt update not working on Ubuntu 21.04

Posted on February 5, 2023

Hello,

I would like to update my ubuntu 21.04 droplet but when I do :

apt update

I have this error :

root@ubuntu-s-1vcpu-1gb-lon1-01:~# apt update
Hit:1 http://old-releases.ubuntu.com/ubuntu hirsute-security InRelease
Get:2 https://download.docker.com/linux/ubuntu hirsute InRelease [48.9 kB]                                                               
Ign:3 http://mirrors.digitalocean.com/ubuntu hirsute InRelease                                                                           
Ign:4 http://mirrors.digitalocean.com/ubuntu hirsute-updates InRelease
Hit:5 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Ign:6 http://mirrors.digitalocean.com/ubuntu hirsute-backports InRelease
Err:7 http://mirrors.digitalocean.com/ubuntu hirsute Release
  404  Not Found [IP: 172.67.148.71 80]
Err:8 http://mirrors.digitalocean.com/ubuntu hirsute-updates Release
  404  Not Found [IP: 172.67.148.71 80]
Err:9 http://mirrors.digitalocean.com/ubuntu hirsute-backports Release
  404  Not Found [IP: 172.67.148.71 80]
Reading package lists... Done
E: The repository 'http://mirrors.digitalocean.com/ubuntu hirsute 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 hirsute-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 hirsute-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.

Ubuntu 21.04 (GNU/Linux 5.11.0-49-generic x86_64)



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.

Hey @0x3ther,

hirsute has reached End of Life :

https://fridge.ubuntu.com/2022/01/21/ubuntu-21-04-hirsute-hippo-end-of-life-reached-on-january-20-2022/

You need to upgrade to 21.10 version of Ubuntu for this to be resolved:

  1. Install update-manager-core if it is not already installed:

    sudo apt-get install update-manager-core

  2. Edit /etc/update-manager/release-upgrades and set Prompt=normal

  3. Launch the upgrade tool:

    do-release-upgrade -d

  4. Follow the on-screen instructions.

Hello @0x3ther

You can change the source in /etc/apt/sources.list using the Ubuntu official archieve for the outdated dists - https://old-releases.ubuntu.com/ubuntu/dists/

This should help you to complete the process.

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.