解决Debian环境无法update更新源问题及更换阿里云镜像
2017-06-22 15:27
603 查看
无论我们是准备在VPS服务器中安装WEB环境,还是编译其他的软件功能,拿到VPS登录SSH之后我们肯定想到的先update环境这样可以确保服务器中的源是最新且还可以确保补丁最新。今天有在一台Debian环境中apt-get update更新源的时候有看到错误信息,而后肯定无法通过直接apt-get安装需要的软件(我需要安装SQLITE)。
从上图中可以看到源不通或者失效,所以才会有"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之后可以完成更新。
从上图中可以看到源不通或者失效,所以才会有"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之后可以完成更新。
相关文章推荐
- CentOS yum更换为国内的源,解决安装软件时无法从国外镜像下载的问题
- ubuntu和debian环境下vmware虚拟机共享目录无法挂载的问题解决办法
- 解决Alpine为基础镜像的docker环境下无法运行sonar-scanner命令的问题
- 解决AJAX中使用UpdatePanel后再用Response.Write();等无法弹出对话框问题
- .NET 4.0 环境下无法直接运行 .NET 2.0 程序的问题,当然目前解决了 (转载--来于园中)
- 解决AJAX中使用UpdatePanel后再用Response.Write();等无法弹出对话框问题
- 解决AJAX中使用UpdatePanel后无法弹出js对话框问题(引)
- Websharp框架 在Win2003环境下 WinForm程序无法调用WebService问题解决
- android 模拟器无法上网问题解决(环境为家庭通过路由共享上网,即ip 为局域网ip,dns 为192.168.1.1)
- 解决AJAX中使用UpdatePanel后再用Response.Write();等无法弹出对话框问题
- 解决AJAX中使用UpdatePanel后再用Response.Write();等无法弹出对话框问题 3法
- (转)解决AJAX中使用UpdatePanel后再用Response.Write();等无法弹出对话框问题 3法
- 【转】针对类似文件夹无法删除update:访问拒绝的问题解决办法
- 解决Fedora下无法更换鼠标主题的问题
- 解决AJAX中使用UpdatePanel后再用Response.Write();等无法弹出对话框问题
- 解决AJAX中使用UpdatePanel后再用Response.Write();等无法弹出对话框问题
- 解决AJAX中使用UpdatePanel后再用无法弹出对话框问题
- (转)解决AJAX中使用UpdatePanel后再用Response.Write();等无法弹出对话框问题 3法
- 解决AJAX中使用UpdatePanel后再用Response.Write();等无法弹出对话框问题 3法
- 克隆出来的Debian/Ubuntu在新的主机环境中上网问题解决