首页 > 代码库 > apt-get Unable to fetch some archives
apt-get Unable to fetch some archives
报错:
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.19-10ubuntu2.2_amd64.deb Could not resolve ‘archive.ubuntu.com‘
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc-dev-bin_2.19-10ubuntu2.2_amd64.deb Could not resolve ‘archive.ubuntu.com‘
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.19-10ubuntu2.2_amd64.deb Could not resolve ‘archive.ubuntu.com‘
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dbg_2.19-10ubuntu2.2_amd64.deb Could not resolve ‘archive.ubuntu.com‘
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
解决方法:
root@node3:~/mycode# vim /etc/resolv.conf
添加nameserver 8.8.8.8
apt-get Unable to fetch some archives