E15-阿里雲修改debian系統update錯誤問題

新創建的阿里雲服務器使用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'

面對這個報錯的處理方法fetch

mv /etc/apt/sources.list.d/sources-aliyun-0.list /etc/apt/sources.list阿里雲

或者重置阿里雲服務器code

而後編輯sources.list 文件添加get

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
相關文章
相關標籤/搜索