apt-get install 报Failed to fetch http
2015-05-21 17:38
288 查看
source一个环境变量时,报please install libxml2-dev的错误,
但 apt-get install libxml2-dev时提示下面的错误 :提示:
Failed to fetch http:// .....
-5 - No address associated with hostname
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
这个说是DNS没有配置好,按下面修改
vi /etc/resolv.conf
# Generated by NetworkManager
nameserver 202.96.134.133
nameserver 202.96.128.68
然后
apt-get update, 然后再 apt-get install libxml2-dev 问题解决。
但 apt-get install libxml2-dev时提示下面的错误 :提示:
Failed to fetch http:// .....
-5 - No address associated with hostname
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
这个说是DNS没有配置好,按下面修改
vi /etc/resolv.conf
# Generated by NetworkManager
nameserver 202.96.134.133
nameserver 202.96.128.68
然后
apt-get update, 然后再 apt-get install libxml2-dev 问题解决。
相关文章推荐
- apt-get update --> Bad header line (fresh install) Ign http://archive.ubuntu.com natty-security/multiverse Sources/DiffIndex W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/natty/Rele
- Ubuntu用sudo apt-get install时出现“Failed to fetch”的解决办法
- ubuntu中sudo apt-get install 出现 failed to fetch
- [置顶] apt-get update 更新失败----如何清除破损而且陈旧的PPA仓库 (W: Failed to fetch http://ppa.launchpad.net/jonathonf/pyt)
- Ubuntu执行sudo apt-get update出现Failed to fetch.......的问题的解决
- apt-get update 时的问题 W:Failed to fetch gzip:/var/lib/apt/lists/partial...解决办法
- [置顶] [ubuntu系列]apt-get update 出现failed to fetch
- Failed to fetch URL http://dl-ssl.google.com************
- Ubuntu中用sudo apt-get install安装某软件,结果出错:E: Unable to locate
- 完美解决failed to open stream: HTTP request failed!(file_get_contents引起的)
- Android SDK安装更新——Failed to fetch URL http://dl-ssl.google.com/android/repository/a
- php安装http扩展(sudo apt-get install)
- ubuntu图下安装软件出现You might want to run 'apt-get -f install' to correct these解决
- ubuntu下安装软件出现You might want to run 'apt-get -f install' to correct these解决
- Failed to fetch URL https://dl-ssl.google.com/glass/gdk/addon.xml, reason: HttpHostConnect Connectio
- php file_get_contents()报错 failed to open stream: HTTP request failed!、Internal Server Error
- 完美解决failed to open stream: HTTP request failed!(file_get_contents引起的)
- ubuntu-16.04安装程序报错 you might want to run 'apt-get -f install' to correct these
- ubuntu图下安装软件出现You might want to run 'apt-get -f install' to correct these解决