在此之前你可以备份一下,以及时恢复
mv /etc/apt/sources.list /etc/apt/sources.list.bak;
你可以使用命令sudo apt edit-sources
编辑源或在 /etc/apt/sources.list
中增加下面其中一些源
修改后使用sudo apt update
更新缓存,sudo apt upgrade
升级包。如果有报错的及时删除后再更新就行了
tips:
原文迁移地址 在这里(复制不带小尾巴)
一些干货
# 阿里云
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted uni