Ubuntu 18.04 更换阿里源

Posted dyanbk

tags:

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

1.备份

sudo cp /etc/apt/source.list /etc/apa/source.list.bak

2.编辑

sudo vim /etc/apt/source.list

3.修改内容

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

4.软件更新

sudo apt-get update 

5.更新软件包

sudo apt-get upgrade 

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

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

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

阿里云ubuntu18.04安装robotframwork

Ubuntu 18.04 更换apt源

apt-get 软件源文件格式以及ubuntu 18.04更换阿里源

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