拷贝一份,并且修改软件安装源文件,通过dG将原来内容全部清空
- cp /etc/apt/source.list /etc/apt/source.list.back && vim /etc/apt/source.list
-
i插入然后粘贴下面信息即可
- 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 restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
-
最后apt update -y更新一下即可