Ubuntu sudo apt-get update失败的原因

今天使用sudo apt-get install 无法安装软件,错误提示如下:

Err http://cn.archive.ubuntu.com/ubuntu/ oneiric-updates/main libssl1.0.0 i386 1.0.0e-2ubuntu4.7
  404  Not Found [IP: 112.124.140.210 80]
Err http://security.ubuntu.com/ubuntu/ oneiric-security/main libssl1.0.0 i386 1.0.0e-2ubuntu4.7
  404  Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com/ubuntu/ oneiric-security/main libssl-dev i386 1.0.0e-2ubuntu4.7
  404  Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com/ubuntu/ oneiric-security/main libssl-doc all 1.0.0e-2ubuntu4.7
  404  Not Found [IP: 91.189.92.201 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.0e-2ubuntu4.7_i386.deb  404  Not Found [IP: 91.189.92.201 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.0.0e-2ubuntu4.7_i386.deb  404  Not Found [IP: 91.189.92.201 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-doc_1.0.0e-2ubuntu4.7_all.deb  404  Not Found [IP: 91.189.92.201 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?



第一反应,是ubuntu支持过期了,但之前理解是“不再提供软件的官方更新”,但ubuntu 10.10中已发布版本的软件应该可以用吧。这里是我理解错误。

访问:http://cn.archive.ubuntu.com/ubuntu/dists/ 查看,已经没有Oneiric Ocelot的支持了。又结合http://zh.wikipedia.org/wiki/Ubuntu的长期支持版本部分内容,尤其下图:

[隐藏]版本 开发代号 发布日期 最近更新 支持情况 内核版本
桌面版 服务器版
4.10 Warty Warthog 2004-10-20[32]  2006-04-30 2.6.8
5.04 Hoary Hedgehog 2005-04-08[33]  2006-10-31 2.6.10
5.10 Breezy Badger 2005-10-13[34]  2007-04-13 2.6.12
6.06 LTS Dapper Drake 2006-06-01[35] 6.06.2发布于2008年1月21日 2009-07-14 2011-06-01 2.6.15
6.10 Edgy Eft 2006-10-26[36]  2008-04-25 2.6.17
7.04 Feisty Fawn 2007-04-19[37]  2008-10-19 2.6.20
7.10 Gutsy Gibbon 2007-10-18[38][39]  2009-04-18 2.6.22
8.04 LTS Hardy Heron 2008-04-24[40][41] 8.04.4发布于2010年1月29日 2011-05-12 2013-05-09 2.6.24
8.10 Intrepid Ibex 2008-10-30[42]  2010-04-30 2.6.27
9.04 Jaunty Jackalope 2009-04-23  2010-10-23 2.6.28
9.10 Karmic Koala 2009-10-29  2011-04-30 2.6.31
10.04 LTS Lucid Lynx 2010-04-29[43] 10.04.4发布于2012年2月16日 2013-05-09 2015-04 2.6.32
10.10 Maverick Meerkat 2010-10-10  2012-04-10 2.6.35
11.04 Natty Narwhal 2011-04-28  2012-10-28 2.6.38
11.10 Oneiric Ocelot 2011-10-13[44]  2013-05-09 3.0
12.04 LTS Precise Pangolin 2012-04-26 12.04.5发布于2014年8月8日 2017-04 3.2
12.10 Quantal Quetzal 2012-10-18  2014-05-16[45] [46] 3.5
13.04 Raring Ringtail 2013-04-25  2014-01-27[47] [48] 3.8
13.10 Saucy Salamander 2013-10-17  2014-07-17[49] 3.11
14.04 LTS Trusty Tahr 2014-04-17 14.04.1发布于2014年7月25日 2019-04 3.13
14.10 Utopic Unicorn 2014-10-23  2015-07 3.16
15.04 Vivid Vervet 2015年4月(预定)  2016-01(预定)未定
颜色 代表
红色 已停止发布版本更新
绿色 目前还继续支持更新
蓝色 计划支持截止时间

确定问题所在,解决方法:

1. 升级新版本。困难,折腾,赞未考虑。

2. 使用旧版本更新源,但目前已经没有了maverick相应支持软件目录,无法下载软件。[old-release解决方案]有效解决此问题,但尝试了下,国外的服务器速度太慢,几乎无法忍受。

http://www.cnblogs.com/linuxcat/archive/2012/12/29/2839216.html

修改一下/etc/apt/sources.list这个文件

[java]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. ## Major bug fix updates produced after the final release of the  
  2. ## distribution.  
  3. deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted  
  4. deb-src http://old-releases.ubuntu.com/ubuntu/ maverick main restricted  
  5. deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted  
  6. deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted  
  7.    
  8. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  
  9. ## team. Also, please note that software in universe WILL NOT receive any  
  10. ## review or updates from the Ubuntu security team.  
  11. deb http://old-releases.ubuntu.com/ubuntu/ maverick universe  
  12. deb-src http://old-releases.ubuntu.com/ubuntu/ maverick universe  
  13. deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates universe  
  14. deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-updates universe  
  15.    
  16. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  
  17. ## team, and may not be under a free licence. Please satisfy yourself as to  
  18. ## your rights to use the software. Also, please note that software in  
  19. ## multiverse WILL NOT receive any review or updates from the Ubuntu  
  20. ## security team.  
  21. deb http://old-releases.ubuntu.com/ubuntu/ maverick multiverse  
  22. deb-src http://old-releases.ubuntu.com/ubuntu/ maverick multiverse  
  23. deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse  
  24. deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse  
  25.    
  26. ## Uncomment the following two lines to add software from the 'backports'  
  27. ## repository.  
  28. ## N.B. software from this repository may not have been tested as  
  29. ## extensively as that contained in the main release, although it includes  
  30. ## newer versions of some applications which may provide useful features.  
  31. ## Also, please note that software in backports WILL NOT receive any review  
  32. ## or updates from the Ubuntu security team.  
  33. # deb http://us.old-releases.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse  
  34. # deb-src http://us.old-releases.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse  
  35.    
  36. #remastersys for backup installed system  
  37. deb http://www.remastersys.com/ubuntu maverick main  

再执行sudo apt-get update后即可.



3. 考虑ubuntu 10.04是LTS版本,且于10.10差距不大,可否使用10.04的源更新安装软件。

测试使用10.04 lucid的更新源,软件安装成功,暂时使用此方案。

 

对Linux更新支持方案理解尚未深入,同时选择系统版本安装时需考虑长期更新版本,后续升级问题。下一步考虑升级到14.10了。

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提供的源码资源涵盖了安卓应用、小程序、Python应用和Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值