Ubuntu18.04更换阿里云源

Posted hopeless-dream

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu18.04更换阿里云源相关的知识,希望对你有一定的参考价值。

步骤

1、备份

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

2、修改源

$ sudo vim /etc/apt/sources.list      //修改
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、更新源

sudo apt-get update
sudo apt-get upgrade

 

以上是关于Ubuntu18.04更换阿里云源的主要内容,如果未能解决你的问题,请参考以下文章

嵌入式硬件Esp32Ubuntu18.04 更换阿里云软件源

ubuntu16.04更换镜像源为阿里云镜像源

Ubuntu18.04更换国内源

Ubuntu 18.04 更换阿里源

ubuntu 软件源阿里云镜像与清华镜像

Ubuntu18.04更换国内源(阿里,网易,中科大,清华等源)