Problem: apt-get update gives an error :
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving ‘archive.ubuntu.com’
Reason: Name server is not configured correctly.
Solution : Use Google’s nameservers as below-
echo "nameserver 126.96.36.199" | sudo tee /etc/resolv.conf > /dev/null
Apt get should work now.
Kj [/.] Sreekumar programs computers as a hobby and profession. Into programming from his school days, Sree uses Codemarvels to key in facts and fixes he finds interesting while working on different projects. Some of the articles here give away a few shades of his philosophical leanings too.