我的 chromebook 上的 Linux 刚刚坏了 - 为什么?

我的 chromebook 上的 Linux 刚刚坏了 - 为什么?

我有一台 chromebook,我通过 crouton 双启动 linux。我使用键盘快捷键在 chromium 和 linux 之间来回切换,结果它突然停止工作了。我尝试通过关闭 chromium 命令行重新启动 linux,然后尝试重新启动它,但它只产生了:

Entering /mnt/stateful_partition/crouton/chroots/xenial...
/usr/bin/startxfce4: Starting X server

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

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-97-generic x86_64 Ubuntu
Current Operating System: Linux localhost 4.4.118-13212-g6c21f415c5d1 #1 SMP PREEMPT Mon May 14 23:16:44 PDT 2018 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=a426f256-534d-ba40-a9b8-ed38fc20733b/PARTNROFF=1 hashtree=PARTUUID=a426f256-534d-ba40-a9b8-ed38fc20733b/PARTNROFF=1 hashstart=3584000 alg=sha1 root_hexdigest=2beeb95eb41112a3c3fa7a2386b67943bde847e7 salt=a5efca76297948a7369778adc0e1e0bd7e02b87785c22a2847abcbc7363ab718" noinitrd vt.global_cursor_default=0 kern_guid=a426f256-534d-ba40-a9b8-ed38fc20733b add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic
Build Date: 13 October 2017  01:57:05PM
xorg-server 2:1.18.4-0ubuntu0.7 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.33.6
        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.5.log", Time: Thu Jun  7 22:28:15 2018
(==) Using system config directory "/usr/share/X11/xorg.conf.d"

但实际上并没有起作用。当 Linux 崩溃时,我正在用 Python 3 编程,但我认为我实际上并没有运行程序。我还打开了记事本。我以前做过所有这些事情,没有问题。我过去使用 crouton 时遇到的唯一麻烦是当 chromebook 自动重启以更新 chromium linux 时通常会中断,但这也没有发生过。

我该如何修复我的 Linux 双启动?为什么会发生这种情况?

任何帮助都将不胜感激。谢谢!


根据答案进行编辑:

检查产生的权限

total 0
srwxrwxrwx 1 chronos chronos 0 Jun  5 10:22 X1
srwxrwxrwx 1 chronos chronos 0 Jun  7 18:44 X2
srwxrwxrwx 1 chronos chronos 0 Jun  7 18:48 X3
srwxrwxrwx 1 chronos chronos 0 Jun  7 18:53 X4
srwxrwxrwx 1 chronos chronos 0 Jun  7 22:28 X5

我运行chown root:root /tmp/.X11-unix后它显示chown: changing ownership of '/tmp/.X11-unix': Operation not permitted,所以我使用 sudo 再次运行,没有产生任何错误,然后再次检查文件权限,产生与之前相同的结果。

更新:

根据答案成功更改文件权限;sudo startxfce4再次运行;没有起作用并产生以下内容:

Entering /mnt/stateful_partition/crouton/chroots/xenial...
/usr/bin/startxfce4: Starting X server


X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-97-generic x86_64 Ubuntu
Current Operating System: Linux localhost 4.4.118-13212-g6c21f415c5d1 #1 SMP PREEMPT Mon May 14 23:16:44 PDT 2018 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=a426f256-534d-ba40-a9b8-ed38fc20733b/PARTNROFF=1 hashtree=PARTUUID=a426f256-534d-ba40-a9b8-ed38fc20733b/PARTNROFF=1 hashstart=3584000 alg=sha1 root_hexdigest=2beeb95eb41112a3c3fa7a2386b67943bde847e7 salt=a5efca76297948a7369778adc0e1e0bd7e02b87785c22a2847abcbc7363ab718" noinitrd vt.global_cursor_default=0 kern_guid=a426f256-534d-ba40-a9b8-ed38fc20733b add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic  
Build Date: 13 October 2017  01:57:05PM
xorg-server 2:1.18.4-0ubuntu0.7 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.33.6
        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.7.log", Time: Fri Jun  8 10:12:14 2018
(==) Using system config directory "/usr/share/X11/xorg.conf.d"

更新 2:

我再次重启了整个笔记本电脑,现在一切正常。我将按照建议的答案提交错误报告。如果有人知道为什么会发生这种情况,或者我应该做些什么来防止这种情况再次发生,那就太好了!

答案1

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

将该文件的权限更改为“root”。但请检查权限是什么,并将其报告为错误。

还请注意Log file: "/tmp/Xorg.crouton.5.log"。它将保存有关该问题的额外信息。

检查权限:

ls -l /tmp/.X11-unix

更改权限:

sudo chown -R root:root /tmp/.X11-unix 

如果只是桌面崩溃,则可以使用实时会话、grub 救援或通过 tty 使用当前系统。

相关内容