ubuntu 18.04 更换源
Posted 王会喜
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu 18.04 更换源相关的知识,希望对你有一定的参考价值。
1.备份原有的源文件
cd /etc/apt/
sudo cp -p sources.list sources.list.bak
2.修改源文件
sudo vim sources.list
删除sources.list 文件中所有内容添加一下内容 保存退出。
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
3.
sudo apt-get update
以上是关于ubuntu 18.04 更换源的主要内容,如果未能解决你的问题,请参考以下文章