Problem: apt-get update gives an error :
[bash]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving ‘archive.ubuntu.com’
[/bash]
Reason: Name server is not configured correctly.
Solution : Use Google’s nameservers as below-
[bash]
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
[/bash]
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.