虚拟机安装 ubuntu 后,更新源无效,以及无法联网安装软件的问题
2016-05-04 21:19
555 查看
问题:
虚拟机安装 ubuntu 后,更新源无效,以及无法联网安装软件;
错误提示:
apt-get install putty-tools
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
putty-doc
The following NEW packages will be installed:
putty-tools
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 298 kB of archives.
After this operation, 1,522 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
putty-tools
Install these packages without verification? [y/N] Y
Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe putty-tools amd64 0.63-4ubuntu0.1
Could not resolve ‘us.archive.ubuntu.com’
Err http://security.ubuntu.com/ubuntu/ trusty-security/universe putty-tools amd64 0.63-4ubuntu0.1
Could not resolve ‘security.ubuntu.com’
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/p/putty/putty-tools_0.63-4ubuntu0.1_amd64.deb Could not resolve ‘security.ubuntu.com’
E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
解决方法:
修改DNS,编辑如下文件:
搞定!!!
http://blog.csdn.net/tmt123421/article/details/52912224
虚拟机安装 ubuntu 后,更新源无效,以及无法联网安装软件;
错误提示:
Err http://security.ubuntu.com/ubuntu/ trusty-security/universe putty-tools amd64 0.63-4ubuntu0.1
Could not resolve 'security.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/p/putty/putty_0.63-4ubuntu0.1_amd64.deb Could not resolve 'security.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
apt-get install putty-tools
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
putty-doc
The following NEW packages will be installed:
putty-tools
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 298 kB of archives.
After this operation, 1,522 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
putty-tools
Install these packages without verification? [y/N] Y
Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe putty-tools amd64 0.63-4ubuntu0.1
Could not resolve ‘us.archive.ubuntu.com’
Err http://security.ubuntu.com/ubuntu/ trusty-security/universe putty-tools amd64 0.63-4ubuntu0.1
Could not resolve ‘security.ubuntu.com’
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/p/putty/putty-tools_0.63-4ubuntu0.1_amd64.deb Could not resolve ‘security.ubuntu.com’
E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
解决方法:
修改DNS,编辑如下文件:
# edit /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4
搞定!!!
http://blog.csdn.net/tmt123421/article/details/52912224
相关文章推荐
- Eclipse快捷键大全
- 如何使用SQL WORKBENCH连SQL SERVER 2005数据库
- 欢迎使用CSDN-markdown编辑器
- Nginx简介
- UIMotionEffect和Home页背景视差效果
- Ubuntu有线连接(本地连接)不稳定问题(锐捷认证)
- Android最佳实践之Notification、下拉刷新、内存及性能建议等
- mongodb php 操作类 带几个简单的例子
- 实验三报告
- 组合控件 圆环 ring
- 【Linux安全】防止任意用户使用 su 切换到 root
- 深入理解http协议
- 简单的pgsql pdo php操作类
- Object-c------内存管理
- 2016年5月心情吧 233
- php 跨域 form提交 2种方法
- 线索化二叉树
- 玩转Android之在线视频播放控件Vitamio的使用
- 通过案例对SparkStreaming透彻理解三板斧之一
- 字典嵌套字典的请求