drinkcat / chroagh

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

UID 1000 not found in arch #113

Open delevrything opened 8 years ago

delevrything commented 8 years ago

So I managed to install the entire thing however when I manage to use the enter-chroot command it gives me this

chronos@localhost / $ sudo enter-chroot Password: Entering /mnt/stateful_partition/crouton/chroots/arch... UID 1000 not found in arch Unmounting /mnt/stateful_partition/crouton/chroots/arch...

My model is the acer C720, any ideas?

ghost commented 8 years ago

Same problem here. Does anyone know how to approach a fix here? What I know so far is that main.sh stops a little oddly: (40/40) installing which [################################################] 100% Not unmounting /mnt/stateful_partition/crouton/chroots/arch as another instance is using it. Not unmounting /mnt/stateful_partition/crouton/chroots/arch as another instance is using it.

and sudo enter-chroot then exits with (after it asks to finish the chroot setup)

common/cras_config.c: In function 'cras_config_get_system_socket_file_dir': common/cras_config.c:16:9: error: 'CRAS_SOCKET_FILE_DIR' undeclared (first use in this function) return CRAS_SOCKET_FILE_DIR; ^ common/cras_config.c:16:9: note: each undeclared identifier is reported only once for each function it appears in common/cras_config.c:17:1: error: control reaches end of non-void function [-Werror=return-type] } ^ cc1: all warnings being treated as errors Failed to complete chroot setup. 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.

cczysz commented 8 years ago

Try

sudo enter-chroot -n arch -u root

and see if that works

ajoboe commented 6 years ago

I'm having the same problem and tried

sudo enter-chroot -n arch -u root

as @cczysz suggested, but no dice. At the very end of the install, I got the following message chroot: failed to run command 'su': Permission denied

When I ran this sudo enter-chroot -n arch -u root

I got this Entering /mnt/stateful_partition/crouton/chroots/arch... 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] y Preparing chroot environment... ln: failed to access '/var/run/crouton/mnt/stateful_partition/crouton/chroots/arch/etc/resolv.conf': Permission denied 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. ln: failed to access '/var/run/crouton/mnt/stateful_partition/crouton/chroots/arch/etc/resolv.conf': Permission denied Unmounting /mnt/stateful_partition/crouton/chroots/arch...

Any thoughts?