crouton: chroot install - sed: can't read tests/cras_test_client
chronos@localhost ~/Downloads $ sudo edit-chroot -all
name: xenial
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xenial...
WARNING: Unable to register core dump handler.
crouton: version 1-20190710132432~master:7e345389
release: xenial
architecture: amd64
targets: xfce
host: version 12345.0.0 (Official Build) dev-channel cave
kernel: Linux localhost 3.18.0-19718-g3647ead2beb2 #1 SMP PREEMPT Sun Jul 14 21:59:29 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...
Trying to install a fresh chroot.
sudo ~/Downloads/crouton -t xfce
...
The following packages were automatically installed and are no longer required:
libasound2-dev:i386 libc6-dev:i386 libglib2.0-0 libspeex-dev:i386 libspeex1:i386 libspeexdsp-dev:i386 linux-libc-dev:i386 pkg-config
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sed: can't read tests/cras_test_client.c: No such file or directory
Failed to complete chroot setup.
sh: 0: /tmp/crouton.GLr/host-bin/unmount-chroot: warning: script from noexec mount; see https://chromium.googlesource.com/chromiumos/docs/+/master/security/noexec_shell_scripts.md
/tmp/crouton.GLr/host-bin/unmount-chroot: 42: .: /tmp/crouton.GLr/host-bin/../installer/functions: warning: script from noexec mount; see https://chromium.googlesource.com/chromiumos/docs/+/master/security/noexec_shell_scripts.md
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...
also fails after sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton and running crouton instead of ~/Downloads/crouton
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (1 by maintainers)
Commits related to this issue
- Fix cras_test_client location cras_test_client was moved in https://chromium.googlesource.com/chromiumos/third_party/adhd/+/fa57a35405f3ce722f5a973acca012a30fd19762 Fixes #4098 — committed to dnschneid/crouton by dnschneid 5 years ago
- Fix cras_test_client location cras_test_client was moved in https://chromium.googlesource.com/chromiumos/third_party/adhd/+/fa57a35405f3ce722f5a973acca012a30fd19762 Fixes #4098 — committed to dnschneid/crouton by dnschneid 5 years ago
GOOD NEWS!!! I GOT IT!!
So based on @slimsh0tty the channel is part of the issue. So here’s my break down for everyone.
-Power washed my chromebook; -Put chromebook into Dev-mode; -Logged in and went to settings -> About Chrome OS -> Detailed Build Info -> Change channel to Stable;
Now that we’re back into a Dev-mode and stable channel chromebook we can almost start the crouton installation, but we need to do a few things.
-First we need to ‘sudo mkdir /usr/local/bin’ if that directory isnt already there; -Secondly I had to do this to create a directory within chroot that I didnt have ‘’/var/run/crouton/mnt/stateful_partition/crouton/chroots/xenial/var’’ (replace xenial with what ever target you choose for the crouton flavor); -Thirdly you have to run the “sudo mount -o remount,exec /tmp” ;(Note on that one, chromeOS had a new update that essentially for security wont let you run executables from just any directory, so you had to flip the NOEXEC flag on /tmp to executable);
From there you should be good to go! Hope this helps @niveknosredneh