纯笔记做个记录
1、http://mirrors.aliyun.com/ ,这是阿里的源

2、这是dotdeb的说明:http://mirrors.aliyun.com/help/dotdeb

3、阿里云的说明:

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最后面添加以下条目(操作前请做好相应备份)

deb http://mirrors.aliyun.com/dotdeb/packages.dotdeb.org wheezy all
deb-src http://mirrors.aliyun.com/dotdeb/packages.dotdeb.org wheezy all

其实上面的源的写法是错误的,不需要package.dotdeb.org,应该是这样


deb http://mirrors.aliyun.com/dotdeb wheezy all
deb-src http://mirrors.aliyun.com/dotdeb wheezy all

不过,如果是默认这样其实没有什么特别用,PHP还是5.4,所以如果要针对PHP,就需要再加上

deb http://mirrors.aliyun.com/dotdeb wheezy-php56 all
deb-src http://mirrors.aliyun.com/dotdeb wheezy-php56 all

其实说白了就是看:http://mirrors.aliyun.com/dotdeb/dists/,看这一页支持哪些,然后加在源里就OK了。就象官网说的,如果是阿里云服务器,请使用aliyuncs,流量直接从内网走~