MSYS2-pacman icon indicating copy to clipboard operation
MSYS2-pacman copied to clipboard

Strange issue with alternate roots.

Open brisingraerowing opened this issue 9 years ago • 1 comments

I am using the -r option on Pacman to install to a different root (some Mingw stuff), as well as the -b and --logfile options to point to the default pacman stuff ('/var/lib/pacman'). For some reason Pacman cannot find that directory.

Command line used:

pacman -S --debug -r /mingw64-mono-llvm -b /var/lib/pacman --logfile /var/log/pacman.log mingw-w64-x86_64-gtk3

Output from the --debug switch is below

debug: pacman v4.2.1-197-g7e109-dirty - libalpm v9.0.1
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'mingw32'
debug: config file /etc/pacman.conf, line 73: including /etc/pacman.d/mirrorlist.mingw32
debug: config: new section 'mingw64'
debug: config file /etc/pacman.conf, line 76: including /etc/pacman.d/mirrorlist.mingw64
debug: config: new section 'msys'
debug: config file /etc/pacman.conf, line 79: including /etc/pacman.d/mirrorlist.msys
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
error: failed to initialize alpm library
(could not find or read directory: /var/lib/pacman)

brisingraerowing avatar Mar 04 '15 18:03 brisingraerowing

4 марта 2015 г., в 21:32, Brisingr Aerowing [email protected] написал(а):

I am using the -r option on Pacman to install to a different root (some Mingw stuff), as well as the -b and --logfile options to point to the default pacman stuff ('/var/lib/pacman'). For some reason Pacman cannot find that directory.

Command line used:

pacman -S --debug -r /mingw64-mono-llvm -b /var/lib/pacman --logfile /var/log/pacman.log mingw-w64-x86_64-gtk3 Output from the --debug switch is below

debug: pacman v4.2.1-197-g7e109-dirty - libalpm v9.0.1 debug: config: attempting to read file /etc/pacman.conf debug: config: new section 'options' debug: config: HoldPkg: pacman debug: config: arch: x86_64 debug: config: SigLevel: Required debug: config: SigLevel: DatabaseOptional debug: config: LocalFileSigLevel: Optional debug: config: new section 'mingw32' debug: config file /etc/pacman.conf, line 73: including /etc/pacman.d/mirrorlist.mingw32 debug: config: new section 'mingw64' debug: config file /etc/pacman.conf, line 76: including /etc/pacman.d/mirrorlist.mingw64 debug: config: new section 'msys' debug: config file /etc/pacman.conf, line 79: including /etc/pacman.d/mirrorlist.msys debug: config: finished parsing /etc/pacman.conf debug: setup_libalpm called error: failed to initialize alpm library (could not find or read directory: /var/lib/pacman)

First you need create /var/lib/pacman in new root, then synchronize database in new root. And next install package in new root.

Regards, Alexey.

— Reply to this email directly or view it on GitHub https://github.com/Alexpux/MSYS2-pacman/issues/8.

Alexpux avatar Mar 04 '15 18:03 Alexpux