sudo edit-chroot -all
chronos<strong i="7">@localhost</strong> ~/Downloads $ sudo edit-chroot -all
No chroots found in /mnt/stateful_partition/crouton/chroots
我将我的 chroot 从我的内部驱动器移动到我的 SD 卡,任务成功完成。 当我运行 sudo startxfce4 时,我收到与上面相同的错误“No chroots ....”
当我尝试更新 chroot 时,我收到错误“符号链接太多”。 请参阅下面的输出
此外,当我按照本指南How-To-Install-To-External-Drive 进行操作时,我在全新安装过程中收到“太多符号链接”的相同错误
sudo crouton -n kali-rolling -p /media/removable/SD\ Card -u
/media/removable/SD Card/chroots/kali-rolling already exists; updating it...
Preparing chroot environment...
Installing brightness into the chroot...
Installing croutonpowerd into the chroot...
Installing croutonversion into the chroot...
Installing host-dbus into the chroot...
Installing host-wayland into the chroot...
Installing volume into the chroot...
Installing pulseaudio-default.pa into the chroot...
Installing croutoncycle into the chroot...
Installing croutontriggerd into the chroot...
Installing croutonxinitrc-wrapper into the chroot...
Installing setres into the chroot...
Installing xinit into the chroot...
Installing xbindkeysrc.scm into the chroot...
Installing xorg-intel-sna.conf into the chroot...
Installing xserverrc into the chroot...
Installing xserverrc-xorg into the chroot...
Installing xserverrc-local.example into the chroot...
Installing startxfce4 into the host...
Installing crouton-noroot into the chroot...
Installing startxfce4 into the chroot...
cp: failed to access '/var/run/crouton/media/removable/SD Card/chroots/kali-rolling/usr/local/bin/startxfce4': Too many levels of symbolic links
@鸭955 ,
我将我的 chroot 从我的内部驱动器移动到我的 SD 卡,任务成功完成。
如果您只是在从外部媒体启动桌面时遇到问题,请查看此评论,这可能有助于解决您的问题:
希望这可以帮助,
-丹尼斯LfromGA
@DennisLfromGA谢谢你的回复
我根据您链接的问题和 startxfce4 的帮助菜单运行了启动命令。 下面是我的输出。
chronos<strong i="8">@localhost</strong> /media/removable/SD Card $ sudo startxfce4 -c /media/removable/SD\ Card/chroots
Entering /media/removable/SD Card/chroots/kali-rolling...
chroot: failed to run command 'su': Too many levels of symbolic `links`
WARNING: starting chroot system dbus daemon failed with code 126
chroot: failed to run command 'su': Too many levels of symbolic links
Unmounting /media/removable/SD Card/chroots/kali-rolling...
此外,当关注 xfce4 wiki 时,设置将无法完成。 它也因符号链接过多而失败。
sudo enter-chroot /media/remove/sd card/chroot/chrootname?
我刚刚在 SD 卡上使用 chroot 时遇到了同样的问题。 花了太长时间进行故障排除,但看起来问题(至少对我而言)是 SD 卡正在使用nosymfollow
选项安装:
# mount|grep 'SD Card'
/dev/mmcblk1p1 on /media/removable/SD Card type ext4 (rw,nosuid,nodev,relatime,nosymfollow,dirsync,seclabel,data=ordered)
如果我用mount -o remount,symfollow /media/removable/SD\ Card/
删除它,一切都会再次运行。 nosymfollow
选项可防止跟随符号链接,这会触发与chroot
混淆的消息。 我已经在重新安装 SD 卡以删除noexec
标志,所以我只是将它添加到我的首次运行后重启仪式中。 现在有点不便,但由于无用的错误消息,我浪费了很多时间来寻找问题。
这似乎是在最近的 ChromeOS 更新后开始的,所以我猜谷歌开始以不同的方式安装 SD 卡并破坏了一切? 不确定这是什么时候开始的,但我目前在 beta 频道上,运行 88.0。
最有用的评论
我刚刚在 SD 卡上使用 chroot 时遇到了同样的问题。 花了太长时间进行故障排除,但看起来问题(至少对我而言)是 SD 卡正在使用
nosymfollow
选项安装:如果我用
mount -o remount,symfollow /media/removable/SD\ Card/
删除它,一切都会再次运行。nosymfollow
选项可防止跟随符号链接,这会触发与chroot
混淆的消息。 我已经在重新安装 SD 卡以删除noexec
标志,所以我只是将它添加到我的首次运行后重启仪式中。 现在有点不便,但由于无用的错误消息,我浪费了很多时间来寻找问题。这似乎是在最近的 ChromeOS 更新后开始的,所以我猜谷歌开始以不同的方式安装 SD 卡并破坏了一切? 不确定这是什么时候开始的,但我目前在 beta 频道上,运行 88.0。