LinuxSir.cn,穿越时空的Linuxsir!

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

我的Debian在apt-get update时老出错,这是为什么?

[复制链接]
发表于 2007-1-4 11:10:30 | 显示全部楼层 |阅读模式
我执行apt-get update提示:
apt-get update
获取:1 http://mirrors.cn99.com etch Release.gpg [378B]
命中 http://mirrors.cn99.com etch Release
获取:2 http://mirrors.cn99.com etch/main Packages [181kB]
99% [2 Packages bzip2 0]
bzip2: Compressed file ends unexpectedly;
        perhaps it is corrupted?  *Possible* reason follows.
bzip2: Inappropriate ioctl for device
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

错误 http://mirrors.cn99.com etch/main Packages
  子进程 bzip2 返回了一个错误号 (2)
下载 2B,耗时 0s (4B/s)
无法下载 http://mirrors.cn99.com/debian/d ... y-i386/Packages.bz2  子进程 bzip2 返回了一个错误号 (2)
正在读取软件包列表... 完成
W: 以下 key ID 没有可用的公钥:
A70DAF536070D3A1
W: 无法获取源软件包列表 http://mirrors.cn99.com etch/main Packages (/var/lib/apt/lists/mirrors.cn99.com_debian_dists_etch_main_binary-i386_Packages) 的状态 - stat (2 没有那个文件或目录)
W: 您可能需要运行 apt-get update 来解决这些问题
E: 有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。

请问我该如何处理?
:ask
 楼主| 发表于 2007-1-4 11:26:50 | 显示全部楼层
当我把Debian境像换成ftp.liunuxforum.net时又提示:
获取:1 ftp://ftp.linuxforum.net etch Release.gpg [378B]
获取:2 ftp://ftp.linuxforum.net etch Release [74.4kB]
获取:3 ftp://ftp.linuxforum.net etch/main Packages [4314kB]
下载 4388kB,耗时 60s (72.3kB/s)
正在读取软件包列表... 完成
W: 以下 key ID 没有可用的公钥:
A70DAF536070D3A1
W: 您可能需要运行 apt-get update 来解决这些问题

这是和故啊?
回复 支持 反对

使用道具 举报

发表于 2007-1-4 11:34:30 | 显示全部楼层
我也是 这种情况,不知是何原因,
回复 支持 反对

使用道具 举报

发表于 2007-1-4 12:44:40 | 显示全部楼层
请善用搜索。
回复 支持 反对

使用道具 举报

发表于 2007-1-6 16:12:03 | 显示全部楼层
我也遇到ÙÍŵ了,版主明示吧。
回复 支持 反对

使用道具 举报

发表于 2007-1-6 17:40:57 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2007-1-6 19:15:30 | 显示全部楼层
$ sudo apt-get update
Password:
获取:1 http://debian.cn99.com etch Release.gpg [378B]
命中 http://debian.cn99.com etch Release
获取:2 http://debian.cn99.com etch/main Packages [4309kB]
99% [2 Packages bzip2 0]                                                                                                                         106kB/s 0s
bzip2: Data integrity error when decompressing.
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

错误 http://debian.cn99.com etch/main Packages
  子进程 bzip2 返回了一个错误号 (2)
下载 4309kB,耗时 36s (117kB/s)
无法下载 http://debian.cn99.com/debian/dists/etch/main/binary-i386/Packages.bz2  子进程 bzip2 返回了一个错误号 (2)
正在读取软件包列表... 完成
W: 无法获取源软件包列表 http://debian.cn99.com etch/main Packages (/var/lib/apt/lists/debian.cn99.com_debian_dists_etch_main_binary-i386_Packages) 的状态 - stat (2 没有那个文件或目录)
W: 您可能需要运行 apt-get update 来解决这些问题
E: 有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。

============
以上是我的信息,并没key的错误,其余的基本一样,不知道这个问题怎么解决 :(
回复 支持 反对

使用道具 举报

发表于 2007-1-6 19:22:13 | 显示全部楼层
这不是 key 的问题,换一源再 update 吧
回复 支持 反对

使用道具 举报

发表于 2007-1-6 19:25:14 | 显示全部楼层
# apt-get update
获取:1 http://debian.cn99.com testing Release.gpg [378B]
命中 http://debian.cn99.com testing Release
获取:2 http://debian.cn99.com testing/main Packages [4309kB]
99% [2 Packages bzip2 0] [正在等待报头]
bzip2: Data integrity error when decompressing.
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

错误 http://debian.cn99.com testing/main Packages
  子进程 bzip2 返回了一个错误号 (2)
命中 http://debian.cn99.com testing/main Sources/DiffIndex
忽略 2007-01-04-2006.07.pdiff
获取:3  [395kB]
99% [3 Sources bzip2 1191936]
bzip2: Compressed file ends unexpectedly;
        perhaps it is corrupted?  *Possible* reason follows.
bzip2: Inappropriate ioctl for device
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

错误
  子进程 bzip2 返回了一个错误号 (2)
下载 3B,耗时 3s (1B/s)
无法下载 http://debian.cn99.com/debian/di ... y-i386/Packages.bz2  子进程 bzip2 返回了一个错误号 (2)
无法下载 http://debian.cn99.com/debian/di ... /source/Sources.bz2  子进程 bzip2 返回了一个错误号 (2)
正在读取软件包列表... 完成
W: 无法获取源软件包列表 http://debian.cn99.com testing/main Packages (/var/lib/apt/lists/debian.cn99.com_debian_dists_testing_main_binary-i386_Packages) 的状态 - stat (2 没有那个文件或目录)
W: 您可能需要运行 apt-get update 来解决这些问题
E: 有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。
---------------------------------------------------------------
原以为只有我是这样,想不到有不少弟兄出现这个问题了。怎么解决?
回复 支持 反对

使用道具 举报

发表于 2007-1-6 19:27:36 | 显示全部楼层
都说了,是源的问题,换个源
回复 支持 反对

使用道具 举报

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

本版积分规则

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