我已经在 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
更新中有一些内核包。有谁知道如何解决这个问题?
该问题可能是由于安装了 VirtualBox 来宾添加,并且可能在安装新内核时发生。重新安装 vbox 来宾添加,重要的是版本与安装的 VirtualBox 版本匹配。之后重新启动虚拟机......它应该可以解决问题。
您的系统似乎能够在其控制台上创建 X-session。
为什么要
startx
在终端输入命令?显示管理器可能已经在运行。你确实意识到终端不能用作Xsession的输出设备,我希望?您只能通过终端连接到服务器(或任何机器)以在命令行上执行操作。我刚刚在 VMWorkstation 中安装了一个全新的 Ubuntu Server 16.04,安装了 openssh-server。通过终端(ssh)连接并安装 gdm 并重新启动。我现在看到一个图形登录屏幕。