我有一个 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:
我再次重新启动了整个笔记本电脑,现在它可以正常工作了。作为建议的答案,我将提交错误报告。如果有人对为什么会发生这种情况有任何线索,或者我应该做些什么来防止它再次发生,那就太好了!
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
将该文件的权限更改为“root”。但是请检查权限是什么并将其报告为错误。
还要注意
Log file: "/tmp/Xorg.crouton.5.log"
。这将包含有关该问题的额外信息。检查权限:
更改权限:
如果只有桌面崩溃,您可以通过 tty 使用实时会话、grub 救援或当前系统。