替换文件:/etc/apt/sources.list
有代理的同学:可以添加代理文件/etc/apt/apt.conf.d/proxy.conf:
Acquire::http::Proxy “http://proxyaddress:proxyport”;
Acquire::https::Proxy “https://proxyaddress:proxyport”;
# aliyun
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 restricte

这篇博客介绍了如何在Ubuntu系统中替换默认的更新源,使用阿里云、中科大和163的镜像源,并提供了配置HTTP/HTTPS代理的方法,以加速软件包的下载与系统更新。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



