Ubuntu14.04 LTS更新阿里源

版权声明:小妖666个人笔记 https://blog.csdn.net/weixin_38883338/article/details/82286333

1.备份源列表

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

2.用gedit编辑器打开

sudo gedit /etc/apt/sources.list

##阿里云源
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

3.更新列表

sudo apt-get update
sudo apt-get upgrade (注意:这个命令是更新所有软件的意思)

猜你喜欢

转载自blog.csdn.net/weixin_38883338/article/details/82286333