在Ubuntu 11.04中执行sudo apt-get update命令时出现404错误
2015-07-01 12:16
417 查看
在Ubuntu 11.04中执行sudo apt-get update命令时,遇到以下错误:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
到 http://security.ubuntu.com/ubuntu/dists 网站上一看,果然没有了n开头的,所以报了404错误,经查资料,得出了以下结论:
The repositories for older releases that are not supported (like 11.04, 11.10 and 13.04) get moved to an archive server. There are repositories available at http://old-releases.ubuntu.com
Ubuntu 11.04的生命周期已经结束,不再提供更新,如扔使用,需要到 http://old-releases.ubuntu.com 上下载所需包。
解决方法:
If you want to continue using an outdated release then edit /etc/apt/sources.list and change archive.ubuntu.com to old-releases.ubuntu.com
执行以下命令:
sudo sed -i -re ‘s/([a-z]{2}.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g’ /etc/apt/sources.list
参考:
http://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-an-old-unsupported-release
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
到 http://security.ubuntu.com/ubuntu/dists 网站上一看,果然没有了n开头的,所以报了404错误,经查资料,得出了以下结论:
The repositories for older releases that are not supported (like 11.04, 11.10 and 13.04) get moved to an archive server. There are repositories available at http://old-releases.ubuntu.com
Ubuntu 11.04的生命周期已经结束,不再提供更新,如扔使用,需要到 http://old-releases.ubuntu.com 上下载所需包。
解决方法:
If you want to continue using an outdated release then edit /etc/apt/sources.list and change archive.ubuntu.com to old-releases.ubuntu.com
执行以下命令:
sudo sed -i -re ‘s/([a-z]{2}.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g’ /etc/apt/sources.list
参考:
http://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-an-old-unsupported-release
相关文章推荐
- Spring的编程式事务与声明式事务区别
- Cocos2d-x学习笔记(9)(CCTextFieldTTF使用输入框)
- 1.初步认识JVM -- JVM序列
- Mysql复制表格
- Android图形系统之Surface、SurfaceView、SurfaceHolder及SurfaceHolder.Callback之间的联系
- OC大补之法
- JavaScript判断数组是否包含指定元素的方法
- 微信上传图片
- 在Python中marshal对象序列化的相关知识
- Qt中解决 QLabel 点击事件通过qss+focuspolicy方法实现
- iptables小总结
- SQLSERVER2008 忘记SA密码且windows账号无法登录的解决办法
- 7z在mac上的命令行
- Cheatsheet: 2015 06.01 ~ 06.30
- Windows 10还有这功能? 自动与好友分享WiFi密码
- JavaScript -- 使用JavaScript生成JSON格式的字符串
- Arc GIS engine10.2与VS2012的安装及匹配步骤
- VC 和 Halcon 之间的互相赋值
- PHP 解决版本问题:"Assigning the return value of new by reference is deprecated"
- Sharepoint list webpart