0

I am getting an error when executing the 'startx' command:

root@localhost:~# startx  

[config] failed to pre-init udev  

X.Org X Server 1.20.3  
X Protocol Version 11, Revision 0  
Build Operating System: Linux 4.9.0-8-arm64 aarch64 Debian  
Current Operating System: Linux localhost 4.9.148 #1 SMP PREEMPT Sat Mar 30 
09:52:28 CST 2019 aarch64  
Build Date: 25 October 2018  06:15:23PM  
xorg-server 2:1.20.3-1 (https://www.debian.org/support)  
Current version of pixman: 0.36.0  
    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: "/var/log/Xorg.0.log", Time: Mon May  6 23:16:09 2019  
(==) Using system config directory "/usr/share/X11/xorg.conf.d"  
(EE) Fatal server error:  
(EE) parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)  
(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 "/var/log/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: Connection refused  
xinit: server error  
Couldn't get a file descriptor referring to the console  

What could be causing this and how would I fix it?

EDIT1

Xorg.0.log:

    3.2       Xorg.0.log

[307281.676] [config] failed to pre-init udev
[307281.676]
X.Org X Server 1.20.3
X Protocol Version 11, Revision 0
[307281.676] Build Operating System: Linux 4.9.$
[307281.676] Current Operating System: Linux lo$
[307281.677] Build Date: 25 October 2018  06:15$
[307281.677] xorg-server 2:1.20.3-1 (https://ww$
[307281.677] Current version of pixman: 0.36.0
[307281.677]    Before reporting problems, chec$
        to make sure that you have the latest v$
[307281.677] Markers: (--) probed, (**) from co$
        (++) from command line, (!!) notice, (I$
        (WW) warning, (EE) error, (NI) not impl$
[307281.677] (==) Log file: "/var/log/Xorg.0.lo$
[307281.679] (==) Using system config directory$
[307281.680] (==) No Layout section.  Using the$
[307281.680] (==) No screen section available. $
[307281.680] (**) |-->Screen "Default Screen Se$
[307281.680] (**) |   |-->Monitor "<default mon$
[307281.680] (==) No monitor specified for scre$
        Using a default monitor configuration.
[307281.681] (==) Automatically adding devices
[307281.681] (==) Automatically enabling devices
[307281.681] (==) Automatically adding GPU devi$
[307281.681] (==) Max clients allowed: 256, res$
[307281.681] (WW) The directory "/usr/share/fon$
[307281.681]    Entry deleted from font path.
[307281.681] (WW) The directory "/usr/share/fon$
[307281.681]    Entry deleted from font path.
[307281.681] (WW) The directory "/usr/share/fon$
[307281.681]    Entry deleted from font path.
[307281.682] (WW) The directory "/usr/share/fon$
[307281.682]    Entry deleted from font path.
[307281.682] (WW) The directory "/usr/share/fon$
[307281.682]    Entry deleted from font path.
[307281.682] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        built-ins
[307281.682] (==) ModulePath set to "/usr/lib/x$
[307281.682] (II) The server relies on udev to $
If no devices become available, reconfi$
[309144.083] (II) Loader magic: 0x3000254e08
[309144.083] (II) Module ABI versions:
[309144.083]    X.Org ANSI C Emulation: 0.4
[309144.083]    X.Org Video Driver: 24.0
[309144.084]    X.Org XInput driver : 24.1
[309144.084]    X.Org Server Extension : 10.0
[309144.084] (EE) dbus-core: error connecting t$
[309144.085] (II) no primary bus or device found
[309144.085] (II) LoadModule: "glx"
[309144.085] (II) Loading /usr/lib/xorg/modules$
[309144.093] (II) Module glx: vendor="X.Org Fou$
[309144.093]    compiled for 1.20.3, module ver$
[309144.093]    ABI class: X.Org Server Extensi$
[309144.093] (==) Matched modesetting as autoco$
[309144.093] (==) Matched fbdev as autoconfigur$
[309144.093] (==) Assigned the driver to the xf$
[309144.093] (II) LoadModule: "modesetting"
[309144.094] (II) Loading /usr/lib/xorg/modules$
[309144.094] (II) Module modesetting: vendor="X$
[309144.094]    compiled for 1.20.3, module ver$
[309144.094]    Module class: X.Org Video Driver
[309144.094]    ABI class: X.Org Video Driver, $
[309144.094] (II) LoadModule: "fbdev"
[309144.096] (II) Loading /usr/lib/xorg/modules$
[309144.097] (II) Module fbdev: vendor="X.Org F$
[309144.097]    compiled for 1.20.0, module ver$
[309144.097]    Module class: X.Org Video Driver
[309144.097]    ABI class: X.Org Video Driver, $
[309144.097] (II) modesetting: Driver for Modes$
[309144.097] (II) FBDEV: driver for framebuffer$
[309144.097] (EE)
Fatal server error:
[309144.097] (EE) parse_vt_settings: Cannot ope$
[309144.097] (EE)
[309144.097] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[309144.097] (EE) Please also check the log fil$
[309144.097] (EE)
[309144.098] (WW) xf86CloseConsole: KDSETMODE f$
[309144.098] (WW) xf86CloseConsole: VT_GETMODE $
[309144.098] (EE) Server terminated with error $

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.