Автор Тема: Ошибка при обновлении [Решено]  (Прочитано 3329 раз)

Оффлайн ASnake

  • Участник
  • *
  • Сообщений: 25
Пытаюсь обновится, но куча варнингов про дубликаты и ошибка, как исправить?
[root@localhost ~]# apt-get update
Get:1 http://ftp.altlinux.org i586 release [1016B]

...(тут без проблем потому вырезал, чтоб уменьшить код)...

Get:6 http://ftp.altlinux.org noarch/classic pkglist [842kB]
78% [1 pkglist bzip2 0] [4 pkglist 214896/842kB 25%] [6 pkglist 214896/842kB 25
bzip2: Compressed file ends unexpectedly;
        perhaps it is corrupted?  *Possible* reason follows.
bzip2: Resource temporarily unavailable
        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.

Err http://ftp.altlinux.org i586/classic pkglist
  Could not open file /var/lib/apt/lists/partial/ftp.altlinux.org_pub_distributions_ALTLinux_4.0_branch_i586_base_pkglist.classic - open (2 No such file or directory)
Get:7 ftp://ftp.altlinux.org noarch/classic release [130B]
Get:8 http://ftp.altlinux.org noarch/classic release [130B]
99% [6 pkglist bzip2 0]                                              124kB/s 0s
bzip2: Compressed file ends unexpectedly;
        perhaps it is corrupted?  *Possible* reason follows.
bzip2: Resource temporarily unavailable
        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.

Err http://ftp.altlinux.org noarch/classic pkglist
  Could not open file /var/lib/apt/lists/partial/ftp.altlinux.org_pub_distributions_ALTLinux_4.0_branch_noarch_base_pkglist.classic - open (2 No such file or directory)
Fetched 5794kB in 58s (98.9kB/s)
Failed to fetch ftp://ftp.altlinux.org/pub/distributions/ALTLinux/4.0/branch/noarch/base/release.classic  rename failed, No such file or directory (/var/lib/apt/lists/partial/ftp.altlinux.org_pub_distributions_ALTLinux_4.0_branch_noarch_base_release.classic -> /var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_4.0_branch_noarch_base_release.classic).
Failed to fetch http://ftp.altlinux.org/pub/distributions/ALTLinux/4.0/branch/i586/base/pkglist.classic  Could not open file /var/lib/apt/lists/partial/ftp.altlinux.org_pub_distributions_ALTLinux_4.0_branch_i586_base_pkglist.classic - open (2 No such file or directory)
Failed to fetch http://ftp.altlinux.org/pub/distributions/ALTLinux/4.0/branch/noarch/base/pkglist.classic  Could not open file /var/lib/apt/lists/partial/ftp.altlinux.org_pub_distributions_ALTLinux_4.0_branch_noarch_base_pkglist.classic - open (2 No such file or directory)
Reading Package Lists... Done
Building Dependency Tree... Done
W: Duplicate sources.list entry http://ftp.altlinux.org i586/main pkglist (/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_4.0_Server_current_i586_base_pkglist.main)
W: Duplicate sources.list entry http://ftp.altlinux.org i586/classic pkglist (/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_4.0_Server_current_i586_base_pkglist.classic)
W: Duplicate sources.list entry http://ftp.altlinux.org i586/classic pkglist (/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_4.0_branch_i586_base_pkglist.classic)
W: Duplicate sources.list entry http://ftp.altlinux.org noarch/classic pkglist (/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_4.0_branch_noarch_base_pkglist.classic)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.

[root@localhost ~]# grep '^rpm' /etc/apt/sources.list.d/*
/etc/apt/sources.list.d/server.alt.list:rpm [security] ftp://ftp.altlinux.org/pub/distributions/ALTLinux/4.0/Server/current i586 main
/etc/apt/sources.list.d/server.alt.list:rpm [security] ftp://ftp.altlinux.org/pub/distributions/ALTLinux/4.0/Server/current i586 classic
/etc/apt/sources.list.d/server.alt.list:rpm [updates] ftp://updates.altlinux.org/4.0 i586 updates
/etc/apt/sources.list.d/server.alt.list:rpm [updates] ftp://ftp.altlinux.org/pub/distributions/ALTLinux/4.0/branch i586 classic
/etc/apt/sources.list.d/server.alt.list:rpm [updates] ftp://ftp.altlinux.org/pub/distributions/ALTLinux/4.0/branch noarch classic
/etc/apt/sources.list.d/server.alt.list:rpm [security] http://ftp.altlinux.org/pub/distributions/ALTLinux/4.0/Server/current i586 main
/etc/apt/sources.list.d/server.alt.list:rpm [security] http://ftp.altlinux.org/pub/distributions/ALTLinux/4.0/Server/current i586 classic
/etc/apt/sources.list.d/server.alt.list:rpm [updates] http://ftp.altlinux.org/pub/distributions/ALTLinux/updates/4.0 i586 updates
/etc/apt/sources.list.d/server.alt.list:rpm [updates] http://ftp.altlinux.org/pub/distributions/ALTLinux/4.0/branch i586 classic
/etc/apt/sources.list.d/server.alt.list:rpm [updates] http://ftp.altlinux.org/pub/distributions/ALTLinux/4.0/branch noarch classic
/etc/apt/sources.list.d/sources.list:rpm cdrom:[ALTLinux 4.0 (Verter) build 2008-05-19]/ ALTLinux base disk
[root@localhost ~]# grep '^rpm' /etc/apt/sources.list
[root@localhost ~]#

И как отключить репозитарий cdrom подключенный с помощью команды"apt-cdrom add" (cd-rom уже физически отключен).
« Последнее редактирование: 10.05.2009 12:38:15 от ASnake »

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
Re: Ошибка при обновлении
« Ответ #1 : 30.04.2009 18:08:55 »
1 Закомметнтируйте в /etc/apt/sources.list.d/ все лишние источники, в том чмсле и DVD.
2 Если не поможет -
# rpm --rebuilddb

Оффлайн ASnake

  • Участник
  • *
  • Сообщений: 25
Re: Ошибка при обновлении
« Ответ #2 : 30.04.2009 19:41:23 »
Спасибо, почему-то были два раза прописаны альтовские серваки