分类
未分类

Ubuntu更换国内源

1.备份

备份/etc/apt/sources.list文件

mv /etc/apt/sources.list  /etc/apt/sources.list.backup

2.新建

新建/etc/apt/sources.list文件并添加以下内容

在root管理员下

sudo vim  /etc/apt/sources.list
3:阿里源:
#阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

3:更新apt
sudo apt-get update
sudo apt-get upgrade

“Ubuntu更换国内源”上的4条回复

гидра магазин进行回复 取消回复

电子邮件地址不会被公开。 必填项已用*标注