最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Debian环境更换阿里云镜像解决无法update更新源问题
时间:2016-04-19 编辑:简简单单 来源:一聚教程网
无论我们是准备在VPS服务器中安装WEB环境,还是编译其他的软件功能,拿到VPS登录SSH之后我们肯定想到的先update环境这样可以确保服务器中的源是最新且还可以确保补丁最新。今天有在一台Debian环境中apt-get update更新源的时候有看到错误信息,而后肯定无法通过直接apt-get安装需要的软件(我需要安装SQLITE)。
psource-1.jpg" src="https://img.111com.net/get_pic/2016/04/19/20160419223140405.jpg" />
从上图中可以看到源不通或者失效,所以才会有"E: Some index files failed to download, they have been ignored, or old ones used instead."的错误提示问题,那我们如何解决问题呢?
如果我们也是Debian环境,那就修改阿里云源,这样可以解决这个问题,当然还有其他源比如163等,我们用户不管了,谁好用老左就用哪个。
第一、替换文件
代码如下 | 复制代码 |
/etc/apt/sources.list
|
第二、替换源内容
代码如下 | 复制代码 |
deb http://mirrors.aliyun.com/debian wheezy main contrib non-free
deb-src http://mirrors.aliyun.com/debian wheezy main contrib non-free deb http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free deb-src http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free deb http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free deb-src http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free |
我们将sources.list的内容全部替换成上面的阿里云源,然后再重新apt-get update -y之后可以完成更新。
我们可以看到没有错误提示,那就说明解决问题了。
相关文章
- win11内核隔离和内存完整性介绍 10-31
- win10全屏缩放设置教程 10-31
- win10系统备份出错解决教程 10-31
- win10打开软件每次都要询问解决教程 10-31
- win10更新驱动后设备出现异常解决教程 10-31
- win10一直提示找到可能不需要的应用解决教程 10-31