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?

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.

×
3 answers

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

  • Hi,

    Yes for me is the problem about DNS, in the /etc/resolv.conf file I have :

    nameserver 67.207.67.3
    nameserver 67.207.67.2

    I have error when I ping a domain.

    • As a test I would recommend changing the nameservers to the Google’s public nameservers:

      nameserver 8.8.8.8
      nameserver 8.8.4.4

      Then try pinging a domain again. If this works, you should be able to run the update command.

      Let me know how it goes!

      Regards,
      Bobby

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

Submit an Answer