Ubuntu 20.04 更换apt阿里云源

67次阅读
没有评论

共计 1051 个字符,预计需要花费 3 分钟才能阅读完成。

适用于ubuntu 20.04 amd64架构

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

sudo vim /etc/apt/source.list

将下面的代码拷进source.liist

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb 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 main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

同样适用于其他开源镜像站例如腾讯云或者网易云https://mirrors.tencent.com/  http://mirrors.163.com/ https://repo.huaweicloud.com/ubuntu/ 等

正文完
 
admin
版权声明:本站原创文章,由 admin 2022-02-08发表,共计1051字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)
验证码