Автор Тема: Сборка в hasher, невозможно получить пакет  (Прочитано 2907 раз)

Оффлайн skywriter

  • Давно тут
  • **
  • Сообщений: 30
Собираю kdenlive-0.7.3-alt1.svn3320.src.rpm с помощью hasher.
Создал каталог ~/hasher, добавил пользователя с помощью hasher-useradd.
Во время выполнения
$hsh -v  ~/hasher/ ~/tmp/build/kdenlive-0.7.3-alt1.svn3320.src.rpm --target i586
выводит ошибки:
Цитировать
Невозможно получить http://mirror.yandex.ru/altlinux/4.1/branch/noarch/RPMS.classic/setup-2.2.11-alt1.noarch.rpm  Error reading from server - read (104 Connection reset by peer)
Невозможно получить http://mirror.yandex.ru/altlinux/4.1/branch/i586/RPMS.classic/filesystem-2.3.3-alt1.i586.rpm  Error reading from server - read (104 Connection reset by peer)
Невозможно получить http://mirror.yandex.ru/altlinux/4.1/branch/i586/RPMS.classic/glibc-preinstall-2.5.1-alt4.i586.rpm  Error reading from server - read (104 Connection reset by peer)
Невозможно получить http://mirror.yandex.ru/altlinux/4.1/branch/i586/RPMS.classic/glibc-core-2.5.1-alt4.i586.rpm  Error reading from server - read (104 Connection reset by peer)
Невозможно получить http://mirror.yandex.ru/altlinux/4.1/branch/i586/RPMS.classic/info-install-4.11-alt3.i586.rpm  Error reading from server - read (104 Connection reset by peer)
Невозможно получить http://mirror.yandex.ru/altlinux/4.1/branch/i586/RPMS.classic/libbeecrypt-2.2.0-alt6.i586.rpm  Error reading from server - read (104 Connection reset by peer)
E: Некоторые файлы не удалось получить
hsh-initroot: failed to download packages from calculated package file list.
hsh-initroot: Failed to generate initial package file list.

В synaptic включил репозитории:
http://mirror.yandex.ru/altlinux/4.1/branch/ (noarch)
http://mirror.yandex.ru/altlinux/4.1/branch/ (i586)
http://mirror.yandex.ru/altlinux/backports/4.1/

Пробовал в качестве репозитория также вместо них включать:
http://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/branch/ (noarch)
http://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/branch/ (i586)
http://ftp.altlinux.org/pub/distributions/ALTLinux/backports/4.1/

Результат аналогичный, но ругается на другие пакеты.

Есть особенность: я подключен через прокси-сервер squid. Настройки прокси-сервера заданы в synaptic, устанавливать пакеты выборочно он может.

Что я делаю не так?

Оффлайн firewolf

  • Завсегдатай
  • *
  • Сообщений: 63
  • werewolf
    • Email
мне почему-то кажется что backports надо убрать
живи сам и дай жить другим

Drool

  • Гость
А это не связано с техпроблемами на ftp?

Оффлайн skywriter

  • Давно тут
  • **
  • Сообщений: 30
Может и связано, но почему тогда ошибка одна и та же и для одних и тех же файлов на разных серверах?

Drool

  • Гость
Соединение сброшено пиром? А у Вас с сетью/траффиком/лимитом/провайдером все в порядке?

Оффлайн skywriter

  • Давно тут
  • **
  • Сообщений: 30
Всё замечательно. Synaptic устанавливает пакеты, которые выбираешь для установки.

Drool

  • Гость
А дистрибутив какой? Не 4.0 случайно? Мне почему-то кажется, что в нем хашер не умел работать с удаленным репозиторием и хотел только локальное зеркало. Но могу и ошибаться.

Оффлайн skywriter

  • Давно тут
  • **
  • Сообщений: 30
Desktop 4.1. Вот полный лог:

$ hsh -v  ~/hasher/ ~/tmp/build/kdenlive-0.7.3-alt1.svn3320.src.rpm --target i586
hsh: changed working directory to `/home/skywriter/hasher'
hsh: Locked working directory `/home/skywriter/hasher'
mkaptbox: changed working directory to `/home/skywriter/hasher'
mkdir: создан каталог `aptbox'
mkaptbox: Changed working directory to `/home/skywriter/hasher/aptbox'.
mkdir: создан каталог `./etc'
mkdir: создан каталог `./etc/apt'
mkdir: создан каталог `./etc/apt/apt.conf.d'
mkdir: создан каталог `./etc/apt/sources.list.d'
mkdir: создан каталог `./etc/apt/vendors.list.d'
mkdir: создан каталог `./home'
mkdir: создан каталог `./home/user'
mkdir: создан каталог `./var'
mkdir: создан каталог `./var/cache'
mkdir: создан каталог `./var/cache/apt'
mkdir: создан каталог `./var/cache/apt/archives'
mkdir: создан каталог `./var/cache/apt/archives/partial'
mkdir: создан каталог `./var/lib'
mkdir: создан каталог `./var/lib/apt'
mkdir: создан каталог `./var/lib/apt/lists'
mkdir: создан каталог `./var/lib/apt/lists/partial'
mkdir: создан каталог `./var/lib/rpm'
mkaptbox: created apt-cache wrapper
права доступа `apt-cache' изменены на 0755 (rwxr-xr-x)
mkaptbox: created apt-config wrapper
права доступа `apt-config' изменены на 0755 (rwxr-xr-x)
mkaptbox: created apt-get wrapper
права доступа `apt-get' изменены на 0755 (rwxr-xr-x)
mkaptbox: created genbasedir wrapper
права доступа `genbasedir' изменены на 0755 (rwxr-xr-x)
mkaptbox: created regenbasedir
права доступа `regenbasedir' изменены на 0755 (rwxr-xr-x)
`/var/lib/apt/cdroms.list' -> `/home/skywriter/hasher/aptbox/var/lib/apt/cdroms.list'
`/var/lib/apt/lists//ftp.altlinux.org_pub_distributions_ALTLinux_4.1_branch_noarch_base_release' -> `/home/skywriter/hasher/aptbox/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_4.1_branch_noarch_base_release'
`/var/lib/apt/lists//ftp.altlinux.org_pub_distributions_ALTLinux_4.1_branch_noarch_base_release.classic' -> `/home/skywriter/hasher/aptbox/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_4.1_branch_noarch_base_release.classic'
`/var/lib/apt/lists//ftp.altlinux.org_pub_distributions_ALTLinux_4.1_branch_i586_base_pkglist.classic' -> `/home/skywriter/hasher/aptbox/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_4.1_branch_i586_base_pkglist.classic'
`/var/lib/apt/lists//ftp.altlinux.org_pub_distributions_ALTLinux_4.1_branch_noarch_base_pkglist.classic' -> `/home/skywriter/hasher/aptbox/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_4.1_branch_noarch_base_pkglist.classic'
`/var/lib/apt/lists//ftp.altlinux.org_pub_distributions_ALTLinux_4.1_branch_i586_base_release' -> `/home/skywriter/hasher/aptbox/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_4.1_branch_i586_base_release'
`/var/lib/apt/lists//ftp.altlinux.org_pub_distributions_ALTLinux_4.1_branch_i586_base_release.classic' -> `/home/skywriter/hasher/aptbox/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_4.1_branch_i586_base_release.classic'
mkaptbox: Created APT configuration file `/home/skywriter/hasher/aptbox/etc/apt/apt.conf'.
mkaptbox: Created APT source list file `./etc/apt/sources.list'.
mkaptbox: Created RPM database in `./var/lib/rpm/'.
mkaptbox: updated hasher repository indices.
Получено: 1 http://ftp.altlinux.org i586 release [710B]
Получено: 2 http://ftp.altlinux.org noarch release [707B]
Получено 1417B за 0s (58,3kB/s).
Найдено http://ftp.altlinux.org i586/classic pkglist
Найдено http://ftp.altlinux.org i586/classic release
Найдено http://ftp.altlinux.org noarch/classic pkglist
Найдено http://ftp.altlinux.org noarch/classic release
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
hsh: Acquiring lock for config file `/etc/hasher-priv/user.d/skywriter'...
hsh: Locked config file `/etc/hasher-priv/user.d/skywriter'
hsh-rmchroot: changed working directory to `/home/skywriter/hasher'
hsh-rmchroot: Changed working directory to `/home/skywriter/hasher/chroot'.
удален `/home/skywriter/hasher/chroot/.host/sh'
`/bin/ash.static' -> `/home/skywriter/hasher/chroot/.host/sh'
удален `/home/skywriter/hasher/chroot/.host/find'
`/usr/bin/find.static' -> `/home/skywriter/hasher/chroot/.host/find'
hsh-rmchroot: Installed .host programs.
+ /.host/sh -c :>/dev/null
+ exec
hsh-rmchroot: Removed files owned by user2.
+ /.host/sh -c :>/dev/null
+ exec
hsh-rmchroot: Removed files owned by user1.
удален каталог: `/home/skywriter/hasher/chroot/.out'
удален каталог: `/home/skywriter/hasher/chroot/.in'
удален `/home/skywriter/hasher/chroot/.host/cpio'
удален `/home/skywriter/hasher/chroot/.host/sh'
удален `/home/skywriter/hasher/chroot/.host/entry'
удален `/home/skywriter/hasher/chroot/.host/find'
удален каталог: `/home/skywriter/hasher/chroot/.host'
удален `/home/skywriter/hasher/chroot/dev/stderr'
удален `/home/skywriter/hasher/chroot/dev/random'
удален каталог: `/home/skywriter/hasher/chroot/dev/pts'
удален `/home/skywriter/hasher/chroot/dev/stdin'
удален `/home/skywriter/hasher/chroot/dev/zero'
удален `/home/skywriter/hasher/chroot/dev/stdout'
удален `/home/skywriter/hasher/chroot/dev/null'
удален `/home/skywriter/hasher/chroot/dev/log'
удален `/home/skywriter/hasher/chroot/dev/urandom'
удален `/home/skywriter/hasher/chroot/dev/fd'
удален `/home/skywriter/hasher/chroot/dev/full'
удален каталог: `/home/skywriter/hasher/chroot/dev'
удален каталог: `/home/skywriter/hasher/chroot'
hsh-mkchroot: changed working directory to `/home/skywriter/hasher'
mkdir: создан каталог `chroot'
hsh-mkchroot: Changed working directory to `/home/skywriter/hasher/chroot'.
mkdir: создан каталог `.host'
mkdir: создан каталог `.in'
mkdir: создан каталог `dev'
mkdir: создан каталог `dev/pts'
изменена группа `.' на 501
изменена группа `dev' на 501
изменена группа `dev/pts' на 501
mkdir: создан каталог `.out'
изменена группа `.out' на 502
hsh-mkchroot: Created directory tree.
`dev/fd' -> `../proc/self/fd'
`dev/stdin' -> `../proc/self/fd/0'
`dev/stdout' -> `../proc/self/fd/1'
`dev/stderr' -> `../proc/self/fd/2'
hsh-mkchroot: Created /dev symlinks.
`/bin/ash.static' -> `/home/skywriter/hasher/chroot/.host/sh'
`/usr/bin/find.static' -> `/home/skywriter/hasher/chroot/.host/find'
`/usr/bin/cpio.static' -> `/home/skywriter/hasher/chroot/.host/cpio'
hsh-mkchroot: Installed .host programs.
hsh-mkchroot: Created devices in `/home/skywriter/hasher/chroot/dev/'.
hsh-initroot: changed working directory to `/home/skywriter/hasher'
удален каталог: `/home/skywriter/hasher/cache/chroot/list.new'
удален каталог: `/home/skywriter/hasher/cache/chroot/package.new'
mkdir: создан каталог `/home/skywriter/hasher/cache/chroot/list.new'
mkdir: создан каталог `/home/skywriter/hasher/cache/chroot/package.new'
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
Selected version fakeroot#1.9.4-alt2 for fakeroot>=0:0.7.3
Следующие дополнительные пакеты будут установлены:
  alt-gpgkeys bzlib coreutils fakeroot getopt glibc-core glibc-preinstall info-install libacl libattr libbeecrypt libdb4.4
  libelf libpopt librpm librpmbuild libtinfo libzio sh terminfo zlib
Следующие НОВЫЕ пакеты будут установлены:
  alt-gpgkeys bzlib coreutils fakeroot filesystem getopt glibc-core glibc-preinstall info-install libacl libattr
  libbeecrypt libdb4.4 libelf libpopt librpm librpmbuild libtinfo libzio rpm setup sh terminfo zlib
0 будет обновлено, 24 новых установлено, 0 пакетов будет удалено и 0 не будет обновлено.
Необходимо получить 6613kB архивов.
После распаковки потребуется дополнительно 15,1MB дискового пространства.
Получено: 1 http://ftp.altlinux.org i586/classic alt-gpgkeys 0.5.1-alt1.M41.1 [194kB]
Получено: 2 http://ftp.altlinux.org noarch/classic setup 2.2.11-alt1 [30,5kB]
Ошибка http://ftp.altlinux.org noarch/classic setup 2.2.11-alt1
  Error reading from server - read (104 Connection reset by peer)
Получено: 3 http://ftp.altlinux.org i586/classic filesystem 2.3.3-alt1 [15,6kB]
Ошибка http://ftp.altlinux.org i586/classic filesystem 2.3.3-alt1
  Error reading from server - read (104 Connection reset by peer)
Получено: 4 http://ftp.altlinux.org i586/classic glibc-preinstall 6:2.5.1-alt4 [26,7kB]
Ошибка http://ftp.altlinux.org i586/classic glibc-preinstall 6:2.5.1-alt4
  Error reading from server - read (104 Connection reset by peer)
Получено: 5 http://ftp.altlinux.org i586/classic glibc-core 6:2.5.1-alt4 [1229kB]
Ошибка http://ftp.altlinux.org i586/classic glibc-core 6:2.5.1-alt4
  Error reading from server - read (104 Connection reset by peer)
Получено: 6 http://ftp.altlinux.org i586/classic getopt 2.13-alt8 [59,2kB]
Получено: 7 http://ftp.altlinux.org i586/classic sh 3.2.33-alt1 [216kB]
Получено: 8 http://ftp.altlinux.org i586/classic bzlib 1:1.0.5-alt2 [39,7kB]
Получено: 9 http://ftp.altlinux.org i586/classic zlib 1.2.3-alt4 [51,3kB]
Ошибка http://ftp.altlinux.org i586/classic zlib 1.2.3-alt4
  Error reading from server - read (104 Connection reset by peer)
Получено: 10 http://ftp.altlinux.org i586/classic libzio 0.4-alt1 [9417B]
Получено: 11 http://ftp.altlinux.org i586/classic info-install 4.11-alt3 [23,0kB]
Получено: 12 http://ftp.altlinux.org i586/classic libattr 2.4.41-alt1 [9397B]
Получено: 13 http://ftp.altlinux.org i586/classic libacl 2.2.47-alt1 [16,7kB]
Получено: 14 http://ftp.altlinux.org i586/classic terminfo 5.6-alt4 [64,1kB]
Ошибка http://ftp.altlinux.org i586/classic terminfo 5.6-alt4
  Error reading from server - read (104 Connection reset by peer)
Получено: 15 http://ftp.altlinux.org i586/classic libtinfo 5.6-alt4 [54,5kB]
Ошибка http://ftp.altlinux.org i586/classic libtinfo 5.6-alt4
  Error reading from server - read (104 Connection reset by peer)
Получено: 16 http://ftp.altlinux.org i586/classic coreutils 6.11-alt1 [3251kB]
Получено: 17 http://ftp.altlinux.org i586/classic fakeroot 1.9.4-alt2 [48,5kB]
Получено: 18 http://ftp.altlinux.org i586/classic libbeecrypt 2.2.0-alt6 [71,0kB]
Получено: 19 http://ftp.altlinux.org i586/classic libdb4.4 4.4.20-alt2 [415kB]
Получено: 20 http://ftp.altlinux.org i586/classic libelf 0.131-alt1 [58,0kB]
Получено: 21 http://ftp.altlinux.org i586/classic libpopt 1:1.14-alt2 [41,0kB]
Получено: 22 http://ftp.altlinux.org i586/classic librpm 4.0.4-alt95.M41.20 [350kB]
Получено: 23 http://ftp.altlinux.org i586/classic librpmbuild 4.0.4-alt95.M41.20 [111kB]
Получено: 24 http://ftp.altlinux.org i586/classic rpm 4.0.4-alt95.M41.20 [230kB]
Получено 5142kB за 9s (538kB/s).
Невозможно получить http://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/branch/noarch/RPMS.classic/setup-2.2.11-alt1.noarch.rpm  Error reading from server - read (104 Connection reset by peer)
Невозможно получить http://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/branch/i586/RPMS.classic/filesystem-2.3.3-alt1.i586.rpm  Error reading from server - read (104 Connection reset by peer)
Невозможно получить http://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/branch/i586/RPMS.classic/glibc-preinstall-2.5.1-alt4.i586.rpm  Error reading from server - read (104 Connection reset by peer)
Невозможно получить http://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/branch/i586/RPMS.classic/glibc-core-2.5.1-alt4.i586.rpm  Error reading from server - read (104 Connection reset by peer)
Невозможно получить http://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/branch/i586/RPMS.classic/zlib-1.2.3-alt4.i586.rpm  Error reading from server - read (104 Connection reset by peer)
Невозможно получить http://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/branch/i586/RPMS.classic/terminfo-5.6-alt4.i586.rpm  Error reading from server - read (104 Connection reset by peer)
Невозможно получить http://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/branch/i586/RPMS.classic/libtinfo-5.6-alt4.i586.rpm  Error reading from server - read (104 Connection reset by peer)
E: Некоторые файлы не удалось получить
hsh-initroot: failed to download packages from calculated package file list.
hsh-initroot: Failed to generate initial package file list.

Drool

  • Гость
И apt-get update не помогает? :(

Оффлайн skywriter

  • Давно тут
  • **
  • Сообщений: 30
Почему же не помогает?

# apt-get update
Get:1 http://ftp.altlinux.org i586 release [710B]
Get:2 http://ftp.altlinux.org noarch release [707B]
Fetched 1417B in 0s (50.4kB/s)
Hit http://ftp.altlinux.org i586/classic pkglist
Hit http://ftp.altlinux.org i586/classic release
Hit http://ftp.altlinux.org noarch/classic pkglist
Hit http://ftp.altlinux.org noarch/classic release
Reading Package Lists... Done
Building Dependency Tree... Done

Drool

  • Гость
Ну, судя по рассылке, Вам уже подсказали кде крутить.

Оффлайн skywriter

  • Давно тут
  • **
  • Сообщений: 30
Помог совет из разсылки sisyphus:
вписать в /etc/apt/apt.conf:
Acquire::http::Pipeline-Depth "0";

Думаю, что это должно быть в wiki.

Alexei_VM

  • Гость
Думаю, что это должно быть в wiki.

Ну так занесите на wiki :)