我在 VirtualBox VM 中安装了 Ubuntu Server 16.04 和 GNOME。自从我更新了系统后,我可以启动 VM、访问终端控制台并登录 - 但是当我运行startx
以启动图形 GNOME 桌面环境时,我收到以下错误消息:
ubuntu@ubuntu:~$ startx
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-45-generic x86_64 Ubuntu
Current Operating System: Linux ubuntu 4.4.0-81-generic #104-Ubuntu SMP Wed Jun 14 08:17:06 UTC 2017 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-81-generic root=UUID=99c624b7-abf7-459e-9f58-a1ffe335794f ro
Build Date: 02 November 2016 10:06:10PM
xorg-server 2:1.18.4-0ubuntu0.2 (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: "/home/ubuntu/.local/share/xorg/Xorg.0.log", Time: Fri Jun 30 08:18:56 2017
(==) Using default built-in configuration (39 lines)
(EE)
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
(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 "/home/ubuntu/.local/share/xorg/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Cannot assign requested address
xinit: server error
Couldn't get a file descriptor referring to the console
更新中包括一些内核包。有人知道如何解决这个问题吗?
答案1
问题可能是由于已安装的 VirtualBox 客户机附加组件引起的,并且可能在安装新内核时发生。重新安装 vbox 客户机附加组件,重要的是版本与已安装的 VirtualBox 版本相匹配。然后重新启动虚拟机...这应该可以解决问题。