码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu-14.10-server-amd64 apt源 E: Unable to locate package问题解决

时间:2015-08-10 17:51:29      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:

在虚拟机安装好Ubuntu后,用apt-get install ***命令安装软件时遇到E: Unable to locate package *** 的错误

执行 apt-get update 之后还是不能解决这个问题,原因是apt的源已经过期,无法访问,要配置新的源

可用的源列表:wiki.ubuntu.org.cn/%E6%BA%90%E5%88%97%E8%A1%A8

我选择阿里云上的源

技术分享  进入apt目录

技术分享 编辑sources.list 文件

技术分享

把之前的源地址注释掉,添加新的源地址。

修改好后执行以下命令

技术分享

现在就可以使用apt-get来方便的安装软件了。

阿里云源地址:

deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse

版权所有,转载请注明出处!

ubuntu-14.10-server-amd64 apt源 E: Unable to locate package问题解决

标签:

原文地址:http://www.cnblogs.com/ljwbook/p/4718283.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!