1、打开 sources.list 的目录

cd /etc/apt

sudo vi sources.list

2、把阿里云的源拷贝进来

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

3、更新

sudo apt update
sudo apt-get update


如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!



1 条评论

通过squid设置HTTP代理apt-get更新软件 - Christopher · 2021年7月16日 下午4:54

[…] 如何更新ubuntu的源 […]

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注