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

sed: can't read common/cras_messages.h: no such file or directory #4946

Open
reboun opened this issue Mar 13, 2023 · 53 comments
Open

sed: can't read common/cras_messages.h: no such file or directory #4946

reboun opened this issue Mar 13, 2023 · 53 comments

Comments

@reboun
Copy link

reboun commented Mar 13, 2023

Result of 'sudo edit-chroot -all':

name: xenial
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xenial...
crouton: version 1-20221126232257~master:ae594340
release: xenial
architecture: amd64
targets: xfce
host: version 15373.0.0 (Official Build) dev-channel octopus 
kernel: Linux localhost 4.14.254-20300-g04f9d4e19110 #1 SMP PREEMPT Sat Mar 4 20:21:26 PST 2023 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

I am very new to this stuff, so please be nice about it.

I keep having this issue and I cannot install a chroot:

sed: can't read common/cras_messages.h: No such file or directory
Failed to complete chroot setup.
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...
@Qwer-TeX
Copy link

Qwer-TeX commented Mar 16, 2023

I have the same issue. I'm pretty sure some people have this issue.

@GamerX999999999
Copy link

Same problem. I tried to install bionic and it gave me the same error
sed: can't read common/cras_messages.h: No such file or directory Failed to complete chroot setup. Unmounting /mnt/stateful_partition/crouton/chroots/bionic... Sending SIGTERM to processes under /mnt/stateful_partition/crouton/chroots/bionic...

@drinkcat
Copy link
Collaborator

drinkcat commented Apr 2, 2023

Yeah, the header files moved to include. There'll be bigger problems down the line here, that could be fixed by:
#4959

I wonder if we can just extract the src/include directory in src/cras/common and hope it works...

@drinkcat
Copy link
Collaborator

drinkcat commented Apr 2, 2023

@drinkcat
Copy link
Collaborator

drinkcat commented Apr 2, 2023

You could try this PR, second commit might fix it: 0d48e40

(none of this is tested -- at all)

@farkas93
Copy link

Hey guys, I am facing the same issue if I simply follow the readme. Was this issue resolved in any commit? Is it worth the hussle to try to build it from source? If anyone has tried yet, I'd appreciate the feedback :)

@NateTheClickbait
Copy link

I also got the software today and the code looks like it will work but I don't know how to use the code or " build it from the source" I would appreciate any help I can get.

@francorv961
Copy link

Hi guys! I have a similar problem. I have a Chromebook and I want to install ubuntu with xfce, but when I want to install crouton I have the next message:
sed: can't read common/cras_messages.h: No such file or directory
Failed to complete chroot setup.
I hope you can help me. Thanks

@calvinxp
Copy link

I have the same issue

sed: can't read common/cras_messages.h: No such file or directory
Failed to complete chroot setup.
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

@NateTheClickbait
Copy link

Who knows how to inject his code into crouton?

@jcclin
Copy link

jcclin commented Apr 30, 2023

I am having the same issue. In terms of targets, I tried xenial, focal & jammy, all bumped into the same problem.
Note the ChromeOS version is 112.

@zhaozqaa
Copy link

zhaozqaa commented May 6, 2023

hi!
I have same issue in chrome book to build crouton.
'sed: can't read common/cras_messages.h: No such file or directory
Failed to complete chroot setup.'
What is the solution to this problem? How to deal with this error?

@ruitian37
Copy link

I have the same issue
sed: can't read common/cras_messages.h: No such file or directory
Failed to complete chroot setup.
Unmounting /mnt/stateful_partition/crouton/chroots/

@daywalker247
Copy link

same here..

@jake01756
Copy link

jake01756 commented May 13, 2023

Okay I found a temporary solution!

Use this command when invoking crouton to use the silence branch:
sudo CROUTON_BRANCH=silence crouton

Ex: sudo CROUTON_BRANCH=silence crouton -u -r bullseye -t xfce

By the looks of things it appears that you will be without sound? I'm not quite sure. But hey it works.

@jcclin
Copy link

jcclin commented May 14, 2023

Thanks @jake01756

I can confirm
sudo CROUTON_BRANCH=silence crouton -r jammy -t xfce,xiwi
works for me.
I understand audio is unlikely to work but I am not depending on it.
(Asus Chromebook C204e, ChromeOS version 113.0.5672.114)

@TangerineTopaz
Copy link

TangerineTopaz commented May 19, 2023

Wait, I'm still confused. @jake01756 At what point in the set up are we running this? I ran into the error, and while I'm still in the shell, I tried running it, but "sudo CROUTON_BRANCH=silence crouton" just pulled up the normal install menu.

How do I know what things to add to the end of it? I'm trying to download xfce for Crouton too.

I'm extremely new to linux (doing my best!) so I apologize if I've missed something obvious.

@TangerineTopaz
Copy link

Edit: @jcclin 's suggestion worked - just... enter in said command while in shell (no need to clear out last attempt). Audio's definitely fried, but hey, it works! Wonder if there's a work around for sound?

(Considering how janky this is I'm assuming no, and various other distros already seem to have audio issues when it comes to running on Chromebooks).

@Qwer-TeX
Copy link

Qwer-TeX commented May 21, 2023

sudo CROUTON_BRANCH=silence crouton works! For now lets still get the job done without the audio and with the headphones.
The sound coming out of the speakers sounds like wood burning in a fire at a camp and is fried up like @TangerineTopaz said.

@Gorvetco
Copy link

Gorvetco commented May 21, 2023

_

I tried running it, but "sudo CROUTON_BRANCH=silence crouton" just pulled up the normal install menu.
How do I know what things to add to the end of it? I'm trying to download xfce for Crouton too.

_
So, its fairly straight forward actually. If you've already made a chroot that is currently incomplete, (and haven't specified a name for it (-n) then inevitably it will be named after the distro you chose to install. So all you'd need to do now at this point would be to update your chroot using the "-u" variable. So lets say the distro you chose was xenial and you said you wanted the xfce desktop environment. So therefore your command would look like this:

sudo CROUTON_BRANCH=silence crouton -u -r xenial -t xfce

Or lets say you deleted your chroot and you wanted to start a brand new one. You can do the same thing pretty much, only you'd drop the "-u" option since you won't be updating an already existing chroot. So in this case your command would look like this:

sudo CROUTON_BRANCH=silence crouton -r xenial -t xfce

So remember, you can interchange xenial with the distro of your choosing. Whether that be Ubuntu's focal, jammy, impish, kinetic, etc... Or whether you would like to use Debian's buster, bullseye, bookworm, sid, etc...
You can also add whatever other targets as well after the "-t" option, using a comma (no space) to separate each. Here's a few examples:

sudo CROUTON_BRANCH=silence crouton -r xenial -t xfce,xfce-desktop,core,keyboard,xiwi,x11,cli-extra,extension

@ClaudeJGreengrass
Copy link

Thanks @jake01756

I also can confirm
sudo CROUTON_BRANCH=silence crouton -r jammy -t xfce,xiwi
works for me.

@Mutmaheen001
Copy link

Thanks @jake01756

The code worked

@mio-19
Copy link

mio-19 commented Jun 3, 2023

You could try this PR, second commit might fix it: 0d48e40

(none of this is tested -- at all)

doesn't work

@GamerX999999999
Copy link

Okay I found a temporary solution!

Use this command when invoking crouton to use the silence branch: sudo CROUTON_BRANCH=silence crouton

Ex: sudo CROUTON_BRANCH=silence crouton -u -r bullseye -t xfce

By the looks of things it appears that you will be without sound? I'm not quite sure. But hey it works.

I got this "/usr/local/bin/crash_reporter_wrapper: 119: exec: /var/run/crw/crw: Permission denied
WARNING: Unable to register core dump handler."

@Qwer-TeX
Copy link

Qwer-TeX commented Jun 8, 2023

Okay I found a temporary solution!
Use this command when invoking crouton to use the silence branch: sudo CROUTON_BRANCH=silence crouton
Ex: sudo CROUTON_BRANCH=silence crouton -u -r bullseye -t xfce
By the looks of things it appears that you will be without sound? I'm not quite sure. But hey it works.

I got this "/usr/local/bin/crash_reporter_wrapper: 119: exec: /var/run/crw/crw: Permission denied WARNING: Unable to register core dump handler."

I got the same error while installing focal, and hiresuite. but Jammy gave me no error.

@powerCord154
Copy link

same issue here (sed: can't read common/cras_messages.h: No such file or directory)

@EPICTHUNDER123
Copy link

hey, same issue here and i am using a hp chromebook x360 with touchscreen. been looking for something that would work, jammy does work for my chromebook.

@EPICTHUNDER123
Copy link

update, it downloads but after it requires updates.

@EPICTHUNDER123
Copy link

still wont work now i getError: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Unable to start display, make sure the crouton extension is installed
and enabled, and up to date. (download from https://goo.gl/OVQOEt)
Running exit commands...
/usr/bin/xinit: connection to X server lost

waiting for X server to shut down Hangup
Hangup
Hangup
(II) Server terminated successfully (0). Closing log file.

Unmounting /mnt/stateful_partition/crouton/chroots/jammy...
Sending SIGTERM to processes under /mnt/stateful_partition/crouton/chroots/jammy...
chronos@localhost / $

@EPICTHUNDER123
Copy link

i get the error while launching xfce4

@Qwer-TeX
Copy link

Qwer-TeX commented Jun 26, 2023

hey, same issue here and i am using a hp chromebook x360 with touchscreen. been looking for something that would work, jammy does work for my chromebook.

What a coincidence. I've been using the same chromebook as you and you might have the same error as me!!

Can you tell me the ChromeOs version you are using and what channel it is on (i.e stable, beta, dev) so that we can relate?
And what command you used to create the chroot (i.e sudo CROUTON_BRANCH=silence crouton )?

Im curious if our identical chromebooks have the same issue or not depending on the version and commands.

@EPICTHUNDER123
Copy link

im using it on stable channel, enabled dev mode, version is Version 114.0.5735.143 (Official Build) (64-bit), I used the sudo CROUTON_BRANCH=silence crouton -r jammy -t xfce,xiwi command, could just be type of chromebook...

@sb294188
Copy link

I got past this by executing from /usr/local like this: sudo -cp ~/Downloads/crouton /usr/local, and then sudo sh /usr/local/crouton -kali-rolling.

@Qwer-TeX
Copy link

@EPICTHUNDER123
Im using ChromeOs 114.0.5735.239. We both have dev mode enabled and are on the stable channel. Our versions are similar and aren't the reason of such error.

Probably you didn't install the crouton browser extension. install it from here I don't know what it fully does but it has some debugging and logging features.

if it doesn't work then type sudo startxfce4 again, again, and again. And it worked in my case. I don't know the reason why it sometimes does that.

If it then doesn't work, then i I don't know what it could be. I know that its not the type of chromebook bc their software are mostly standard.

@EPICTHUNDER123
Copy link

I have the chrome extension but i should try spaming it, illl get back if it does not work :)

@EPICTHUNDER123
Copy link

so good news spamming worked once, now it jut shows green blue and red squares on the window...

@EPICTHUNDER123
Copy link

Screenshot 2023-07-28 3 01 18 PM

@EPICTHUNDER123
Copy link

all it says is

find_shm: Cannot connect to findnacl daemon. (Connection refused)
write_image: Cannot find shm, moving on...
find_shm: Cannot connect to findnacl daemon. (Connection refused)
write_image: Cannot find shm, moving on...
find_shm: Cannot connect to findnacl daemon. (Connection refused)
write_image: Cannot find shm, moving on...
find_shm: Cannot connect to findnacl daemon. (Connection refused)
write_image: Cannot find shm, moving on...
find_shm: Cannot connect to findnacl daemon. (Connection refused)
write_image: Cannot find shm, moving on...
find_shm: Cannot connect to findnacl daemon. (Connection refused)
write_image: Cannot find shm, moving on...
find_shm: Cannot connect to findnacl daemon. (Connection refused)
write_image: Cannot find shm, moving on...
find_shm: Cannot connect to findnacl daemon. (Connection refused)
write_image: Cannot find shm, moving on...
find_shm: Cannot connect to findnacl daemon. (Connection refused)
write_image: Cannot find shm, moving on...
find_shm: Cannot connect to findnacl daemon. (Connection refused)
write_image: Cannot find shm, moving on...
find_shm: Cannot connect to findnacl daemon. (Connection refused)
write_image: Cannot find shm, moving on...

@EPICTHUNDER123
Copy link

i've tried updating the ch root but it does nothing if you experience this then if possible tell me how to fix it!

@Qwer-TeX
Copy link

Qwer-TeX commented Jul 30, 2023

@EPICTHUNDER123
I see what happened, The startup script cannot find XFree86, X11 and Xorg used to show you the nice windows, menus, apps, icons, etc. if sudo enter-chroot works, and sudo startxfce4 doesn't work, then it cannot find the X Window System. to fix that update the chroot to include the targets x11, and xorg. I also suggest to install the core target because it contains core system configuration used to configure the X Window System. It should work, I guaranty it!

@NazagamerITA
Copy link

Okay I found a temporary solution!

Use this command when invoking crouton to use the silence branch: sudo CROUTON_BRANCH=silence crouton

Ex: sudo CROUTON_BRANCH=silence crouton -u -r bullseye -t xfce

By the looks of things it appears that you will be without sound? I'm not quite sure. But hey it works.

Thanks! it worked!

@EPICTHUNDER123
Copy link

this worked thank you, also one more question, if you are installing lunix apps on xfce4 do you need to enable lunix on your chromebook?

@DennisLfromGA
Copy link
Collaborator

DennisLfromGA commented Aug 4, 2023

@EPICTHUNDER123,

No, the Crostini / Linux development environment is completely separate and not needed for crouton.

It is a good alternative to crouton for some and does not require Developer mode.
You can check out the crouton author's note about it here:

-DennisLfromGA

@EPICTHUNDER123
Copy link

this was not what i was getting at, lets say you install minecraft on chromebook linux, would minecraft be on xfce4 too?

@DennisLfromGA
Copy link
Collaborator

@EPICTHUNDER123,

if you are installing lunix apps on xfce4 do you need to enable lunix on your chromebook?

Again, no. They are isolated, Crostini is in a VM in a container, it has nothing to do with the crouton chroot.

Lets say you install minecraft on chromebook linux, would minecraft be on xfce4 too?

No, see the above explanation.

-DennisLfromGA

@kiarog3
Copy link

kiarog3 commented Aug 15, 2023

I received the same error. Has anyone found another work around that doesn't affect the sound. I downloaded it using the unity interface.. and tried to start but received this message. I've also downloaded the crouton extension because somewhere said it would help.

@kiarog3
Copy link

kiarog3 commented Aug 15, 2023

also which interface is most preferred

@Qwer-TeX
Copy link

Xfce4 interface is most preferred because its lightweight and doesn't have eyecandy(animations) like unity. Usage of ram is about 354 MB for running crouton with xfce4 interface.

@brianwei20172218
Copy link

I ran into same problem...
I used to have positive feeling about chromebooks, but now gradually I feel it is trap :)
Once you get it, it so hard to go anywhere.

@redd-rl
Copy link

redd-rl commented Feb 27, 2024

Solved this issue personally by installing CRAS using chromebrew, "crew install cras" and then running crouton setup, knowledge only goes as far as ubuntu.

@2manyanchovies
Copy link

Solved this issue personally by installing CRAS using chromebrew, "crew install cras" and then running crouton setup, knowledge only goes as far as ubuntu.

Yo, I'm in a similar spot. I'm trying to download chromebrew to help fix this, but when I try to install it, it gives the error message "curl: (6) could not resolve host: Ls"

@redd-rl
Copy link

redd-rl commented Feb 29, 2024

dash ls. not Ls, -Ls.

@redd-rl
Copy link

redd-rl commented Feb 29, 2024

also i kinda lied i didn't get further than that i was forced to downgrade to chrome os 109 to advance, i installed unity image with targets xiwi,unity.

sudo CROUTON_BRANCH=silence crouton -t xiwi,unity
i think.
got me a barely working instance on chrome os 109, don't want to try updating to 121 again.

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