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

Issues with creating chroot on NixOS #36

Open
qck4fun opened this issue Sep 16, 2024 · 1 comment
Open

Issues with creating chroot on NixOS #36

qck4fun opened this issue Sep 16, 2024 · 1 comment

Comments

@qck4fun
Copy link

qck4fun commented Sep 16, 2024

Hi,
I'm trying to use your script, but I'm encountering issues on the way. First I had to change version of deboostrap, because
version 1.0.128 is no longer present in the repository -> using 1.0.137 instead. I'm running on fresh installation of NixOS 23.11

But no matter what version of NixOS or debootstrap I use, I still encounter following issue when creating chroot:

...
I: Extracting zlib1g...
W: Failure trying to run: chroot "/opt/chroot" /bin/true
W: See /opt/chroot/debootstrap/debootstrap.log for details
chroot /opt/chroot unsucessful creation
InstallChroot->createChroot: run sudo rm -rf /opt/chroot and do it again

deboostrap.log looks like:

...
2024-09-16 18:15:02 URL:http://deb.debian.org/debian/pool/main/z/zlib/zlib1g_1.2.13.dfsg-1_i386.deb [82644/82644] -> "/opt/chroot//var/cache/apt/archives/partial/zlib1g_1%3a1.2.13.dfsg-1_i386.deb" [1]
/usr/share/debootstrap/functions: line 1142: chroot: command not found
/usr/share/debootstrap/functions: line 1148: grep: command not found
/usr/share/debootstrap/functions: line 1148: head: command not found
/usr/share/debootstrap/functions: line 1148: sed: command not found
/usr/share/debootstrap/functions: line 1148: cut: command not found

I'm not sure what I'm doing wrong..

Any advice?

Thank you!! :)

@qck4fun
Copy link
Author

qck4fun commented Dec 2, 2024

@ruyrybeyro have you by any chance had a moment to take a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant