首页 > 系统服务 > 详细

ubuntu apt-get failed

时间:2017-10-12 23:43:41      阅读:300      评论:0      收藏:0      [点我收藏+]

Err http://mirrors.163.com/ubuntu/ trusty/main libtinfo-dev i386 5.9+20140118-1ubuntu1

Could not resolve ‘mirrors.163.com‘
Err http://mirrors.163.com/ubuntu/ trusty/main libncurses5-dev i386 5.9+20140118-1ubuntu1
Could not resolve ‘mirrors.163.com‘
E: Failed to fetch http://mirrors.163.com/ubuntu/pool/main/n/ncurses/libtinfo-dev_5.9+20140118-1ubuntu1_i386.deb Could not resolve ‘mirrors.163.com‘

E: Failed to fetch http://mirrors.163.com/ubuntu/pool/main/n/ncurses/libncurses5-dev_5.9+20140118-1ubuntu1_i386.deb Could not resolve ‘mirrors.163.com‘

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

 

原因:
 dns服务器没有配置正确

解决办法:
1、打开文件/etc/resolv.conf在其中添加:
 nameserver 8.8.8.8
 nameserver 8.8.4.4
 search localdomain

2、然后重启网卡:使用命令: sudo ifdown eth0

             sudo ifup eth0

更换源方法

1。点击ubuntu software center

技术分享

2.进去software source

技术分享

3.选择要更换的源

技术分享

 

ubuntu apt-get failed

原文:http://www.cnblogs.com/Malphite/p/7658755.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!