LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 770|回复: 3

我为啥无法更新了?[solved]

[复制链接]
发表于 2009-4-24 19:15:36 | 显示全部楼层 |阅读模式
这两天一直无法更新,以为是服务器问题,就没怎么在意。今天突然试了一下,原来网站可以在浏览器里打开啊,但是我还是无法更新。嗯,想起来好像最后一次更新里有apt组件……那么,如何修复呢?


  1. clinif@debian:~$ cat /etc/apt/sources.list
  2. deb http://www.anheng.com.cn/debian/ unstable main contrib non-free
  3. deb-src http://www.anheng.com.cn/debian/ unstable main contrib non-free

  4. clinif@debian:~$ apt-get --version
  5. apt 0.7.21 for amd64 compiled on Apr 15 2009 21:31:44
  6. Supported modules:
  7. *Ver: Standard .deb
  8. *Pkg:  Debian dpkg interface (Priority 30)
  9. S.L: 'deb' Standard Debian binary tree
  10. S.L: 'deb-src' Standard Debian source tree
  11. Idx: Debian Source Index
  12. Idx: Debian Package Index
  13. Idx: Debian Translation Index
  14. Idx: Debian dpkg status file

  15. clinif@debian:~$ sudo apt-get update
  16. Ign file: apt-build Release.gpg
  17. Ign file: apt-build/main Translation-en_US
  18. Get:1 file: apt-build Release [90B]  
  19. Ign file: apt-build/main Packages   
  20. Get:2 http://www.anheng.com.cn unstable Release.gpg [197B]
  21. Err http://www.anheng.com.cn unstable/main Translation-en_US
  22.   Could not resolve ''
  23. Err http://www.anheng.com.cn unstable/contrib Translation-en_US
  24.   Could not resolve ''
  25. Err http://www.anheng.com.cn unstable/non-free Translation-en_US
  26.   Could not resolve ''
  27. Err http://www.anheng.com.cn unstable Release
  28.   
  29. Ign http://www.anheng.com.cn unstable/main Packages/DiffIndex
  30. Ign http://www.anheng.com.cn unstable/contrib Packages/DiffIndex
  31. Ign http://www.anheng.com.cn unstable/non-free Packages/DiffIndex
  32. Ign http://www.anheng.com.cn unstable/main Sources/DiffIndex
  33. Ign http://www.anheng.com.cn unstable/contrib Sources/DiffIndex
  34. Ign http://www.anheng.com.cn unstable/non-free Sources/DiffIndex
  35. Ign http://www.anheng.com.cn unstable/main Packages
  36. Ign http://www.anheng.com.cn unstable/contrib Packages
  37. Ign http://www.anheng.com.cn unstable/non-free Packages
  38. Ign http://www.anheng.com.cn unstable/main Sources
  39. Ign http://www.anheng.com.cn unstable/contrib Sources
  40. Ign http://www.anheng.com.cn unstable/non-free Sources
  41. Ign http://www.anheng.com.cn unstable/main Packages
  42. Ign http://www.anheng.com.cn unstable/contrib Packages
  43. Ign http://www.anheng.com.cn unstable/non-free Packages
  44. Ign http://www.anheng.com.cn unstable/main Sources
  45. Ign http://www.anheng.com.cn unstable/contrib Sources
  46. Ign http://www.anheng.com.cn unstable/non-free Sources
  47. Err http://www.anheng.com.cn unstable/main Packages
  48.   Unable to connect to www.anheng.com.cn http:
  49. Err http://www.anheng.com.cn unstable/contrib Packages
  50.   Unable to connect to www.anheng.com.cn http:
  51. Err http://www.anheng.com.cn unstable/non-free Packages
  52.   Unable to connect to www.anheng.com.cn http:
  53. Err http://www.anheng.com.cn unstable/main Sources
  54.   Unable to connect to www.anheng.com.cn http:
  55. Err http://www.anheng.com.cn unstable/contrib Sources
  56.   Unable to connect to www.anheng.com.cn http:
  57. Err http://www.anheng.com.cn unstable/non-free Sources
  58.   Unable to connect to www.anheng.com.cn http:
  59. Fetched 197B in 7s (27B/s)
  60. Reading package lists... Done
  61. W: Failed to fetch http://www.anheng.com.cn/debian/dists/unstable/main/i18n/Translation-en_US.bz2  Could not resolve ''

  62. W: Failed to fetch http://www.anheng.com.cn/debian/dists/unstable/contrib/i18n/Translation-en_US.bz2  Could not resolve ''

  63. W: Failed to fetch http://www.anheng.com.cn/debian/dists/unstable/non-free/i18n/Translation-en_US.bz2  Could not resolve ''

  64. W: Failed to fetch http://www.anheng.com.cn/debian/dists/unstable/Release  

  65. W: Failed to fetch http://www.anheng.com.cn/debian/dists/unstable/main/binary-amd64/Packages  Unable to connect to www.anheng.com.cn http:

  66. W: Failed to fetch http://www.anheng.com.cn/debian/dists/unstable/contrib/binary-amd64/Packages  Unable to connect to www.anheng.com.cn http:

  67. W: Failed to fetch http://www.anheng.com.cn/debian/dists/unstable/non-free/binary-amd64/Packages  Unable to connect to www.anheng.com.cn http:

  68. W: Failed to fetch http://www.anheng.com.cn/debian/dists/unstable/main/source/Sources  Unable to connect to www.anheng.com.cn http:

  69. W: Failed to fetch http://www.anheng.com.cn/debian/dists/unstable/contrib/source/Sources  Unable to connect to www.anheng.com.cn http:

  70. W: Failed to fetch http://www.anheng.com.cn/debian/dists/unstable/non-free/source/Sources  Unable to connect to www.anheng.com.cn http:

  71. W: Some index files failed to download, they have been ignored, or old ones used instead.
  72. W: You may want to run apt-get update to correct these problems

复制代码
发表于 2009-4-25 08:44:46 | 显示全部楼层
换个源再看看
回复 支持 反对

使用道具 举报

发表于 2009-4-25 20:03:33 | 显示全部楼层
cn99的不错的说呀
anheng我这只能用ftp
http会有问题
可以看看把http://www.anheng.com.cn换成
ftp://www.anheng.com.cn
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-26 16:34:42 | 显示全部楼层
这个周末比我想象的要忙些,没来得及回复,不好意思。

嗯,LS两位说的都正确,看来的确是源的问题。无论是换源还是用anheng的ftp都可以更新,看来不是apt系统的问题。多谢两位,问题解决。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表