vasek
Не доконца понял, что тебе нужно … а потому опишу то, что я понял.
Понял. Спасибо. Тема закрыта.
vasek
Навскидку ….. у тебя присутствует все вместе … и локальные и не локальные
Т.е. использовать разрешается или лишь локальный или внешние репозитории?
vasek
bsm
Не понятно
В приведенных логах крамолы не видно … и это потому, что логи обрезаны … и похоже нет самого интересного.

Монтирование локального репозитория-

[root@bsm-family LocalRepos]# ./mount-local-repos.sh
==> Извлечение базы данных во временную директорию...
==> Извлечение базы данных во временную директорию...
==> Создание обновлённой базы данных '/mnt/LocalRepos/archlinux/community/os/x86_64/community.db.tar.gz'
==> Извлечение базы данных во временную директорию...
==> Извлечение базы данных во временную директорию...
==> Создание обновлённой базы данных '/mnt/LocalRepos/archlinux/core/os/x86_64/core.db.tar.gz'
==> Извлечение базы данных во временную директорию...
==> Извлечение базы данных во временную директорию...
==> Создание обновлённой базы данных '/mnt/LocalRepos/archlinux/extra/os/x86_64/extra.db.tar.gz'
==> Извлечение базы данных во временную директорию...
==> Извлечение базы данных во временную директорию...
==> Создание обновлённой базы данных '/mnt/LocalRepos/archlinux/multilib/os/x86_64/multilib.db.tar.gz'

Выполнение,- pacman -Syy --debug

debug: pacman v5.1.3 - libalpm v11.0.3
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 79: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 82: including /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 85: including /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: config file /etc/pacman.conf, line 94: including /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: Нет такого файла или каталога
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for core repository
debug: adding new server URL to database 'core': file:///mnt/LocalRepos/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://archlinux.ip-connect.vn.ua/core/os/x86_64
debug: adding new server URL to database 'core': https://archlinux.ip-connect.vn.ua/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.mirohost.net/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.mirohost.net/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.nix.org.ua/linux/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirrors.nix.org.ua/linux/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.evowise.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.osbeck.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.datacenter.by/pub/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://archlinux.koyanet.lv/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.orbit-os.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.dkm.cz/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://ftp.energia.mta.hu/pub/mirrors/ftp.archlinux.org/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.metalgamer.eu/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://tux.rainside.sk/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.srv.fail/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.atviras.lt/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.selfnet.de/archlinux/core/os/x86_64
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: Нет такого файла или каталога
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for extra repository
debug: adding new server URL to database 'extra': file:///mnt/LocalRepos/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://archlinux.ip-connect.vn.ua/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archlinux.ip-connect.vn.ua/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirror.mirohost.net/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.mirohost.net/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.nix.org.ua/linux/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirrors.nix.org.ua/linux/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.evowise.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.osbeck.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirror.datacenter.by/pub/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://archlinux.koyanet.lv/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.orbit-os.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.dkm.cz/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://ftp.energia.mta.hu/pub/mirrors/ftp.archlinux.org/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirror.metalgamer.eu/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://tux.rainside.sk/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.srv.fail/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.atviras.lt/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.selfnet.de/archlinux/extra/os/x86_64
debug: registering sync database 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community.db
debug: "/var/lib/pacman/sync/community.db.sig" is not readable: Нет такого файла или каталога
debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for community repository
debug: adding new server URL to database 'community': file:///mnt/LocalRepos/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://archlinux.ip-connect.vn.ua/community/os/x86_64
debug: adding new server URL to database 'community': https://archlinux.ip-connect.vn.ua/community/os/x86_64
debug: adding new server URL to database 'community': http://mirror.mirohost.net/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.mirohost.net/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.nix.org.ua/linux/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://mirrors.nix.org.ua/linux/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.evowise.com/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.osbeck.com/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirror.datacenter.by/pub/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://archlinux.koyanet.lv/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.orbit-os.com/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.dkm.cz/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://ftp.energia.mta.hu/pub/mirrors/ftp.archlinux.org/community/os/x86_64
debug: adding new server URL to database 'community': http://mirror.metalgamer.eu/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://tux.rainside.sk/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.srv.fail/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.atviras.lt/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.selfnet.de/archlinux/community/os/x86_64
debug: registering sync database 'multilib'
debug: database path for tree multilib set to /var/lib/pacman/sync/multilib.db
debug: "/var/lib/pacman/sync/multilib.db.sig" is not readable: Нет такого файла или каталога
debug: sig path /var/lib/pacman/sync/multilib.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for multilib repository
debug: adding new server URL to database 'multilib': file:///mnt/LocalRepos/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://archlinux.ip-connect.vn.ua/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archlinux.ip-connect.vn.ua/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirror.mirohost.net/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.mirohost.net/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirrors.nix.org.ua/linux/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirrors.nix.org.ua/linux/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirrors.evowise.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.osbeck.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirror.datacenter.by/pub/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://archlinux.koyanet.lv/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.orbit-os.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.dkm.cz/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://ftp.energia.mta.hu/pub/mirrors/ftp.archlinux.org/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirror.metalgamer.eu/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://tux.rainside.sk/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.srv.fail/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirrors.atviras.lt/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.selfnet.de/archlinux/multilib/os/x86_64
:: Обновление баз данных пакетов...
debug: url: file:///mnt/LocalRepos/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
загрузка core.db...
debug: curl returned error 0 from transfer
debug: response code: 0
debug: url: file:///mnt/LocalRepos/archlinux/core/os/x86_64/core.db.sig
debug: maxsize: 16384
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.sig.part (wb)
debug: curl returned error 37 from transfer
debug: failed retrieving file 'core.db.sig' from диск : Couldn't open file /mnt/LocalRepos/archlinux/core/os/x86_64/core.db.sig
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: Нет такого файла или каталога
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
debug: url: file:///mnt/LocalRepos/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
загрузка extra.db...
debug: curl returned error 0 from transfer
debug: response code: 0
debug: url: file:///mnt/LocalRepos/archlinux/extra/os/x86_64/extra.db.sig
debug: maxsize: 16384
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.sig.part (wb)
debug: curl returned error 37 from transfer
debug: failed retrieving file 'extra.db.sig' from диск : Couldn't open file /mnt/LocalRepos/archlinux/extra/os/x86_64/extra.db.sig
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: Нет такого файла или каталога
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
debug: url: file:///mnt/LocalRepos/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
загрузка community.db...
debug: curl returned error 0 from transfer
debug: response code: 0
debug: url: file:///mnt/LocalRepos/archlinux/community/os/x86_64/community.db.sig
debug: maxsize: 16384
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.sig.part (wb)
debug: curl returned error 37 from transfer
debug: failed retrieving file 'community.db.sig' from диск : Couldn't open file /mnt/LocalRepos/archlinux/community/os/x86_64/community.db.sig
debug: "/var/lib/pacman/sync/community.db.sig" is not readable: Нет такого файла или каталога
debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
debug: missing optional signature
debug: url: file:///mnt/LocalRepos/archlinux/multilib/os/x86_64/multilib.db
debug: maxsize: 26214400
debug: opened tempfile for download: /var/lib/pacman/sync/multilib.db.part (wb)
загрузка multilib.db...
debug: curl returned error 0 from transfer
debug: response code: 0
debug: url: file:///mnt/LocalRepos/archlinux/multilib/os/x86_64/multilib.db.sig
debug: maxsize: 16384
debug: opened tempfile for download: /var/lib/pacman/sync/multilib.db.sig.part (wb)
debug: curl returned error 37 from transfer
debug: failed retrieving file 'multilib.db.sig' from диск : Couldn't open file /mnt/LocalRepos/archlinux/multilib/os/x86_64/multilib.db.sig
debug: "/var/lib/pacman/sync/multilib.db.sig" is not readable: Нет такого файла или каталога
debug: sig path /var/lib/pacman/sync/multilib.db.sig could not be opened
debug: missing optional signature
debug: unregistering database 'local'
debug: unregistering database 'core'
debug: unregistering database 'extra'
debug: unregistering database 'community'
debug: unregistering database 'multilib'

[root@bsm-family LocalRepos]#


root@bsm-family bsm]# pacman -Syy
:: Обновление баз данных пакетов...
 core                     132,4 KiB  43,1M/s 00:00 [######################] 100%
 extra                   1664,3 KiB   406M/s 00:00 [######################] 100%
 community                  4,9 MiB   486M/s 00:00 [######################] 100%
 multilib                 169,6 KiB  0,00B/s 00:00 [######################] 100%
[root@bsm-family bsm]#
NoVASpirit
Хотя если ты просто клонировал репозитории то надо просто в pacman.conf вписать

[core]
SigLevel = Never
Server = file:///mnt/LocalRepos/core/os/x86_64/

ну и.т.д к экста, комьюнити, мультилиб )
Так я не делал. Я думал, что отдельно указанного репозитория достаточно, что бы сначало смотреть в локальный репозиторий, затем в внешний, согл. /etc/pacman.d/mirrorlist. Но в предложенном варианте, если это всё, что должно быть в приведенной секции, используется лишь локальный репозиторий.
NoVASpirit
и команда repo-add должна выглядеть примерно так

repo-add LocalRepos.db.tar.gz *.pkg.tar.xz
У меня в скрипте это выглядит так-
for repo in community core extra multilib; do
DIR_DB_FILE=/mnt/LocalRepos/archlinux/$repo/os/`uname -m`

repo-add $DIR_DB_FILE/$repo.db.tar.gz
done
Результат последних изысканий-
1- если информацию о локальном репозитории указываю в /etc/pacman.conf,-
..
[LocalRepos]
Server = file:///mnt/LocalRepos/archlinux
..
то получаю,-

[root@bsm-family etc]# pacman -Sy --debug
debug: pacman v5.1.3 - libalpm v11.0.3
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'LocalRepos'
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 77: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 80: including /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 83: including /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: config file /etc/pacman.conf, line 92: including /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'LocalRepos'
debug: database path for tree LocalRepos set to /var/lib/pacman/sync/LocalRepos.db
debug: "/var/lib/pacman/sync/LocalRepos.db" is not readable: Нет такого файла или каталога
debug: setting usage of 15 for LocalRepos repository
debug: adding new server URL to database 'LocalRepos': file:///mnt/LocalRepos/archlinux
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: Нет такого файла или каталога
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for core repository
debug: adding new server URL to database 'core': http://archlinux.ip-connect.vn.ua/core/os/x86_64
debug: adding new server URL to database 'core': https://archlinux.ip-connect.vn.ua/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.mirohost.net/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.mirohost.net/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.nix.org.ua/linux/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirrors.nix.org.ua/linux/archlinux/core/os/x86_64
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: Нет такого файла или каталога
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
..

2- если информацию о локальном репозитории указываю в /etc/pacman.d/mirrorlist,-
..
Server = file:///mnt/LocalRepos/archlinux//$repo/os/$arch
..
то получаю,-

[root@bsm-family pacman.d]# pacman -Sy --debug
debug: pacman v5.1.3 - libalpm v11.0.3
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 77: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 80: including /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 83: including /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: config file /etc/pacman.conf, line 92: including /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: Нет такого файла или каталога
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for core repository
debug: adding new server URL to database 'core': file:///mnt/LocalRepos/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://archlinux.ip-connect.vn.ua/core/os/x86_64
debug: adding new server URL to database 'core': https://archlinux.ip-connect.vn.ua/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.mirohost.net/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.mirohost.net/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.nix.org.ua/linux/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirrors.nix.org.ua/linux/archlinux/core/os/x86_64
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: Нет такого файла или каталога
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for extra repository
debug: adding new server URL to database 'extra': file:///mnt/LocalRepos/archlinux/extra/os/x86_64
..

Не понятно.
NoVASpirit
Разве это надо делать не в pacman.conf?
Пробовал и так, но результат тот же.
vasek
Понял. Завтра попробую. Спасибо.
vasek
man pacman
--debug
           Display debug messages. When reporting bugs, this option is recommended to be used.
Не понял необходимости использования опции.
redix
А sudo pacman -Syy?
Да, выполнил.