配置方法bash
debian 7.x (wheezy)阿里雲
編輯/etc/apt/sources.list文件(須要使用sudo), 在文件最前面添加如下條目(操做前請作好相應備份)spa
deb http://mirrors.aliyun.com/debian/ wheezy main non-free contrib
deb http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ wheezy main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib
複製代碼
debian 8.x (jessie)code
編輯/etc/apt/sources.list文件(須要使用sudo), 在文件最前面添加如下條目(操做前請作好相應備份)get
deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib
deb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib
複製代碼
debian 9.x (stretch)it
編輯/etc/apt/sources.list文件(須要使用sudo), 在文件最前面添加如下條目(操做前請作好相應備份)class
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb http://mirrors.aliyun.com/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
複製代碼
配置完更新一下源就能夠:sed
apt-get update
apt-get upgrade
複製代碼