在Ubuntu 11.04中执行sudo apt-get update命令时出现404错误

在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

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值