标签:rop deb date sed src 保存 打开文件 ubuntu 更换
sudo cd /etc/apt/sources.list /etc/apt/sources.list.b // 备份原始文件
sudo chmod 777 /etc/apt/sources.list // 修改文件权限
sudo vi /etc/apt/sources.list // 用 vim 打开文件
复制下面内容到文件里
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
保存后更新
sudo apt update
完成
标签:rop deb date sed src 保存 打开文件 ubuntu 更换
原文地址:https://www.cnblogs.com/wheatus/p/14669245.html