Err:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease Temporary failure resolving 'us.archive.ubuntu.com' code example
Example: emporary failure resolving
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
#this is temporary solution