灰灰 の blog

灰灰✿喵呼哈哈(>^ω^<)

更改阿里云Debian8默认源

2016.7.5 | 4,320阅读 | 0条评论 | 随便说说

最近入了个Aliyun HK,选系统的时候选的是Debian8,进去后apt update的时候发现居然404!

这是什么鬼ヽ(#`Д´)ノ我真佩服阿里云的攻城师……

下面是修改步骤……

首先删掉默认的两个源

$ rm /etc/apt/sources.list.d/sources-aliyun*

根据阿里云官方源的建议,修改源

$ vim /etc/apt/sources.list.d/sources-aliyun-0.list
deb http://mirrors.cloud.aliyuncs.com/debian/ jessie main contrib non-free
deb-src http://mirrors.cloud.aliyuncs.com/debian/ jessie main contrib non-free
deb http://mirrors.cloud.aliyuncs.com/debian/ jessie-proposed-updates main non-free contrib
deb-src http://mirrors.cloud.aliyuncs.com/debian/ jessie-proposed-updates main non-free contrib
deb http://mirrors.cloud.aliyuncs.com/debian/ jessie-updates main contrib non-free
deb-src http://mirrors.cloud.aliyuncs.com/debian/ jessie-updates main contrib non-free
 
## Uncomment the following two lines to add software from the 'backports'
## repository.
##
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
#deb http://mirrors.cloud.aliyuncs.com/debian/ jessie-backports main contrib non-free
#deb-src http://mirrors.cloud.aliyuncs.com/debian/ jessie-backports main contrib non-free

最后

$ apt-get update

OK,搞定!(≧∇≦)

暂无评论

发表评论

表情