Ubuntu安装更新失败

前端之家收集整理的这篇文章主要介绍了Ubuntu安装更新失败前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

好久没有用Ubuntu登录了,今天用登录进入,提示说,有更新要安装,估计也有大半年了,那就更吧。

结果提示说“请确认网络是否连接“,总之更是失败,提示说”NOT FOUND xxxx“,应该是连接不到服务器。

[java] view plain copy
  1. 404NotFound[IP:91.189.92.20180]
  2. 误http://security.ubuntu.com/ubuntu/precise-security/mainlibcurl3i3867.22.0-3ubuntu4.7
  3. //security.ubuntu.com/ubuntu/precise-security/mainlibcurl3-nssi3867.22.0-3ubuntu4.7
  4. //security.ubuntu.com/ubuntu/precise-security/mainlibwbclient0i3862:3.6.3-2ubuntu2.9
  5. //security.ubuntu.com/ubuntu/precise-security/mainlibyaml-devi3860.1.4-2ubuntu0.12.04.2
  6. //security.ubuntu.com/ubuntu/precise-security/mainlibyaml-0-2i3860.1.4-2ubuntu0.12.04.2
  7. //security.ubuntu.com/ubuntu/precise-security/univerSEOpenjdk-7-jdki3867u51-2.4.4-0ubuntu0.12.04.2
  8. //security.ubuntu.com/ubuntu/precise-security/univerSEOpenjdk-7-jrei3867u51-2.4.4-0ubuntu0.12.04.2
  9. //security.ubuntu.com/ubuntu/precise-security/universeicedtea-7-jre-jamvmi3867u51-2.4.4-0ubuntu0.12.04.2

百度了一下,找到了解决办法。

原文地址:http://www.cnblogs.com/eastson/archive/2012/08/24/2654163.html

1. 首先更新源列表

copy
    sudocp/etc/apt/sources.list/etc/apt/sources.list.backup(备份下当前的源列表)

2. 修改更新源

copy

    sudogedit/etc/apt/sources.list(打开Ubuntu12.04源列表文件

3. 将打开的TXT,修改为国内的源

163源

copy

    debhttp://mirrors.163.com/ubuntu/precisemainrestricted
  1. deb-srchttp://mirrors.163.com/ubuntu/precisemainrestricted
  2. debhttp://mirrors.163.com/ubuntu/precise-updatesmainrestricted
  3. //mirrors.163.com/ubuntu/precise-updatesmainrestricted
  4. //mirrors.163.com/ubuntu/preciseuniverse
  5. //mirrors.163.com/ubuntu/preciseuniverse
  6. //mirrors.163.com/ubuntu/precise-updatesuniverse
  7. //mirrors.163.com/ubuntu/precise-updatesuniverse
  8. //mirrors.163.com/ubuntu/precisemultiverse
  9. //mirrors.163.com/ubuntu/precisemultiverse
  10. //mirrors.163.com/ubuntu/precise-updatesmultiverse
  11. //mirrors.163.com/ubuntu/precise-updatesmultiverse
  12. //mirrors.163.com/ubuntu/precise-backportsmainrestricteduniversemultiverse
  13. //mirrors.163.com/ubuntu/precise-backportsmainrestricteduniversemultiverse
  14. //mirrors.163.com/ubuntu/precise-securitymainrestricted
  15. //mirrors.163.com/ubuntu/precise-securitymainrestricted
  16. //mirrors.163.com/ubuntu/precise-securityuniverse
  17. //mirrors.163.com/ubuntu/precise-securityuniverse
  18. //mirrors.163.com/ubuntu/precise-securitymultiverse
  19. //mirrors.163.com/ubuntu/precise-securitymultiverse
  20. //extras.ubuntu.com/ubuntuprecisemain
  21. //extras.ubuntu.com/ubuntuprecisemain

sohu源

copy

    //mirrors.sohu.com/ubuntu/precisemainrestricted
  1. //mirrors.sohu.com/ubuntu/precisemainrestricted
  2. //mirrors.sohu.com/ubuntu/precise-updatesmainrestricted
  3. //mirrors.sohu.com/ubuntu/precise-updatesmainrestricted
  4. //mirrors.sohu.com/ubuntu/preciseuniverse
  5. //mirrors.sohu.com/ubuntu/preciseuniverse
  6. //mirrors.sohu.com/ubuntu/precise-updatesuniverse
  7. //mirrors.sohu.com/ubuntu/precise-updatesuniverse
  8. //mirrors.sohu.com/ubuntu/precisemultiverse
  9. //mirrors.sohu.com/ubuntu/precisemultiverse
  10. //mirrors.sohu.com/ubuntu/precise-updatesmultiverse
  11. //mirrors.sohu.com/ubuntu/precise-updatesmultiverse
  12. //mirrors.sohu.com/ubuntu/precise-backportsmainrestricteduniversemultiverse
  13. //mirrors.sohu.com/ubuntu/precise-backportsmainrestricteduniversemultiverse
  14. //mirrors.sohu.com/ubuntu/precise-securitymainrestricted
  15. //mirrors.sohu.com/ubuntu/precise-securitymainrestricted
  16. //mirrors.sohu.com/ubuntu/precise-securityuniverse
  17. //mirrors.sohu.com/ubuntu/precise-securityuniverse
  18. //mirrors.sohu.com/ubuntu/precise-securitymultiverse
  19. //mirrors.sohu.com/ubuntu/precise-securitymultiverse
  20. ubuntu.cn99.com源(推荐):

    copy

      //ubuntu.cn99.com/ubuntu/precisemainrestricteduniversemultiverse
    1. debhttp://ubuntu.cn99.com/ubuntu/precise-updatesmainrestricteduniversemultiverse
    2. //ubuntu.cn99.com/ubuntu/precise-securitymainrestricteduniversemultiverse
    3. //ubuntu.cn99.com/ubuntu/precise-backportsmainrestricteduniversemultiverse
    4. //ubuntu.cn99.com/ubuntu-cn/precisemainrestricteduniversemultiverse

    4. 更新源

    copy

      sudoapt-getupdate

    好了,这样刷新之后,就可以更新了。

    原文链接:http://blog.csdn.net/yuguiyang1990/article/details/37385701

    原文链接:https://www.f2er.com/ubuntu/352000.html

    猜你在找的Ubuntu相关文章