刚刚将服务器从最新的 Debian 9 升级到:
# uname -a
# Linux server 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
现在图形终端只显示 Grub 菜单后闪烁的光标。我可以使用 tty1 登录,也可以通过 RDP 进入盒子并启动完整桌面(LXDE)。
boot.log 看起来很好,但是在 dmesg 中有两个较长的时间间隔引起了我的注意,但我不明白它们的含义:
[ 2.829387] intel_rapl: Found RAPL domain dram
[ 64.716171] snd_hda_intel 0000:00:1f.3: couldn't bind with audio component
[ 64.747264] snd_hda_codec_generic hdaudioC0D0: autoconfig for Generic: line_outs=2 (0x14/0x15/0x0/0x0/0x0) type:line
...
[ 81.114779] Initializing XFRM netlink socket
[ 238.774094] fuse init (API version 7.27)
[ 238.900861] traps: light-locker[1097] trap int3 ip:7f8d014dec75 sp:7ffd5b5fdeb0 error:0 in libglib-2.0.so.0.5800.3[7f8d014a6000+7e000]
您知道我下一步该检查哪里来发现问题吗?
答案1
谢谢你的提示,Piotr!这给了我更多的想法。对于 LXDE,我需要检查 lighdm:journalctl -u lightdm -e
Jan 21 18:19:16 server systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 4.
Jan 21 18:19:16 server systemd[1]: Stopped Light Display Manager.
Jan 21 18:19:16 server systemd[1]: Starting Light Display Manager...
Jan 21 18:19:16 server systemd[1]: Started Light Display Manager.
Jan 21 18:19:16 server systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Jan 21 18:19:16 server systemd[1]: lightdm.service: Failed with result 'exit-code'.
Jan 21 18:19:16 server systemd[1]: lightdm.service: Service RestartSec=100ms expired, scheduling restart.
Jan 21 18:19:16 server systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
Jan 21 18:19:16 server systemd[1]: Stopped Light Display Manager.
Jan 21 18:19:16 server systemd[1]: lightdm.service: Start request repeated too quickly.
Jan 21 18:19:16 server systemd[1]: lightdm.service: Failed with result 'exit-code'.
Jan 21 18:19:16 server systemd[1]: Failed to start Light Display Manager.
Jan 21 18:19:16 server systemd[1]: lightdm.service: Triggering OnFailure= dependencies.
让/var/log/lightdm/lightdm.log
我来处理 Xserver 问题/var/log/lightdm/x-0.log
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Jan 21 18:19:16 2020
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices
(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.
以及更多详细信息/var/log/Xorg.0.log
[ 3.799] (II) LoadModule: "fbdev"
[ 3.799] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 3.800] (II) Module fbdev: vendor="X.Org Foundation"
[ 3.800] compiled for 1.20.0, module version = 0.5.0
[ 3.800] Module class: X.Org Video Driver
[ 3.800] ABI class: X.Org Video Driver, version 24.0
[ 3.800] (II) LoadModule: "vesa"
[ 3.800] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 3.800] (II) Module vesa: vendor="X.Org Foundation"
[ 3.800] compiled for 1.20.1, module version = 2.4.0
[ 3.800] Module class: X.Org Video Driver
[ 3.800] ABI class: X.Org Video Driver, version 24.0
[ 3.800] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 3.800] (II) FBDEV: driver for framebuffer: fbdev
[ 3.800] (II) VESA: driver for VESA chipsets: vesa
[ 3.800] (EE) open /dev/dri/card0: No such file or directory
[ 3.800] (WW) Falling back to old probe method for modesetting
[ 3.800] (EE) open /dev/dri/card0: No such file or directory
[ 3.800] (II) Loading sub module "fbdevhw"
[ 3.800] (II) LoadModule: "fbdevhw"
[ 3.800] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 3.800] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 3.800] compiled for 1.20.4, module version = 0.0.2
[ 3.800] ABI class: X.Org Video Driver, version 24.0
[ 3.801] (EE) Unable to find a valid framebuffer device
[ 3.801] (WW) Falling back to old probe method for fbdev
[ 3.801] (II) Loading sub module "fbdevhw"
[ 3.801] (II) LoadModule: "fbdevhw"
[ 3.801] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 3.801] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 3.801] compiled for 1.20.4, module version = 0.0.2
[ 3.801] ABI class: X.Org Video Driver, version 24.0
[ 3.801] (II) FBDEV(2): using default device
[ 3.801] (EE) Screen 0 deleted because of no matching config section.
[ 3.801] (II) UnloadModule: "modesetting"
[ 3.801] (EE) Screen 0 deleted because of no matching config section.
[ 3.801] (II) UnloadModule: "fbdev"
[ 3.801] (II) UnloadSubModule: "fbdevhw"
[ 3.801] (EE)
Fatal server error:
[ 3.801] (EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices
[ 3.801] (EE)
[ 3.801] (EE)
我使用以下方法找到了 busID lspci
:
00:02.0 VGA compatible controller: Intel Corporation Device 3e98
然后,我创建了以下内容/etc/X11/xorg.conf
来指定 busID。现在,一切正常。
Section "Device"
Identifier "dev0"
BusID "pci0:0:2:0:"
EndSection
我将接受的答案保留为开放状态,以防有人知道系统无法识别 busID 的原因。如有必要,我很乐意提供进一步的意见。