I have installed Ubuntu Server 16.04 and on top of it GNOME in a VirtualBox VM. Since I updated the system, I can boot the VM, access the terminal console and log in - but when I run startx
in order to start the graphical GNOME desktop environment, I receive the following error message:
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
Among the updates were some kernel packages. Does anyone know how to solve this problem?
The problem might be due to the installed VirtualBox guest additions and may occur when a new kernel gets installed. Reinstall the vbox guest additions, important is that the version matches the installed VirtualBox version. Reboot the virtual machine afterwards ... it should solve the problem.
Your system seems capable to create X-session on its console.
Why are you entering the
startx
command in a terminal? The display manager is probably already running. You do realize the terminal can not be used as the output device of an Xsession, I hope? You only connect via terminal to a server (or any machine) to perform actions on command line.I just installed a fresh Ubuntu Server 16.04 in VMWorkstation, installed openssh-server. connected via terminal (ssh) and installed gdm and rebooted. I now see a graphical login screen.