Ubuntu 20.04 LTS 更换阿里云源
条评论Ubuntu 20.04 LTS 更换阿里云源
先备份原始源文件:
sudo cp /etc/apt/source.list /etc/apt/source.list.backup
修改文件:
vim /etc/apt/source.list
清除原有的内容,替换为aliyun源:
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal universe
deb http://mirrors.aliyun.com/ubuntu/ focal-updates universe
deb http://mirrors.aliyun.com/ubuntu/ focal multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal-security universe
deb http://mirrors.aliyun.com/ubuntu/ focal-security multiverse保存,并执行更新:
sudo apt update
sudo apt upgrade
本文标题:Ubuntu 20.04 LTS 更换阿里云源
文章作者:adong
发布时间:2022-03-16
最后更新:2023-02-13
原始链接:https://www.ligene.cn/blog/2022/03/16/WSL-install/
版权声明:本站所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 CN 许可协议。转载请注明出处!