新建立的阿里云服务器使用apt-get update 时,报错:
W: Failed to fetch http://mirrors.cloud.aliyuncs.com/debian/dists/jessie-updates/Release.gpg Could not resolve 'mirrors.cloud.aliyuncs.com'
面对这个报错的处理方法
mv /etc/apt/sources.list.d/sources-aliyun-0.list /etc/apt/sources.list
或者重置阿里云服务器
然后编辑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