Ubuntu系统查看镜像源并使用阿里云的源

Ubuntu系统查看镜像源并使用阿里云的源

查看电脑镜像源

打开命令行,输入

sudo gedit /etc/apt/sources.list

修改电脑镜像源

复制粘贴到打开的文本中

deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse

deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe

deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe

更新

sudo apt-get update
sudo apt-get upgrade

你可能感兴趣的:(ubuntu,阿里云)