本文共 1707 字,大约阅读时间需要 5 分钟。
cp -ra /etc/apt/sources.list /etc/apt/sources.list.bak
要知道当前系统的代号,可以用以下命令:
lsb_release -a
这边用的是阿里云的源,里面是有我版本的源的
链接: . http://mirrors.aliyun.com/ubuntu/dists/然后把’focal’换成上面Condename里面的版本号
#阿里源deb 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
sudo gedit /etc/apt/sources.list
把上面的内容复制到终端里面就可以弹出sources.list配置文件,直接把里面的内容全部删掉,替换成4里面的内容就行。写完记得保存。
一定要重启!!!一定要重启!!!一定要重启!!!
不然会出现这个问题。就是因为没有重启,我反复搞了好几天都没搞出来。sudo apt-get updatesudo apt-get upgrade
链接: .
https://blog.csdn.net/qq_44796372/article/details/116095573?spm=1001.2014.3001.5501 删除 webupd8team/sublime-text-3这个ppa文件,删除命令:
sudo add-apt-repository --remove ppa:/webupd8team/sublime-text-3