在使用ubuntu12.04的时候,想要安装ssh,结果发现使用sudo apt-get update全是报错404 not found
ubuntu现在最新的版本已经到20版本了,对之前的老版本支持时间过期了,也就导致了老版本上原来的源都失效了,这就是为什么会显示404 not found的原因
ubuntu官方有专门做了一个与老版本对应的镜像网站,将源修改成这个老版本的镜像网站即可
首先需要找到自己ubuntu版本对应的版本代号,比如这里使用的ubuntu12.04.5的版本代号为precise,对应版本代号传送门:ubuntu版本代号
修改源,这步不明白的可以移步到ubuntu更换清华源
deb http://old-releases.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse