Ubuntu18.04 apt配置阿里源

Posted lichengbei

tags:

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

lichengbei

2019-12-21

先备份

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

 

修改配置文件

sudo vim /etc/apt/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

 

更新软件列表

sudo apt-get update

 

更新软件包

sudo apt-get upgrade

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

Ubuntu 18.04 更换apt源

系统篇: ubuntu 18.04 更换国内软件源

系统篇: ubuntu 18.04 更换国内软件源

系统篇: ubuntu 18.04 更换国内软件源

Ubuntu 18.04修改默认源

Ubuntu 18.04修改默认源为国内源