Question

Problem debian 9 update

Hello, I have a problem there is his 3 days I reinitialize my droplet because of a problem and when I’m on it for the first time I try to update it but when I made the order “apt update” or “apt-get update” I get this error after about 5 min without anything happening:

Err: 1 http://mirrors.digitalocean.com/debian stretch InRelease   Temporary failure resolving ‘mirrors.digitalocean.com’ Err: 2 http://security.debian.org stretch / updates InRelease   Temporary failure resolving ‘security.debian.org’ Err: 3 http://mirrors.digitalocean.com/debian stretch-updates InRelease   Temporary failure resolving ‘mirrors.digitalocean.com’ Reading package lists … Done Building dependency tree Reading state information … Done All packages are up to date. W: Failed to fetch http://mirrors.digitalocean.com/debian/dists/stretch/InRelease Temporary failure resolving ‘mirrors.digitalocean.com’ W: Failed to fetch http://security.debian.org/dists/stretch/updates/InRelease Temporary failure resolving ‘security.debian.org’ W: Failed to fetch http://mirrors.digitalocean.com/debian/dists/stretch-updates/InRelease Temporary failure resolving ‘mirrors.digitalocean.com’ W: Some index files failed to download. They have been ignored, or old ones used instead.

Why do I have this message?


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey, is there any solution with this? I have similar or even same problem with Debian 9:

W: The repository 'http://mirrors.digitalocean.com/ubuntu stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://mirrors.digitalocean.com/ubuntu stretch-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://mirrors.digitalocean.com/ubuntu stretch-backports Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://security.ubuntu.com/ubuntu stretch-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/stretch/universe/source/Sources  404  Not Found [IP: 104.24.117.209 80]
E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/stretch-updates/main/source/Sources  404  Not Found [IP: 104.24.117.209 80]
E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/stretch-backports/restricted/source/Sources  404  Not Found [IP: 104.24.117.209 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/stretch-security/restricted/source/Sources  404  Not Found [IP: 91.189.91.23 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Tried changing to Google’s public nameservers but still no luck

Is not working.

Hi,

From the output that you’ve provided us with it looks like your droplet is having general DNS trouble as it’s also unable to resolve domain names.

What is the current content of your /etc/resolv.conf file?

Can you also try pinging well known domains like google.com?

Regards, Bobby