欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

[NOTE]Ubuntu 20.04 aliyun

程序员文章站 2022-03-08 10:06:26
...

1.backup

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

2.replace

sudo vi /etc/apt/sources.list

[i]

[ESC]
:%s/url_string1/mirrors.aliyun.com/g

[ESC]
:%s/url_string2/mirrors.aliyun.com/g

[ESC]
:wq

3.update

sudo apt-get update
sudo apt-get upgrade