Just change DNS
1 view DNS
vi /etc/resolv.conf
2 add after the original DNS
nameserver 114.114.114.114
nameserver 8.8.8.8
3 reassembly
sudo apt-get install build-essential
Prompt for update during loading
Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
Just update
sudo apt-get update
4 check whether the installation is successful
gcc –version
reference resources
“Temporary failure resolving ‘CN. Archive. Ubuntu. Com’ appears in Ubuntu apt get install”_ Ben wolf CSDN blog
Similar Posts:
- Linux Error: apt-get 404 not found [How to Solve]
- [Solved] dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
- Ubuntu fails to fetch files“Temporary failure resolving …” error add a DNS server via resolv.conf
- apt-get: Could not resolve ‘archive.ubuntu.com’
- Error reporting in Ubuntu apt get upgrade [How to Solve]
- Running ntpdate reports an error: temporary failure in name resolution
- E: Unable to get lock / var / lib / apt / lists / lock – Open (11 resources temporarily unavailable)
- Could not open lock file/var/lib/dpkg/lock [How to Solve]
- [Solved] Accessing MSSql under Ubuntu prompts SSL Handshake failed with OpenSSL error