You are not logged in.
Hello, I installed https://aur.archlinux.org/packages/arch32-light/ initialized it and managed to change into it, as well as installing pacman, base-devel and yaourt into it.
Now, I want to install an AUR-package into it but I don't succeed.
I tried:
# yaourt -S packagename
-->
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
OK, so I tried this:
# sudo -u username yaourt -S packagename
-->
:: Proceed with installation? [Y/n] y
error: could not determine cachedir mount point /var/cache/pacman/pkg
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.
But changing to that directory in the chroot is no problem:
# cd /var/cache/pacman/pkg/
works and ls shows all the cached packages. There's also more than enough diskspace.
Does anyone understand and knows what to do?
Last edited by Carl Karl (2016-07-13 16:50:42)
Offline
Don't try to build a package as root. Build as "nobody" or create a user in the chroot to build your packages. Also learn how to use makepkg and the AUR properly, then you will be able to fix such problems yourself.
EDIT: Assimilate this information: https://wiki.archlinux.org/index.php/makepkg and search for "nobody".
Last edited by Awebb (2016-07-13 16:17:32)
Offline
One step further. Inside the chroot:
# df -h
Filesystem Size Used Avail Use% Mounted on
dev 2.9G 0 2.9G 0% /dev
tmpfs 3.0G 1.1M 3.0G 1% /dev/shm
tmpfs 3.0G 40M 2.9G 2% /tmp
--> mountpoint / is missing, isn't it?
Offline
I responded to your post while you were posting. Bump for your attention, in case you miss it.
Offline
Don't try to build a package as root.
Done. See initial post.
Also learn how to use makepkg and the AUR properly, then you will be able to fix such problems yourself.
the package I want to install has a bunch of dependencies (official and AUR), so I prefer to use an AUR helper instead of makeing each dependency manually.
Meanwhile, I believe to have found the problem:
Didn't realize initialisation of pacman wasn't done by the package, so
# sed -i 's/CheckSpace/#CheckSpace/' /etc/pacman.conf
# pacman-key --init && pacman-key --populate archlinux
was necessary.
Offline
Was this in your initial post when I read it and my brain exited at the earliest convenience? Thumbs up!
Offline
PS:
Thanks for the "nobody" tip.
Offline
You should just use makechrootpkg and makearchroot, rather than an adhoc approach like this.
https://wiki.archlinux.org/index.php/De … ean_Chroot
If for some reason you need to use the container for more than building, you can install the packages with makechrootpkg -I directly, or use arch-nspawn.
Last edited by Alad (2016-07-13 16:55:55)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline