原配置文件备份

sudo cp /etc/apt/sources.list /etc/apt/sources.list_old

然后 VIM 打开,替换

:%s/security.ubuntu/mirrors.aliyun/g
:%s/archive.ubuntu/mirrors.aliyun/g

更新

sudo apt update