[devel] hasher --apt-config and remote apt repo

Eugene Prokopiev enp на itx.ru
Пт Июн 21 14:36:39 MSK 2013


Здравствуйте!

У меня прекрасно собираются пакеты посредством hsh без указания
--apt-config (или с указанием системного) и не собираются с
--apt-config=/home/enp/apt/apt.conf.p7.x86_64, который содержит
единственную строчку:

Dir::Etc::SourceList /etc/apt/sources.list.d/local.list;

Этот файл, используемый всеми apt.conf, выглядит так:

rpm http://fileserver/distrib/free/linux/alt/p7/branch/ x86_64 classic
rpm http://fileserver/distrib/free/linux/alt/p7/branch/ noarch classic

Диагностика такова:

mkaptbox: Created APT configuration file
`/tmp/.private/enp/hasher/aptbox/etc/apt/apt.conf'.
mkaptbox: Created APT source list file `./etc/apt/sources.list'.
mkaptbox: Created RPM database in `./var/lib/rpm/'.
Получено: 1 http://fileserver x86_64 release [913B]
Получено: 2 http://fileserver noarch release [707B]
Получено 1620B за 0s (0B/s).
Получено: 1 http://fileserver x86_64/classic pkglist [14,9MB]
Получено: 2 http://fileserver x86_64/classic release [135B]
Получено: 3 http://fileserver noarch/classic pkglist [3213kB]
Получено: 4 http://fileserver noarch/classic release [135B]
Получено: 5 http://fileserver x86_64/classic pkglist [14,9MB]
Получено: 6 http://fileserver x86_64/classic release [135B]
Получено: 7 http://fileserver noarch/classic pkglist [3213kB]
Получено: 8 http://fileserver noarch/classic release [135B]
Ошибка http://fileserver x86_64/classic pkglist
  Could not open file
/tmp/.private/enp/hasher/aptbox/var/lib/apt/lists/partial/fileserver_distrib_free_linux_alt_p7_branch_x86%5f64_base_pkglist.classic
- open (2 No such file or directory)
Ошибка http://fileserver noarch/classic pkglist
  Could not open file
/tmp/.private/enp/hasher/aptbox/var/lib/apt/lists/partial/fileserver_distrib_free_linux_alt_p7_branch_noarch_base_pkglist.classic
- open (2 No such file or directory)
Получено 21,4MB за 3s (6419kB/s).
xz: (stdin): File format not recognized
xz: (stdin): File format not recognized
Невозможно получить
http://fileserver/distrib/free/linux/alt/p7/branch/x86_64/base/pkglist.classic
 Could not open file
/tmp/.private/enp/hasher/aptbox/var/lib/apt/lists/partial/fileserver_distrib_free_linux_alt_p7_branch_x86%5f64_base_pkglist.classic
- open (2 No such file or directory)
Невозможно получить
http://fileserver/distrib/free/linux/alt/p7/branch/noarch/base/pkglist.classic
 Could not open file
/tmp/.private/enp/hasher/aptbox/var/lib/apt/lists/partial/fileserver_distrib_free_linux_alt_p7_branch_noarch_base_pkglist.classic
- open (2 No such file or directory)
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
W: Duplicate sources.list entry http://fileserver x86_64/classic
pkglist (/tmp/.private/enp/hasher/aptbox/var/lib/apt/lists/fileserver_distrib_free_linux_alt_p7_branch_x86%5f64_base_pkglist.classic)
W: Duplicate sources.list entry http://fileserver noarch/classic
pkglist (/tmp/.private/enp/hasher/aptbox/var/lib/apt/lists/fileserver_distrib_free_linux_alt_p7_branch_noarch_base_pkglist.classic)
W: Возможно, Вам потребуется запустить `apt-get update' для исправления.
E: Некоторые индексные файлы не удалось скачать, они либо были
проигнорированы, либо вместо них были использованы старые версии.

На соседней машине, где репозитарий apt доступен локально, все
собирается в том числе и с --apt-config. Более того, я смонтировал
удаленный репозитарий локально средствами curlftpfs, и после этого
сборка с --apt-config и локальными источниками таки заработала.

Теперь скажите: это баг или я что-то неправильно делаю?

--
WBR,
Eugene Prokopiev


Подробная информация о списке рассылки Devel