solve ubuntu can not find temporaily apt-get update

solve ubuntu can not find temporaily

cli,
update dns to google dns server.

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

then solve,

sudo apt-get update

ref, * apt-get update fails to fetch files, “Temporary failure resolving …” error

CaesarChi

Web developer, focus on website fullstack, special JavaScript, and love sharing developing experience and communicate with developers. http://about.me/clonn