You are not logged in.

#1 2021-03-23 17:58:24

Kandelborg
Member
From: Denmark
Registered: 2019-09-05
Posts: 15

Pacman in arch-chroot halts

I tried installing yay, but it just halted, now i installed linux-xanmod

I had to - for some reason - create a user with a homedirectory to even run makepkg but it just stops doing things at e.g.:

Installing linux-xandmod package group with pacman -U...

And now it's just not getting anywhere and I had the same experience when it needed dependencies, it just stopped at installing them, didnt do anything, I canceled it.. then saw the actual missing dependencies it was missing, installed those and I then got further on my installation. I couldn't install yay either because it just froze doing the install and I decided to try my luck with xanmod again.

There's a warning: Package contains reference to $srcdir

But that's it. It exited fakeroot environment, Finished making my package, and now just has that message for what I'm guessing is an indefinite amount of time. Normally I dont have these problems pacman nor yay.

Offline

#2 2021-03-23 17:59:59

Kandelborg
Member
From: Denmark
Registered: 2019-09-05
Posts: 15

Re: Pacman in arch-chroot halts

I'm writing on mobile, my computer is borked. I apologise bad grammar.

It's not a slow computer, I'm certain it would have continued given no other problems.

Offline

#3 2021-03-24 00:49:47

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Pacman in arch-chroot halts


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2021-03-24 00:52:50

Kandelborg
Member
From: Denmark
Registered: 2019-09-05
Posts: 15

Re: Pacman in arch-chroot halts

Using CTRL+C actually finished the process, and completed the installation. I waited for 2 and a half hours before doing this.

Is this closer to a bug, than weird usage of arch-chroot? I am very baffled by this behavior, which wasn't a one-off thing. I'll try and do this again, maybe record a video and post a link here to provide some visual context - is a VOD even considered useful for this - I can't really provide better information. Maybe besides formatting my OP to be a bit more explicit, but it should get the point across.

If you want logs, which logs, and how should I save them to avoid a manual copy?

Offline

#5 2021-03-24 00:54:55

Kandelborg
Member
From: Denmark
Registered: 2019-09-05
Posts: 15

Re: Pacman in arch-chroot halts

You posted just before I did it seems. I have already done this step... pacman just stops and won't continue without a CTRL+C, which either exits the process or continues.

Also, what's with `makepkg` not being able to run as root? I don't get it.

Offline

#6 2021-03-24 01:00:23

Mrhawkbox
Member
Registered: 2020-11-23
Posts: 63

Re: Pacman in arch-chroot halts

Kandelborg wrote:

You posted just before I did it seems. I have already done this step... pacman just stops and won't continue without a CTRL+C, which either exits the process or continues.

Also, what's with `makepkg` not being able to run as root? I don't get it.

Because the dependencies will go in root and you will only be able to run the mkpkg software you installed in root. That's a big security no  no.

Offline

#7 2021-03-24 01:04:09

Kandelborg
Member
From: Denmark
Registered: 2019-09-05
Posts: 15

Re: Pacman in arch-chroot halts

Mrhawkbox wrote:
Kandelborg wrote:

Also, what's with `makepkg` not being able to run as root? I don't get it.

Because the dependencies will go in root and you will only be able to run the mkpkg software you installed in root. That's a big security no  no.

Who cares about security, especially when you know the software is only run with root? I mean, I agree, but why isn't it possible? 'security no no' isn't really a thing in my book here. I need some actual reasoning, not just an explanation as to what doing the suggested thing results in.

Last edited by Kandelborg (2021-03-24 01:05:13)

Offline

#8 2021-03-24 01:38:22

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: Pacman in arch-chroot halts

Let’s avoid useless rants about why makepkg is designed to deny usage as root shall we?

It was made to not require root privileges and if you don’t like it then just delete the lines that force you to be non-root, eventually you will hit the reason of why it was made as it is.

...

Back to the topic, use redirection to save the output of the commands and give further details, anything that could help to understand what is the root of the issue.


My reposSome snippets

Heisenberg might have been here.

Offline

#9 2021-03-24 01:45:57

Mrhawkbox
Member
Registered: 2020-11-23
Posts: 63

Re: Pacman in arch-chroot halts

Kandelborg wrote:
Mrhawkbox wrote:
Kandelborg wrote:

Also, what's with `makepkg` not being able to run as root? I don't get it.

Because the dependencies will go in root and you will only be able to run the mkpkg software you installed in root. That's a big security no  no.

Who cares about security, especially when you know the software is only run with root? I mean, I agree, but why isn't it possible? 'security no no' isn't really a thing in my book here. I need some actual reasoning, not just an explanation as to what doing the suggested thing results in.

I'd like to know how you came to the conclusion why you can only run mkpkg software in root?

Offline

#10 2021-03-24 01:51:35

Mrhawkbox
Member
Registered: 2020-11-23
Posts: 63

Re: Pacman in arch-chroot halts

Kandelborg wrote:
Mrhawkbox wrote:
Kandelborg wrote:

Also, what's with `makepkg` not being able to run as root? I don't get it.

Because the dependencies will go in root and you will only be able to run the mkpkg software you installed in root. That's a big security no  no.

Who cares about security, especially when you know the software is only run with root? I mean, I agree, but why isn't it possible? 'security no no' isn't really a thing in my book here. I need some actual reasoning, not just an explanation as to what doing the suggested thing results in.

Ok let me explain. You don't want unkown code taking free reign of the root system before you get to look at the actual code before it gains access to root.That's why its designed that way.

Offline

#11 2021-03-24 01:54:51

Kandelborg
Member
From: Denmark
Registered: 2019-09-05
Posts: 15

Re: Pacman in arch-chroot halts

GaKu999 wrote:

use redirection

Given this isn't a package I could find (https://archlinux.org/packages/?sort=&q … =&flagged=)

I'm guessing you're talking about using a procedure to get the output of the command run and save it as a file I can then save to a hard disk; then access that hard disk from a computer with a browser to post the output? I've never copied the output of running a command from an arch-chroot terminal before, do you have some suggestions, before I go on to spend a great deal of time figuring this out by myself? You might even have the exact command I'd need available, just waiting for me to install X and try to recreate my problem using this program and command.

Offline

#12 2021-03-24 01:59:09

Kandelborg
Member
From: Denmark
Registered: 2019-09-05
Posts: 15

Re: Pacman in arch-chroot halts

Mrhawkbox wrote:

Ok let me explain. You don't want unkown code taking free reign of the root system before you get to look at the actual code before it gains access to root.That's why its designed that way.

You provide no useful information. I'm already aware of this, and the thread wasn't created to talk about makepkg restraining its usage. I have no use of a double post in 6 minutes about a topic this thread wasn't created to talk about. I was simply annoyed I had to create a user to install programs with makepkg. Please refrain from commenting further on this thread unless you're going to provide help or otherwise contribute to what this is originally about.

Offline

#13 2021-03-24 02:04:30

Mrhawkbox
Member
Registered: 2020-11-23
Posts: 63

Re: Pacman in arch-chroot halts

Kandelborg wrote:
GaKu999 wrote:

use redirection

Given this isn't a package I could find (https://archlinux.org/packages/?sort=&q … =&flagged=)

I'm guessing you're talking about using a procedure to get the output of the command run and save it as a file I can then save to a hard disk; then access that hard disk from a computer with a browser to post the output? I've never copied the output of running a command from an arch-chroot terminal before, do you have some suggestions, before I go on to spend a great deal of time figuring this out by myself? You might even have the exact command I'd need available, just waiting for me to install X and try to recreate my problem using this program and command.

Have you tried install yay from the git repositor and using git clone?

Offline

#14 2021-03-24 02:06:12

Mrhawkbox
Member
Registered: 2020-11-23
Posts: 63

Re: Pacman in arch-chroot halts

Kandelborg wrote:
Mrhawkbox wrote:

Ok let me explain. You don't want unkown code taking free reign of the root system before you get to look at the actual code before it gains access to root.That's why its designed that way.

You provide no useful information. I'm already aware of this, and the thread wasn't created to talk about makepkg restraining its usage. I have no use of a double post in 6 minutes about a topic this thread wasn't created to talk about. I was simply annoyed I had to create a user to install programs with makepkg. Please refrain from commenting further on this thread unless you're going to provide help or otherwise contribute to what this is originally about.

Ok, awesome! to be fair I had no way of knowing this. This is the newbie section after all. I cant assume anybody knows anything you know?

Offline

#15 2021-03-24 02:22:35

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: Pacman in arch-chroot halts

Kandelborg wrote:
GaKu999 wrote:

use redirection

Given this isn't a package I could find (https://archlinux.org/packages/?sort=&q … =&flagged=)

I'm guessing you're talking about using a procedure to get the output of the command run and save it as a file I can then save to a hard disk; then access that hard disk from a computer with a browser to post the output? I've never copied the output of running a command from an arch-chroot terminal before, do you have some suggestions, before I go on to spend a great deal of time figuring this out by myself? You might even have the exact command I'd need available, just waiting for me to install X and try to recreate my problem using this program and command.

Shell redirection, the likes of > and such, it will take a little reading but when you get it you will be able to provide outputs.


My reposSome snippets

Heisenberg might have been here.

Offline

#16 2021-03-24 02:24:55

Mrhawkbox
Member
Registered: 2020-11-23
Posts: 63

Re: Pacman in arch-chroot halts

GaKu999 wrote:
Kandelborg wrote:
GaKu999 wrote:

use redirection

Given this isn't a package I could find (https://archlinux.org/packages/?sort=&q … =&flagged=)

I'm guessing you're talking about using a procedure to get the output of the command run and save it as a file I can then save to a hard disk; then access that hard disk from a computer with a browser to post the output? I've never copied the output of running a command from an arch-chroot terminal before, do you have some suggestions, before I go on to spend a great deal of time figuring this out by myself? You might even have the exact command I'd need available, just waiting for me to install X and try to recreate my problem using this program and command.

Shell redirection, the likes of > and such, it will take a little reading but when you get it you will be able to provide outputs.

Woops sorry my last post was incomplete before I posted it. I meant to say did you use git clone and changing the user group with chown***

Last edited by Mrhawkbox (2021-03-24 02:25:15)

Offline

#17 2021-03-24 02:34:46

Mrhawkbox
Member
Registered: 2020-11-23
Posts: 63

Re: Pacman in arch-chroot halts

Mrhawkbox wrote:
Kandelborg wrote:
Mrhawkbox wrote:

Ok let me explain. You don't want unkown code taking free reign of the root system before you get to look at the actual code before it gains access to root.That's why its designed that way.

You provide no useful information. I'm already aware of this, and the thread wasn't created to talk about makepkg restraining its usage. I have no use of a double post in 6 minutes about a topic this thread wasn't created to talk about. I was simply annoyed I had to create a user to install programs with makepkg. Please refrain from commenting further on this thread unless you're going to provide help or otherwise contribute to what this is originally about.

Ok, awesome! to be fair I had no way of knowing this. This is the newbie section after all. I cant assume anybody knows anything you know?

Also you mentioned creating a new user did you remember to add it to the sudoers file?

Offline

#18 2021-03-24 03:04:54

Kandelborg
Member
From: Denmark
Registered: 2019-09-05
Posts: 15

Re: Pacman in arch-chroot halts

Mrhawkbox wrote:
Mrhawkbox wrote:
Kandelborg wrote:

You provide no useful information. I'm already aware of this, and the thread wasn't created to talk about makepkg restraining its usage. I have no use of a double post in 6 minutes about a topic this thread wasn't created to talk about. I was simply annoyed I had to create a user to install programs with makepkg. Please refrain from commenting further on this thread unless you're going to provide help or otherwise contribute to what this is originally about.

Ok, awesome! to be fair I had no way of knowing this. This is the newbie section after all. I cant assume anybody knows anything you know?

Also you mentioned creating a new user did you remember to add it to the sudoers file?

All fine! No hard feelings smile

I really did have to add the user to the sudoers file in order to use pacman properly, so yes, after being told my user wasn't in that file and me running the command to install again (after editing my user to be included via visudo).

For more information: I did succeed in installing xanmod, I copied the git URL provided by the package page (https://aur.archlinux.org/packages/linux-xanmod/) and after waiting for two and a half hours for the pacman to finish the install, then CTRL+C'ing in hopelessness, only for pacman - to my big surprise - to install some dependencies and finish the installation. I decided to not bother more with that installation and format the harddisk.

My initial problem is something I'm going to try and recreate, then post the output made with shell-redirection, but I'm unsure if I'm actually going to have the same behavior with an > as without. Oh well, this is the first thing I'm going to try anyway; I'm currently reading https://www.gnu.org/software/bash/manua … tions.html and will afterward read here: https://tldp.org/LDP/abs/html/io-redirection.html and hope to gain the knowledge I need to do this in native bash!

Offline

#19 2021-03-24 03:17:07

Mrhawkbox
Member
Registered: 2020-11-23
Posts: 63

Re: Pacman in arch-chroot halts

Kandelborg wrote:
Mrhawkbox wrote:
Mrhawkbox wrote:

Ok, awesome! to be fair I had no way of knowing this. This is the newbie section after all. I cant assume anybody knows anything you know?

Also you mentioned creating a new user did you remember to add it to the sudoers file?

All fine! No hard feelings smile

I really did have to add the user to the sudoers file in order to use pacman properly, so yes, after being told my user wasn't in that file and me running the command to install again (after editing my user to be included via visudo).

For more information: I did succeed in installing xanmod, I copied the git URL provided by the package page (https://aur.archlinux.org/packages/linux-xanmod/) and after waiting for two and a half hours for the pacman to finish the install, then CTRL+C'ing in hopelessness, only for pacman - to my big surprise - to install some dependencies and finish the installation. I decided to not bother more with that installation and format the harddisk.

My initial problem is something I'm going to try and recreate, then post the output made with shell-redirection, but I'm unsure if I'm actually going to have the same behavior with an > as without. Oh well, this is the first thing I'm going to try anyway; I'm currently reading https://www.gnu.org/software/bash/manua … tions.html and will afterward read here: https://tldp.org/LDP/abs/html/io-redirection.html and hope to gain the knowledge I need to do this in native bash!

Great!!! That was going to be my next question. How did you add it to the sudoers lmao XD.

Offline

Board footer

Powered by FluxBB