You are not logged in.

#1 2016-07-13 15:51:20

Carl Karl
Member
Registered: 2013-06-12
Posts: 231

[solved]install AUR package in arch32-chroot created with arch32-light

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

#2 2016-07-13 16:16:45

Awebb
Member
Registered: 2010-05-06
Posts: 6,291

Re: [solved]install AUR package in arch32-chroot created with arch32-light

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

#3 2016-07-13 16:17:13

Carl Karl
Member
Registered: 2013-06-12
Posts: 231

Re: [solved]install AUR package in arch32-chroot created with arch32-light

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

#4 2016-07-13 16:18:10

Awebb
Member
Registered: 2010-05-06
Posts: 6,291

Re: [solved]install AUR package in arch32-chroot created with arch32-light

I responded to your post while you were posting. Bump for your attention, in case you miss it.

Offline

#5 2016-07-13 16:33:21

Carl Karl
Member
Registered: 2013-06-12
Posts: 231

Re: [solved]install AUR package in arch32-chroot created with arch32-light

Awebb wrote:

Don't try to build a package as root.

Done. See initial post.

Awebb wrote:

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

#6 2016-07-13 16:41:05

Awebb
Member
Registered: 2010-05-06
Posts: 6,291

Re: [solved]install AUR package in arch32-chroot created with arch32-light

Was this in your initial post when I read it and my brain exited at the earliest convenience? Thumbs up!

Offline

#7 2016-07-13 16:46:53

Carl Karl
Member
Registered: 2013-06-12
Posts: 231

Re: [solved]install AUR package in arch32-chroot created with arch32-light

PS:
Thanks for the "nobody" tip.

Offline

#8 2016-07-13 16:55:09

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: [solved]install AUR package in arch32-chroot created with arch32-light

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

Board footer

Powered by FluxBB