Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#38077 - pacman, option --root

Attached to Project: Arch Linux
Opened by peter (pekup) - Monday, 09 December 2013, 14:04 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 11 December 2013, 12:21 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: when i use the --root option, i get the error message:
Konnte alpm-Bibliothek nicht initialisieren (Konnte Verzeichnis nicht finden oder lesen)

Additional info:
* package version(s) Pacman v4.1.2 - libalpm v8.0.2
* config and/or log files etc.


Steps to reproduce: pacman -S --root test base ( or any other package)
This task depends upon

Closed by  Dave Reisner (falconindy)
Wednesday, 11 December 2013, 12:21 GMT
Reason for closing:  Not a bug
Comment by Jan de Groot (JGC) - Monday, 09 December 2013, 15:04 GMT
Pacman needs a sync db in the location you specify with --root. You should run pacman -Sy --root test first. Probably you'll have to create root/var/lib/pacman also, but I'm not sure about that.
Comment by Dave Reisner (falconindy) - Monday, 09 December 2013, 15:33 GMT
If you change the root, pacman expects a pacman DB and filesystem to exist under it. What are you using the --root flag for? Note the warning in the manpage (emphasis mine):

Specify an alternative installation root (default is /). ****This should not be used as a way to install software into /usr/local instead of /usr****. This option is used if you want to install a package on a temporarily mounted partition that is "owned" by another system. NOTE: If database path or log file are not specified on either the command line or in pacman.conf(5), their default location will be inside this root path.
Comment by peter (pekup) - Tuesday, 10 December 2013, 09:26 GMT
thank you for your comments;
i was apparently misinterpreting the lines in archboot tutorial:

pacman -S archboot
mkdir <x86_64_chroot>
pacman --root "<x86_64_chroot>" -S base --noconfirm --noprogressbar

Loading...