栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

ubuntu老版本使用sudo apt-get update报错404 not found

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ubuntu老版本使用sudo apt-get update报错404 not found

文章目录
      • 问题描述
      • 问题原因
      • 问题解决

问题描述

在使用ubuntu12.04的时候,想要安装ssh,结果发现使用sudo apt-get update全是报错404 not found

问题原因

ubuntu现在最新的版本已经到20版本了,对之前的老版本支持时间过期了,也就导致了老版本上原来的源都失效了,这就是为什么会显示404 not found的原因

问题解决

ubuntu官方有专门做了一个与老版本对应的镜像网站,将源修改成这个老版本的镜像网站即可

  1. 首先需要找到自己ubuntu版本对应的版本代号,比如这里使用的ubuntu12.04.5的版本代号为precise,对应版本代号传送门:ubuntu版本代号

  2. 修改源,这步不明白的可以移步到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


至此,问题就完美解决啦

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/395924.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号