drinkcat / chroagh

Chromium OS Archlinux Chroot Environment
BSD 3-Clause "New" or "Revised" License
241 stars 27 forks source link

chroot: failed to run command '/prepare.sh': No such file or directory #110

Open rostopira opened 8 years ago

rostopira commented 8 years ago

chroot: failed to run command '/prepare.sh': No such file or directory Failed to complete chroot setup. Unmounting /mnt/stateful_partition/crouton/chroots/arch...

Any workaround? version 18cc180

JKobyP commented 8 years ago

I'm experiencing the same thing, was quite a headache yesterday...

crispmark commented 8 years ago

Same thing happening to me as well.

crispmark commented 8 years ago

One way to get around this if you just need it installed, is to use an older repo like https://archive.archlinux.org/repos/2016/02/01/$repo/os/$arch, and then update.

elkangaroo commented 8 years ago

I managed to solve this issues with fix 7b5720c0f0d0f4e2a800b1cf216369843c4061da in my fork, everything installs fine, even with current archlinux mirror. All the non-graphical targets seem to work great, but I did not get X.org to work yet (Acer Chromebook C720).

crispmark commented 8 years ago

Try using something like: sudo sh -e installer/main.sh -m ' https://archive.archlinux.org/repos/2016/02/01/$repo/os/$arch' -r arch -t xfce

You will need to update your mirrors once you install, else it will constantly check the old repo for updates.

2016-03-26 7:12 GMT-04:00 Arthur Wu notifications@github.com:

@crispmark https://github.com/crispmark Hey,bro.. Referred to use an older repo like https://archive.archlinux.org/repos/2016/02/01/%24repo/os/%24arch .. what exact command shall i type??

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/drinkcat/chroagh/issues/110#issuecomment-201763828

Arthurwu24 commented 8 years ago

@crispmark .. U mean do a "pacman -Syu" once when i finish the install ??

crispmark commented 8 years ago

@Arthurwu24 unfortunately that didn't work for me and it wouldn't update the mirror. You might need to edit /etc/pacman.d/mirrorlist.

Arthurwu24 commented 8 years ago

@crispmark . I use the repo u posted,but actually im in china,there is something i can't download cause the slow speed . Then i want to choose another mirror that fast here. Like this one.http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch. but i still got the issue tar: .BUILDINFO: Cannot open: File exists .. so what shall i do an exact command here? Thx

crispmark commented 8 years ago

@Arthurwu24 The arch linux archive stores snapshots of the repositories, and this is how we are able to install a previous version. If you want to use this download strategy with a local chinese server, you will need to find one that hosts arch linux archives, rather than a current one. I am not sure that such a server exists however.

You might want to try using the fork posted by @elkangaroo, and just specify xiwi, xfce as the targets, and your chinese server as the mirror.

Arthurwu24 commented 8 years ago

@crispmark I have done that. Tried the fork posted by @elkangaroo . But in his page of chroagh... The command line is the same as drinkcat's .. so i got the same issue.. Could u tell me the exact command if i use his fork??

Arthurwu24 commented 8 years ago

@crispmark .. Okay,buddy. I change the server to http://seblu.net/a/archive/repos/2016/02/01//$repo/os/$arch ...and installed all the packages successfully... But when i enter 'sudo startxfce4',i got the issue showed like this..

Not unmounting /mnt/stateful_partition/crouton/chroots/arch as another instance is using it. The chroot setup script may be broken. Your chroot is not fully configured. Removing the chroot setup script. You may want to update your chroot again. UID 1000 not found in arch Not unmounting /mnt/stateful_partition/crouton/chroots/arch as another instance is using it.

ps: I got network interruped once when it is install linux kernel , but then i restart the command ..and eveything works fine, the packages installed completely....