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.

Sreekumar (KJ) has been a hobby programmer from school days. Codemarvels is his personal blog from the year 2010, where he writes about technology, philosophy, society and a bit about physics.
He now runs a conversational AI company – DheeYantra – focusing his efforts to help businesses improve operational efficiency using digital employees powered by AI.