备份、清空
sudo cp /etc/apt/sources.list /etc/apt/sources.list.baksudo vim /etc/apt/sources.list# 清空 source(dG 删除至文末 d1G 删除至文首)
阿里巴巴开源镜像站:https://developer.aliyun.com/mirror/
华为开源镜像站:https://mirrors.huaweicloud.com/
腾讯开源镜像站:https://mirrors.cloud.tencent.com/
网易开源镜像站:http://mirrors.163.com/
搜狐开源镜像站:http://mirrors.sohu.com/
清华大学开源镜像站:https://mirrors.tuna.tsinghua.edu.cn/
华中科技大学开源镜像站:http://mirror.hust.edu.cn/
浙江大学开源镜像站:http://mirrors.zju.edu.cn/
北京理工大学开源镜像站:http://mirror.bit.edu.cn/
中国科技大学开源镜像站:http://mirrors.ustc.edu.cn/
替换
休复损坏的软件包,尝试卸载出错的包,重新安装正确版本的。 sudo apt-get -f install
升级系统中的所有软件包 sudo apt-get -y upgrade
```shelldeb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
