1. 程式人生 > >Ubuntu apt-get 設定阿里雲源代理

Ubuntu apt-get 設定阿里雲源代理

由於 apt-get 預設的源為國外服務,在使用 apt-get 軟體時下載速度很慢,這時我們可以為 apt-get 設定成國內映象代理。

# vim /etc/apt/sources.list

使用 vim 編輯 sources.list:

deb http://mirrors.cloud.aliyuncs.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.cloud
.aliyuncs.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://mirrors.cloud.aliyuncs.com/ubuntu/ trusty-proposed main restricted universe multiverse deb http://mirrors.cloud.aliyuncs.com/ubuntu/ trusty-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun
.com/ubuntu/ trusty-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

# apt-get update

update 之後可以愉快的使用 apt-get 了。