Ubuntu 如何更换阿里源
Posted 梁大师
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu 如何更换阿里源相关的知识,希望对你有一定的参考价值。
#进入源地址
cd /etc/apt
#备份源文件
sudo cp sources.list sources.list.bak
#编辑
sudo vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
#更新源
sudo apt-get update
#更新软件
sudo apt-get upgrade
ps:系统中没有 vim 时,sudo apt-get install vim-gtk
以上是关于Ubuntu 如何更换阿里源的主要内容,如果未能解决你的问题,请参考以下文章
ubuntu20.04 LTS 更换国内163源、阿里源、清华源、中科大源
嵌入式硬件Esp32Ubuntu18.04 更换阿里云软件源