Ubuntu 14.04 更换阿里云源

Ubuntu 14.04 更换阿里云源

查看Ubuntu信息:

root@llf-virtual-machine:/etc/apt# lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:    14.04
Codename:    trusty
root@llf-virtual-machine:/etc/apt#

 

备份配置文件:
 

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 

修改配置文件,将该文件的所有内容更换为下面的配置信息:

sudo vim /etc/apt/sources.list 


阿里云源配置信息如下(trusty表示 ubuntu14.04版本,不同的版本名字不同):

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
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

 更新系统:

sudo apt-get update

至此阿里源更新完成。

 


更新软件命令(桌面版):

$ sudo update-manager -d

 

你可能感兴趣的:(Linux_ubuntu)