You are not logged in.

#1 2019-01-10 21:27:29

prosvetlyonniy
Banned
Registered: 2019-01-06
Posts: 25

[SOLVED] makechrootpkg: ERROR: /root/b/i/etc/makepkg.conf not found

I'm trying to build packages in a chroot environment according to the instructions here: https://wiki.archlinux.org/index.php/De … ean_chroot

# makechrootpkg -c -r $CHROOT
==> Synchronizing chroot copy [/root/b/root] -> [i]...done
==> ERROR: /root/b/i/etc/makepkg.conf not found.
    Aborting...
==> ERROR: Could not download sources.

At the same time, it is rather funny that this file is present:

# file /root/b/i/etc/makepkg.conf
/root/b/i/etc/makepkg.conf: a /hint/bash script, ASCII text executable

Last edited by prosvetlyonniy (2019-01-11 18:28:50)

Offline

#2 2019-01-10 22:02:08

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] makechrootpkg: ERROR: /root/b/i/etc/makepkg.conf not found

Why are you running this as root in the /root directory? Don't do that.

Ordinarily it's quite impossible for you to do what you just described, as the error comes from trying to run makepkg to download sources using the original user you used to run "sudo makechrootpkg", except there is none, so it would try to run makepkg to download sources as the root user and thusly die with a very different error message.

Did you use sudo bash to enter an interactive root shell? Don't do that either, and especially don't then try to store data files in /root.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2019-01-10 22:56:21

prosvetlyonniy
Banned
Registered: 2019-01-06
Posts: 25

Re: [SOLVED] makechrootpkg: ERROR: /root/b/i/etc/makepkg.conf not found

eschwartz wrote:

Why are you running this as root in the /root directory? Don't do that.

Ordinarily it's quite impossible for you to do what you just described, as the error comes from trying to run makepkg to download sources using the original user you used to run "sudo makechrootpkg", except there is none, so it would try to run makepkg to download sources as the root user and thusly die with a very different error message.

Did you use sudo bash to enter an interactive root shell? Don't do that either, and especially don't then try to store data files in /root.

I use the su command.

Yes, it turns out that I missed the $ sign at the beginning of the commands in the documentation and did everything from the root, now everything works when done from a regular user

Offline

#4 2019-01-11 00:22:47

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] makechrootpkg: ERROR: /root/b/i/etc/makepkg.conf not found

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB