`
willvvv
  • 浏览: 329179 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

ubuntu apt-get unable to locate package

阅读更多


新装的Ubuntu14虚拟机,使用apt-get安装任何软件都提示

$ sudo apt-get install <package>
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package <package>

 

 其实是apt-get的源没有配置好,默认的源在国内无法访问,参考官方论坛的一篇文章修改即可:

 

http://wiki.ubuntu.org.cn/%E6%BA%90%E5%88%97%E8%A1%A8#Utopic.2814.10.29.E7.89.88.E6.9C.AC

 

这里我的用的sohu的源,亲测可用。

 

还有一个坑是,http://mirrors.sohu.com/ubuntu/dists/ 几个镜像里面均没有 Utopic(14.10)版本 版本

不能按照文章写的“将上述列表地址中的 vivid 替换为 utopic 即可”,直接用最新版的vivid就可以。

 



 

 

 

  • 大小: 4.2 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics