Problem debian 9 update

June 30, 2019 394 views
System Tools

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?

2 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

Have another answer? Share your knowledge.