1、问题描述:
Ubuntu20.04.2.0系统,使用sudo apt-get update命令更新软件,在安装软件时同样也会报错。
2、解决办法:
更改etc/apt
目录下的sources.list文件,删除原来的内容,更改为
deb http://old-releases.ubuntu.com/ubuntu/ cosmic main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ cosmic-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ cosmic-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ cosmic-proposed main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ cosmic-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ cosmic main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ cosmic-security main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ cosmic-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ cosmic-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ cosmic-backports main restricted universe multiverse
然后在sudo apt-get update就能成功。
注:关于这个问题,网上有好多种解决方案(比如更新源、改源为国内源、更改sources.list.d等等),我是利用这种方式弄好的,不一定适用于所有系统。
清华大学源