Solve Could not resolve ‘security.debian.org’ DNS Hostname Problem

Kerjaan

Have you ever using apt-get update for the first time in Virtual Machine and return

The troubleshooting I made for the first time was change the /etc/apt/sources.list

but what happen?

This still return same.

Fool me, The problem came from DNS hostname. The default hostname was my FQDN and my FQDN’s DNS still not yet configured.

To solve this problem, I just change the /etc/resolv.conf to public DNS or google DNS, so it will like this:

Leave a Comment

  • Saad

    Great article never seen such descriptive and main to the point article 🙂
    Thankyou so much

  • Garth

    Thanks mate, that was what I read elsewhere, but you hit the spot. Sorted out my system.

    • nadiar

      Glad it help, 🙂