从上图中可以看到源不通或者失效,所以才会有"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之后可以完成更新。
我们可以看到没有错误提示,那就说明解决问题了。,重庆数据加密