Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blackarch-isntall chroot: failed to run command #2872

Closed
ghost opened this issue Oct 15, 2020 · 14 comments
Closed

blackarch-isntall chroot: failed to run command #2872

ghost opened this issue Oct 15, 2020 · 14 comments

Comments

@ghost
Copy link

ghost commented Oct 15, 2020

Wen runing blackarch-install all goes well untill it is starting to install the base system then it gets stuck in a infinity loop that says
Chroot: failed to run command passwd : No such file or directory

@ghost ghost added the type::bug Valid bug label Oct 15, 2020
Edu4rdSHL added a commit to BlackArch/blackarch-installer that referenced this issue Oct 15, 2020
There's a problem causing issues like BlackArch/blackarch#2872, I guess that something with PATH gets fucked in the chroot environment and we need to use the full path for the command.
@Edu4rdSHL
Copy link
Contributor

@kylian001 thanks for reporting. Can you please follow the instructions listed here and tell me if this works now?

@ghost
Copy link
Author

ghost commented Oct 15, 2020

well i dont even set the root passwd yet it automaticly goes forward and hits that error. any work around?

[+] setting up root account

cp: cannot create directory `/mnt/root/.` No such file or directory

then the error apears.

edit: I will try your instructions

@Edu4rdSHL
Copy link
Contributor

Seeing that message, I assume that the problem is because there was an error when mounting the filesystems but the installer continued despite it. This problem should be fixed with BlackArch/blackarch-installer@8589e72 and BlackArch/blackarch-installer@fd7f043.

I have updated the blackarch-installer package and should be in the repos soon. I will levae this issue open until I receive confirmation from you.

@ghost
Copy link
Author

ghost commented Oct 15, 2020

Seeing that message, I assume that the problem is because there was an error when mounting the filesystems but the installer continued despite it. This problem should be fixed with BlackArch/blackarch-installer@8589e72 and BlackArch/blackarch-installer@fd7f043.

I have updated the blackarch-installer package and should be in the repos soon. I will levae this issue open until I receive confirmation from you.

I have used the git version and that seem to work. i dont use the repo version because i have to do pacman -Syu before it and that takes ages because of the thousonds of errors.

@Edu4rdSHL
Copy link
Contributor

No problem, I assume this issue is fixed, if you get it again, let me know to re-open.

Thank you for reporting.

@JoeStagner
Copy link

Using the lasted iso installing in Virtualbox on a Mac I still get this error loop.

Can anyone advise a work around ?

@ikstream
Copy link
Member

ikstream commented Nov 9, 2021

Have you tried updating the installer before using it?
Did you get the iso from blackarch.org?
Which version is it (Datestring, netinstall/full)?

If it doesn't help, you could also try the calamaris installer on the slim iso.

@noraj
Copy link
Contributor

noraj commented Nov 11, 2021

Which kind of Mac is it? New ones with M1 (ARM) chips?

@tomshoo
Copy link

tomshoo commented Feb 16, 2022

Using the lasted iso installing in Virtualbox on a Mac I still get this error loop.

Can anyone advise a work around ?

I tried running the installer on Windows 11 too... chroot still failed.
I used the netinstall ISO, the datestring was 2021.09.01.
Architecture is x86-64

@ikstream
Copy link
Member

Please run pacman -Syy archlinux-keyring blackarch-keyring before running the installer

@oscar230
Copy link

Please run pacman -Syy archlinux-keyring blackarch-keyring before running the installer

Thanks, this solved the problem for me with blackarch-linux-netinst-2021.09.01-x86_64.

@dualfade
Copy link
Contributor

dualfade commented Apr 23, 2022 via email

@Zuribraya2020
Copy link

Zuribraya2020 commented Sep 3, 2022

Created a GitHub account just to say thanks and that this worked. Please run pacman -Syy archlinux-keyring blackarch-keyring before running the installer. Arc x86_64

@rmcmillan34
Copy link

rmcmillan34 commented Nov 24, 2022

Hey all,
If you cannot run pacman -Syy archlinux-keyring blackarch-keyring because you don't have your network configured. Run the blackarch-install installer up until the network is configured then CTRL+C to interrupt the installer, then run the pacman command.
Install worked like a charm after that.

@BlackArch BlackArch locked as resolved and limited conversation to collaborators Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants