Question

Debian 9.7 x64 apt update errors

apt update

Ign:1 http://mirrors.digitalocean.com/ubuntu stretch InRelease Ign:2 http://mirrors.digitalocean.com/ubuntu stretch-updates InRelease Ign:3 http://mirrors.digitalocean.com/ubuntu stretch-backports InRelease Err:4 http://mirrors.digitalocean.com/ubuntu stretch Release 404 Not Found [IP: 104.24.117.209 80] Err:5 http://mirrors.digitalocean.com/ubuntu stretch-updates Release 404 Not Found [IP: 104.24.117.209 80] Err:6 http://mirrors.digitalocean.com/ubuntu stretch-backports Release 404 Not Found [IP: 104.24.117.209 80] Ign:7 http://security.ubuntu.com/ubuntu stretch-security InRelease Err:8 http://security.ubuntu.com/ubuntu stretch-security Release 404 Not Found [IP: 91.189.91.23 80] Reading package lists… Done E: The repository ‘http://mirrors.digitalocean.com/ubuntu stretch 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. E: The repository ‘http://mirrors.digitalocean.com/ubuntu stretch-updates 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. E: The repository ‘http://mirrors.digitalocean.com/ubuntu stretch-backports 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. E: The repository ‘http://security.ubuntu.com/ubuntu stretch-security 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.


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.

Accepted Answer

This was caused by “Rebuild Droplet” Ubuntu to Debian. Clean new Debian Droplet did not have the same issue.

This is not good enough though. I need to rebuild my Centos server as Debian and maintain the IP it had. I cant do it because of this error. Building a new droplet is not a solution for me.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

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

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel