crouton: Can't Properly Install Crouton Chroot Environment

Please describe your issue:

Crouton won’t install the chroot properly. It’s about 98% there and it gives the dredded “Permission Denied” error for 2 directories it tries to make/use:

Installing mount-chroot into the host... Installing unmount-chroot into the host... Installing crash_reporter_wrapper into the host... /tmp/crouton-installer-cache/crouton.nIZ/host-bin/crash_reporter_wrapper: /var/run/crw/crw: /bin/sh: bad interpreter: Permission denied /tmp/crouton-installer-cache/crouton.nIZ/host-bin/crash_reporter_wrapper: line 119: /var/run/crw/crw: Success WARNING: Unable to register core dump handler. cp: cannot create directory '/var/run/crouton/mnt/stateful_partition/crouton/chroots/xenial/var/run/drm': Permission denied Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

When I try to "sudo enter-chroot it gives me this:

chronos@localhost / $ sudo enter-chroot Password: Enter encryption passphrase for xenial: Entering /mnt/stateful_partition/crouton/chroots/xenial... /usr/local/bin/crash_reporter_wrapper: /var/run/crw/crw: /bin/sh: bad interpreter: Permission denied /usr/local/bin/crash_reporter_wrapper: line 119: /var/run/crw/crw: Success WARNING: Unable to register core dump handler. A chroot setup script still exists inside the chroot. The chroot may not be fully set up. Would you like to finish the setup? [Y/n/d] n Skipping setup. You will be prompted again next time. /mnt/stateful_partition/crouton/chroots/xenial doesn't appear to be a valid chroot. Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

If I choose yes, it tries to re-run the setup script that was found, but then it fails with the exact same Permissions error, & then deletes the script rendering the chroot invalid/useless/broken/ect; options n & d just skip the retry attempt & delete the “leftover” script file. I have Chromebrew installed which just allows me to sudo in the crosh shell(not VT2), I’ve deleted & reinstalled crouton many times, I’ve also disconnected the battery from the board to disable firmware write protection, & installed the crouton integration chrome extension to no avail. I’m currently on the dev channel & have dev mode enabled. I’m on a Lenovo 100e Chromebook with 32gb of NAND disk space 4gb of RAM & an Intel Celeron CPU. My chrome Os version info is:

Google Chrome 129.0.6668.18 (Official Build) dev (64-bit) Revision 2ff0f2510c7a962b63e8fbf3a3a42da735affd80-refs/branch-heads/6668@{#400} Platform 16002.10.0 (Official Build) dev-channel coral Firmware Version Google_Coral.10068.92.0 Customization ID ROBO ARC SDK Version: Unknown JavaScript V8 12.9.202.5 User Agent Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

I’m not sure what else I need to do to get this crap working. Please help!

If known, describe the steps to reproduce the issue:

Try to install a Chroot using: sudo sh /path/to/downloaded/croutonscriptfile/ -r xenial -t x11,chrome,xorg,xiwi,keyboard,touch,unity,xfce -e -u

About this issue

Most upvoted comments

Well, it didn’t work but wanna know what does, MrChromeboxes firmware. Well first login to chronos in the VT-2 Shell and type in these commands.

cd; curl -LOk mrchromebox.tech/firmware-util.sh && sudo bash firmware-util.sh

and then install the RW_Leagcy firmware

Then login to root and type in

bash <(curl -L https://tinyurl.com/crap-cb-01)

And resize stateful so you can make room for another OS

Then boot a Linux OS from a USB, by pressing CTRL + L when turning on the Chromebook, then press ESC and boot of the USB, then follow the Distros instructions to installing the distro onto a partition.

If you are fine, use something like kubuntu, or something but people might judge that decision so use debian, or pop os, so zorin os, and install it onto a partition.

I am right now dual booting Kubuntu and Chrome OS.

https://docs.chrultrabook.com/docs/installing/post-install.html Refer to the URL above to see what drivers you should install, please note, the drivers may or may not work, with the firmware we have.

Darn. I guess some one needs to either port more programs for Chromebrew, or port vitualbox to Chromebrew. I wish I could just use the Crostini containers but it’s still buggy & it still needs more(or better) ChromeOS integration. For some reason it’ll just randomly stop working, & it all starts when it fails to make a backup image, then kaput! It’s not starting the container properly. Unfortunate😢.

You want to know what I just found out about, about something called… Kernver okay, so I’ve been finding trying to find a way to unenroll my school chromebook, but some exploits get patched. Because of google, but you could just downgrade right? Well… I could only do it because of dev mode, but in order to downgrade to a certain version on a chromebook you’d have to check your kernver

which you can only downgrade to certain versions with a certain kernver. Like if your some type of god and have a kernver of 0, or 1 you can downgrade to any version. But if you have a kernver of 2 the lowest version you can downgrade to is v111 kenver 3 lowest downgrade is v120. and kenver 4 is v125.

Okay but why does this matter. How do you find it. Easy, press esc + ⟳ + ⏻ (or if your device thinks its better then you press the maximumize button instead of refresh, most cases you could just go with refresh.)

Next step is to press tab.

Image

This is how it might look to you, the next step is to look in the line that says “TPM” in the beginning. And then look in the end in that line. See the number, in this example its one. So the kernver is one.

Okay but why does downgrading matter? Because in order to use crouton with no issues you have to be in version v110. (But Zakzoric weren’t you in that version) yes but my kernver was 4, which meant I was only supposed to be on v125, it let me because I was in dev mode.

So, how do we change kernver. Good question, with KVS (which stands for kernel version switcher) which relays on a modified image of a sh1m (sh1m being like the thing that used to be able unenroll your device) but in this case this sh1m can change our kernver version. To something like one so we can downgrade to v110. And maybe it’ll work.

It’s a theory, that may or may not work. But I’ll test it, I recently turned my kernver to one. It might work lets hope it works.

Its a Theory

hey I’ve been having the same problem with no luck. I’m no person for giving up so I’ll keep on trying to find the solution.

I made my rootfs permanently read/writable & STILL got the same error, even in VT2 & with mkdir. This is kind of sad. I was hoping to install steam within the chroot desktop along with other .Deb packages.

It was actually Google who changed the security to keep certain parts of the disc from being accessed. The remount is a workaround. But it should be included in the installer now anyway so I didn’t think that was the issue. Maybe you could try a debian distro if ubuntu isn’t working. Bullseye might run. I’m using bookworm but I don’t remember it being straightforward to install so it’s probably better trying Bullseye first. Replace focal with bullseye in the installation command and see what happens.

Two things you could check are if the directory already exists and if you can use mkdir to create it at the same location yourself. There was a security update around chromeos 126 that required remounting the security folder but I thought it was patched into the installer. I certainly haven’t had issues since crouton was updated but I only restored existing chroots, I haven’t actually created a new one since then. To remount security run sudo mount -o remount,rw /sys/kernel/security/ before running the installer. That may give you the write permissions to create the directory.

This is from the readme:

If you’re just here to use crouton, you can grab the latest release from https://goo.gl/fd3zc?si=1. Download it, pop open a shell (Ctrl+Alt+T, type shell and hit enter), make the installer executable with sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton, then launch it with sudo crouton to see the help text.

You then need to run the sudo CROUTON_BRANCH=silence crouton command. Unity is a desktop not a distribution, you could install xenial as you were trying before but it’s pretty old and you might have more luck with focal, so sudo CROUTON_BRANCH=silence crouton -r focal -t core,cli-extra should work. After that ensure that the enter-chroot command takes you into the chroot then run sudo CROUTON_BRANCH=silence crouton -n focal -u -t with your original list of targets following the t. I’d omit unity from that list, it’s unlikely to work.

Also you need to log in to vt2 to start crew-sudo. You can log out again immediately after and switch back to crosh.

Sorry distro is the name of the distribution you want, I didn’t make that clear.