Ubuntu--ubuntu apt-get update更换源也无法解决的一种情况
2014-06-17 15:51
507 查看
这种情况就是DNS配置问题,之所以难发现,是因为ping的通就以为网络没问题了,但是源还是需要DNS来服务的
解决步骤:
改为如下内容:
在Windows下像这样:
(之前我们公司局域网改过一次DNS我给忘记了)
OK
解决步骤:
1.用编辑器打开resolv.conf
vi /etc/resolv.conf
改为如下内容:
search localdomain nameserver 8.8.8.8 //希望修改成的DNS nameserver 8.8.6.6 //备用的DNS
在Windows下像这样:
(之前我们公司局域网改过一次DNS我给忘记了)
2.重启网络:
sudo /etc/init.d/networking restart
3.然后:
apt-get update
OK
相关文章推荐
- Ubuntu apt-get update 无法更新速度是0的情况解决方法
- ubuntu 使用sudo apt-get update 出现 被配置多次导致无法升级错误解决方法
- Ubuntu 14.10 sudo apt-get update 出错的一种可能解决方法
- ubuntu里apt-get install java的情况解决
- ubuntu apt-get卸载软件无法卸载干净的解决方法(ubuntu卸载apache)
- Ubuntu执行sudo apt-get update出现Failed to fetch.......的问题的解决
- Ubuntu/Debian下 apt-get command not found 命令无法找到的解决方法
- ubuntu apt-get update 失败解决。
- 【转】ubuntu apt-get update 失败解决
- ubuntu apt-get update 失败解决
- ubuntu 14.04LTS apt-get update时出现错误解决
- 如何删除在Ubuntu安装中设置的http代理 (解决apt-get update 出错问题)
- ubuntu下sudo apt-get update Sources 404 Not Found [IP: 91.189.92.200 80]解决办法
- ubuntu14.10系统_apt-get_update失败解决办法
- ubuntu 执行apt-get update 提示无法获得锁
- apt-get update 提示没有公钥,无法验证签名的解决办法
- Ubuntu中apt-get 安装失败,导致无法安装其他软件的解决办法。
- 关于Ubuntu 9.10 的apt-get update 一直无法更新源的点点滴滴
- ubuntu14.04 apt-get由于源的问题导致无法下载问题解决
- ubuntu apt-get update 更新源失败的解决办法