Crouton: [已解决] Linux 无法在 Chromebook 上打开; xinit 不会加载

创建于 2017-09-11  ·  4评论  ·  资料来源: dnschneid/crouton

请将以下命令的输出粘贴到此处: sudo edit-chroot -all

chronos<strong i="7">@localhost</strong> / $ sudo edit-chroot -all
name: kali-rolling
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/kali-rolling...
crouton: version 1-20170901092920~master:0216f9d1
release: kali-rolling
architecture: amd64
xmethod: xorg
targets: xfce
host: version 9901.5.0 (Official Build) dev-channel relm 
kernel: Linux localhost 3.18.0-16002-g2644da09535f #1 SMP PREEMPT Mon Sep 4 22:14:23 PDT 2017 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/kali-rolling...

name: xfce
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xfce...
/usr/local/bin/enter-chroot: 511: cannot create /run/crouton/mnt/stateful_partition/crouton/chroots/xfce/etc/crouton/name: Directory nonexistent
Unmounting /mnt/stateful_partition/crouton/chroots/xfce...

请描述您的问题:

这似乎有很多问题。 我知道我正在输入正确的密码和所有内容,并且在清理它的同时我已经更新了一千次,但没有成功。 我仍然可以打开命令行(enter-chroot),但这就是范围。 我想知道这是否与我将 GalliumOS 下载为双启动有关(即使我已使用 dev_boot_legacy 命令将其关闭)。 我不知道出了什么问题,尤其是因为我之前在同一台设备上用同一用户下载过它(我只是对其进行了冲洗。)

如果已知,请描述重现问题的步骤:

chronos<strong i="13">@localhost</strong> / $ sudo startxfce4
Entering /mnt/stateful_partition/crouton/chroots/kali-rolling...
/usr/bin/startxfce4: Starting X server

_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

X.Org X Server 1.19.3
Release Date: 2017-03-15
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.0-3-amd64 x86_64 Debian
Current Operating System: Linux localhost 3.18.0-16002-g2644da09535f #1 SMP PREEMPT Mon Sep 4 22:14:23 PDT 2017 x86_64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 3584000 verity payload=PARTUUID=8d604fd7-3aa1-5e43-82d2-76f129201e1d/PARTNROFF=1 hashtree=PARTUUID=8d604fd7-3aa1-5e43-82d2-76f129201e1d/PARTNROFF=1 hashstart=3584000 alg=sha1 root_hexdigest=4f2d44204e2e91bb3a444dbafe7229294ba0145e salt=71afe38f959fb4c13de4debffb2520ecc879bfe10ed1ecc1de971da2e132cdff" noinitrd vt.global_cursor_default=0 kern_guid=8d604fd7-3aa1-5e43-82d2-76f129201e1d add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic  
Build Date: 07 July 2017  06:22:09AM
xorg-server 2:1.19.3-2 (https://www.debian.org/support) 
Current version of pixman: 0.34.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/Xorg.crouton.1.log", Time: Sun Sep 10 21:28:43 2017
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: Connection refused
/usr/bin/xinit: server error
Unmounting /mnt/stateful_partition/crouton/chroots/kali-rolling...

最有用的评论

好吧,说到这里有点尴尬。 我决定只测试一些我认为可行的东西(认为我可能不会得到任何东西),但奇迹般地找到了答案。 Kali-Linux 启动所在的文件夹是 /usr/bin/startxfce4。 由于我仍然可以访问 chroot,这是启动它所采取的步骤:
克罗什>
chronos@localhost / $ _sudo enter-chroot_
进入 /mnt/stateful_partition/crouton/chroots/kali-rolling...
(kali-rolling) user@localhost :~$ _sudo su_
[sudo] 用户密码: _(输入密码)_
(kali-rolling) root@localhost :/home/user# _/usr/bin/startxfce4_
这将强制打开文件夹,从而强制打开 Linux。 我已将这些步骤提供给使用不同 Chromebook 和不同发行版的朋友,但它仍然有效,他所要做的就是将“xfce4”替换为他的环境“kde”。
我希望遇到这个问题的人可以找到适合他们的答案(应该如此!)

所有4条评论

好吧,说到这里有点尴尬。 我决定只测试一些我认为可行的东西(认为我可能不会得到任何东西),但奇迹般地找到了答案。 Kali-Linux 启动所在的文件夹是 /usr/bin/startxfce4。 由于我仍然可以访问 chroot,这是启动它所采取的步骤:
克罗什>
chronos@localhost / $ _sudo enter-chroot_
进入 /mnt/stateful_partition/crouton/chroots/kali-rolling...
(kali-rolling) user@localhost :~$ _sudo su_
[sudo] 用户密码: _(输入密码)_
(kali-rolling) root@localhost :/home/user# _/usr/bin/startxfce4_
这将强制打开文件夹,从而强制打开 Linux。 我已将这些步骤提供给使用不同 Chromebook 和不同发行版的朋友,但它仍然有效,他所要做的就是将“xfce4”替换为他的环境“kde”。
我希望遇到这个问题的人可以找到适合他们的答案(应该如此!)

@anonymouseprogrammer , _et all_ ,

请不要root身份在 chroot 中启动startxfce4或任何start*脚本,它会占用您的权限,之后很多事情都会失败。

如果你已经这样做了,你可以用以下方法修复它 -

sudo enter-chroot
sudo chown -R 1000:1000 "$HOME"
exit

我相信最初的问题是由“xserver-xorg-legacy”的安装引起的。
解决方法在这里: https :

PR正在

希望这可以帮助,
-丹尼斯

每当我执行 sudo startxfce4 以在我的 chromebook 上启动 linux 时,这就是我遇到的错误,之后笔记本电脑屏幕变暗两秒钟并需要返回 chrome 帮助。

chronos@localhost /usr/local $ sudo startxfce4
输入 xenial 的加密密码:
进入 /mnt/stateful_partition/crouton/chroots/xenial...
/usr/bin/startxfce4: 启动 X 服务器

X.Org X 服务器 1.19.6
发布日期:2017-12-20
X 协议版本 11,修订版 0
构建操作系统:Linux 4.15.0-109-generic armv7l Ubuntu
当前操作系统:Linux localhost 3.8.11 #1 SMP Sun Jul 14 00:09:57 PDT 2019 armv7l
内核命令行:cros_secure console= console= loglevel=7 init=/sbin/init cros_secure root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot无ロ1,0 2539520真实性有效载荷= PARTUUID = 922500af-600E-5c4b-998e-daf87f04a622 / PARTNROFF = 1 hashtree = PARTUUID = 922500af-600E-5c4b-998e-daf87f04a622 / PARTNROFF = 1 hashstart = 2539520 ALG = SHA1 root_hexdigest = 3bfc672b009a3247d3cd8399a74f96ac53188553盐=306427720380043295ff7f5e5f7ef68a81138057901e316471bd1520719b78b2" noinitrd vt.global_cursor_default=0 kern_guid=9225009af-2f-af-6404b-e-a
构建日期:2020 年 9 月 4 日下午 03:36:48
xorg-server 2:1.19.6-1ubuntu4.1~16.04.4(技术支持见http://www.ubuntu.com/support)
pixman 当前版本:0.33.6
在报告问题之前,请检查 http://wiki.x.org
以确保您拥有最新版本。
标记:(--) 探测,(**) 来自配置文件,(==) 默认设置,
(++) 从命令行,(!!) 通知,(II) 信息,
(WW) 警告,(EE) 错误,(NI) 未实现,(??) 未知。
(++) 日志文件:“/tmp/Xorg.crouton.1.log”,时间:2020 年 10 月 22 日星期四 22:21:25
(==) 使用系统配置目录“/usr/share/X11/xorg.conf.d”
错误 org.freedesktop.DBus.Error.ServiceUnknown: 名称 org.chromium.LibCrosService 未由任何 .service 文件提供
方法返回时间=1603423285.559485 sender=:1.9 -> destination=:1.89 serial=4041 reply_serial=2
布尔真
MESA-LOADER:无法检索设备信息
gbm:无法打开任何驱动程序(搜索路径 /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)
gbm:上次 dlopen 错误:/usr/lib/dri/exynos_dri.so:无法打开共享对象文件:没有这样的文件或目录
无法加载驱动程序:exynos
需要 EGL_MESA_drm_image。
(EE)
致命的服务器错误:
(EE) 驱动程序 1 的 AddScreen/ScreenInit 失败
(EE)
(EE)
请咨询 X.Org 基金会支持
在 http://wiki.x.org
求助。
(EE) 另请检查“/tmp/Xorg.crouton.1.log”中的日志文件以获取更多信息。
(EE)
错误 org.freedesktop.DBus.Error.ServiceUnknown: 名称 org.chromium.LibCrosService 未由任何 .service 文件提供
方法返回时间=1603423286.048767 sender=:1.9 -> destination=:1.91 serial=4042 reply_serial=2
布尔真
(EE) 服务器因错误 (1) 而终止。 正在关闭日志文件。
/usr/bin/xinit: 放弃
/usr/bin/xinit: 无法连接到 X 服务器:连接被拒绝
/usr/bin/xinit: 服务器错误
正在卸载 /mnt/stateful_partition/crouton/chroots/xenial...

它不想在 linux 中启动它只是使屏幕变暗然后退出。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

Epowerj picture Epowerj  ·  6评论

rossjrw picture rossjrw  ·  5评论

El-t0ro picture El-t0ro  ·  4评论

harryprince picture harryprince  ·  3评论

jvschiavo picture jvschiavo  ·  4评论