我刚刚将笔记本电脑升级到 17.10。升级顺利,但启动时,GUI 无法启动。屏幕闪烁,我必须登录终端并停止 gdm3。我尝试删除并重新安装 NVIDIA 驱动程序,但结果相同。我在系统日志中看到以下内容:
Oct 20 11:50:28 torp systemd[1]: Stopping User Manager for UID 128...
Oct 20 11:50:28 torp systemd[3481]: Stopping Accessibility services bus...
Oct 20 11:50:28 torp systemd[3481]: Stopping D-Bus User Message Bus...
Oct 20 11:50:28 torp gdm3: Child process -3487 was already dead.
Oct 20 11:50:28 torp systemd[3481]: Stopped target Default.
Oct 20 11:50:28 torp gdm3: Child process 3477 was already dead.
Oct 20 11:50:28 torp gdm3: Unable to kill session worker process
Oct 20 11:50:28 torp systemd[3481]: Stopped D-Bus User Message Bus.
Oct 20 11:50:28 torp systemd[3481]: Stopped Accessibility services bus.
Oct 20 11:50:28 torp systemd[3481]: Stopped target Basic System.
Oct 20 11:50:28 torp systemd[3481]: Stopped target Sockets.
Oct 20 11:50:28 torp systemd[3481]: Closed Sound System.
Oct 20 11:50:28 torp systemd[3481]: Stopped target Paths.
Oct 20 11:50:28 torp systemd[3481]: Stopped target Timers.
Oct 20 11:50:28 torp systemd[3481]: Closed D-Bus User Message Bus Socket.
Oct 20 11:50:28 torp systemd[3481]: Reached target Shutdown.
Oct 20 11:50:28 torp systemd[3481]: Starting Exit the Session...
Oct 20 11:50:28 torp systemd[3481]: Received SIGRTMIN+24 from PID 3539 (kill).
Oct 20 11:50:28 torp systemd[1]: Stopped User Manager for UID 128.
Oct 20 11:50:28 torp systemd[1]: Removed slice User Slice of gdm.
Oct 20 11:50:28 torp systemd[1]: Created slice User Slice of gdm.
Oct 20 11:50:28 torp systemd[1]: Starting User Manager for UID 128...
Oct 20 11:50:28 torp systemd[1]: Started Session c19 of user gdm.
Oct 20 11:50:28 torp systemd[3542]: Reached target Timers.
Oct 20 11:50:28 torp systemd[3542]: Listening on Sound System.
Oct 20 11:50:28 torp systemd[3542]: Reached target Paths.
Oct 20 11:50:28 torp systemd[3542]: Starting D-Bus User Message Bus Socket.
Oct 20 11:50:28 torp systemd[3542]: Listening on D-Bus User Message Bus Socket.
Oct 20 11:50:28 torp systemd[3542]: Reached target Sockets.
Oct 20 11:50:28 torp systemd[3542]: Reached target Basic System.
Oct 20 11:50:28 torp systemd[3542]: Reached target Default.
Oct 20 11:50:28 torp systemd[3542]: Startup finished in 19ms.
Oct 20 11:50:28 torp systemd[1]: Started User Manager for UID 128.
Oct 20 11:50:28 torp systemd[3542]: Started D-Bus User Message Bus.
Oct 20 11:50:28 torp dbus-daemon[3550]: Activating service name='org.gnome.ScreenSaver'
Oct 20 11:50:28 torp org.gnome.ScreenSaver[3550]: Unable to init server: Could not connect: Connection refused
Oct 20 11:50:28 torp gnome-screensav[3558]: Cannot open display:
Oct 20 11:50:28 torp dbus-daemon[3550]: Activated service 'org.gnome.ScreenSaver' failed: Process org.gnome.ScreenSaver exited with status 1
Oct 20 11:50:28 torp gnome-session[3552]: gnome-session-binary[3552]: CRITICAL: Unable to create a DBus proxy for GnomeScreensaver: Error calling StartServiceByName for org.gnome.ScreenSaver: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.ScreenSaver exited with status 1
Oct 20 11:50:28 torp gnome-session-binary[3552]: CRITICAL: Unable to create a DBus proxy for GnomeScreensaver: Error calling StartServiceByName for org.gnome.ScreenSaver: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.ScreenSaver exited with status 1
Oct 20 11:50:28 torp gnome-shell[3560]: Can't initialize KMS backend: could not find drm kms device
Oct 20 11:50:28 torp gnome-session[3552]: gnome-session-binary[3552]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Oct 20 11:50:28 torp gnome-session-binary[3552]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Oct 20 11:50:28 torp gnome-session-binary[3552]: Unrecoverable failure in required component org.gnome.Shell.desktop
Oct 20 11:50:28 torp gdm3: GdmDisplay: display lasted 0.152136 seconds
Oct 20 11:50:28 torp gdm3: Child process -3548 was already dead.
Oct 20 11:50:28 torp gdm3: Child process 3538 was already dead.
Oct 20 11:50:28 torp systemd[1]: Stopping User Manager for UID 128...
Oct 20 11:50:28 torp gdm3: Unable to kill session worker process
Oct 20 11:50:28 torp systemd[3542]: Stopping D-Bus User Message Bus...
Oct 20 11:50:28 torp systemd[3542]: Stopped target Default.
Oct 20 11:50:28 torp systemd[3542]: Stopped D-Bus User Message Bus.
Oct 20 11:50:28 torp systemd[3542]: Stopped target Basic System.
Oct 20 11:50:28 torp systemd[3542]: Stopped target Paths.
Oct 20 11:50:28 torp systemd[3542]: Stopped target Timers.
Oct 20 11:50:28 torp systemd[3542]: Stopped target Sockets.
Oct 20 11:50:28 torp systemd[3542]: Closed Sound System.
Oct 20 11:50:28 torp systemd[3542]: Closed D-Bus User Message Bus Socket.
Oct 20 11:50:28 torp systemd[3542]: Reached target Shutdown.
Oct 20 11:50:28 torp systemd[3542]: Starting Exit the Session...
Oct 20 11:50:28 torp systemd[3542]: Received SIGRTMIN+24 from PID 3568 (kill).
Oct 20 11:50:28 torp systemd[1]: Stopped User Manager for UID 128.
Oct 20 11:50:28 torp systemd[1]: Removed slice User Slice of gdm.
Oct 20 11:50:28 torp systemd[1]: Created slice User Slice of gdm.
Oct 20 11:50:28 torp systemd[1]: Starting User Manager for UID 128...
有人知道如何解决这个问题吗?提前致谢。
硬件详细信息:
联想 Y510P Intel Core i7 2.40Ghz CPU NVIDIA GeForce GT 750M 显卡
进一步更新:
我在系统日志中看到这个:
Oct 22 21:40:37 torp systemd[4036]: Starting Accessibility services bus...
Oct 22 21:40:37 torp dbus-daemon[4051]: Successfully activated service 'org.a11y.Bus'
Oct 22 21:40:37 torp systemd[4036]: Started Accessibility services bus.
Oct 22 21:40:37 torp at-spi-bus-launcher[4060]: Activating service name='org.a11y.atspi.Registry'
Oct 22 21:40:37 torp gnome-session[4058]: gnome-session-is-accelerated: No hardware 3D support.
Oct 22 21:40:37 torp gnome-session[4058]: gnome-session-check-accelerated: GL Helper exited with code 256
Oct 22 21:40:37 torp at-spi-bus-launcher[4060]: Successfully activated service 'org.a11y.atspi.Registry'
Oct 22 21:40:37 torp org.a11y.atspi.Registry[4065]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Oct 22 21:40:37 torp gnome-session-c[4069]: eglGetDisplay() failed
Oct 22 21:40:37 torp gnome-session[4058]: gnome-session-check-accelerated: GLES Helper exited with code 256
Oct 22 21:40:42 torp gnome-session[4058]: gnome-session-is-accelerated: No hardware 3D support.
Oct 22 21:40:42 torp gnome-session[4058]: gnome-session-check-accelerated: GL Helper exited with code 256
Oct 22 21:40:42 torp gnome-session-c[4077]: eglGetDisplay() failed
Oct 22 21:40:42 torp gnome-session[4058]: gnome-session-check-accelerated: GLES Helper exited with code 256
Oct 22 21:40:42 torp gnome-session[4058]: gnome-session-binary[4058]: WARNING: software acceleration check failed: Child process exited with code 1
Oct 22 21:40:42 torp gnome-session[4058]: gnome-session-binary[4058]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Oct 22 21:40:42 torp gnome-session-binary[4058]: WARNING: software acceleration check failed: Child process exited with code 1
Oct 22 21:40:42 torp gnome-session-binary[4058]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Oct 22 21:40:42 torp org.a11y.atspi.Registry[4065]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
Oct 22 21:40:42 torp org.a11y.atspi.Registry[4065]: after 21 requests (21 known processed) with 0 events remaining.
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (**) Option "fd" "22"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) event3 - (II) Power Button: (II) device removed
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (**) Option "fd" "25"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) event0 - (II) Power Button: (II) device removed
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (**) Option "fd" "26"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) event1 - (II) Sleep Button: (II) device removed
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (**) Option "fd" "27"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) event5 - (II) Video Bus: (II) device removed
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (**) Option "fd" "28"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) event8 - (II) Lenovo EasyCamera: Lenovo EasyC: (II) device removed
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (**) Option "fd" "29"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) event7 - (II) Ideapad extra buttons: (II) device removed
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (**) Option "fd" "30"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) event4 - (II) AT Translated Set 2 keyboard: (II) device removed
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) UnloadModule: "synaptics"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) systemd-logind: releasing fd for 13:70
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) UnloadModule: "libinput"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) systemd-logind: releasing fd for 13:68
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) UnloadModule: "libinput"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) systemd-logind: releasing fd for 13:71
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) UnloadModule: "libinput"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) systemd-logind: releasing fd for 13:72
Oct 22 21:40:42 torp systemd[1]: Starting Message of the Day...
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) UnloadModule: "libinput"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) systemd-logind: releasing fd for 13:69
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) UnloadModule: "libinput"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) systemd-logind: releasing fd for 13:65
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) UnloadModule: "libinput"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) systemd-logind: releasing fd for 13:64
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) UnloadModule: "libinput"
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) systemd-logind: releasing fd for 13:67
Oct 22 21:40:42 torp /usr/lib/gdm3/gdm-x-session[4042]: (II) Server terminated successfully (0). Closing log file.
Oct 22 21:40:42 torp systemd[1]: Stopping User Manager for UID 128...
Oct 22 21:40:42 torp systemd[4036]: Stopped target Default.
Oct 22 21:40:42 torp systemd[4036]: Stopping Accessibility services bus...
Oct 22 21:40:42 torp systemd[4036]: Stopping D-Bus User Message Bus...
Oct 22 21:40:42 torp systemd[4036]: Stopped Accessibility services bus.
Oct 22 21:40:42 torp gdm3: Child process -4042 was already dead.
Oct 22 21:40:42 torp gdm3: Child process 4032 was already dead.
Oct 22 21:40:42 torp gdm3: Unable to kill session worker process
Oct 22 21:40:42 torp systemd[4036]: Stopped D-Bus User Message Bus.
Oct 22 21:40:42 torp systemd[4036]: Stopped target Basic System.
Oct 22 21:40:42 torp systemd[4036]: Stopped target Paths.
Oct 22 21:40:42 torp systemd[4036]: Stopped target Sockets.
Oct 22 21:40:42 torp systemd[4036]: Closed Sound System.
Oct 22 21:40:42 torp systemd[4036]: Stopped target Timers.
Oct 22 21:40:42 torp systemd[4036]: Closed D-Bus User Message Bus Socket.
Oct 22 21:40:42 torp systemd[4036]: Reached target Shutdown.
Oct 22 21:40:42 torp systemd[4036]: Starting Exit the Session...
Oct 22 21:40:42 torp systemd[4036]: Received SIGRTMIN+24 from PID 4109 (kill).
Oct 22 21:40:42 torp systemd[1]: Stopped User Manager for UID 128.
Oct 22 21:40:42 torp systemd[1]: Removed slice User Slice of gdm.
Oct 22 21:40:42 torp systemd[1]: Created slice User Slice of gdm.
Oct 22 21:40:42 torp systemd[1]: Starting User Manager for UID 128...
Oct 22 21:40:42 torp systemd[1]: Started Session c35 of user gdm.
Oct 22 21:40:42 torp systemd[4110]: Reached target Paths.
Oct 22 21:40:42 torp systemd[4110]: Reached target Timers.
Oct 22 21:40:42 torp systemd[4110]: Starting D-Bus User Message Bus Socket.
Oct 22 21:40:42 torp systemd[4110]: Listening on Sound System.
Oct 22 21:40:42 torp systemd[4110]: Listening on D-Bus User Message Bus Socket.
Oct 22 21:40:42 torp systemd[4110]: Reached target Sockets.
Oct 22 21:40:42 torp systemd[4110]: Reached target Basic System.
Oct 22 21:40:42 torp systemd[4110]: Reached target Default.
Oct 22 21:40:42 torp systemd[4110]: Startup finished in 17ms.
Oct 22 21:40:42 torp systemd[1]: Started User Manager for UID 128.
Oct 22 21:40:42 torp systemd[4110]: Started D-Bus User Message Bus.
Oct 22 21:40:42 torp dbus-daemon[4118]: Activating service name='org.gnome.ScreenSaver'
Oct 22 21:40:42 torp org.gnome.ScreenSaver[4118]: Unable to init server: Could not connect: Connection refused
Oct 22 21:40:42 torp gnome-screensav[4126]: Cannot open display:
答案1
遇到类似的问题并找到解决方案后,我感到自己很愚蠢,但由于我的错误与您的类似,甚至包括未找到模块消息,所以我想分享一下,以防有帮助:
第三次重新安装软件包后nvidia-384
,我注意到它提到它跳过了为新的“低延迟”内核构建模块,因为找不到标头。按照以下步骤操作后,我就可以开始了:
sudo apt purge 'nvidia-*'
sudo apt install linux-headers-$(uname -r)
sudo apt install nvidia-384
请注意,在尝试任何操作之前我确实阻止了 gdm 使用 Wayland,而且据我所知,Wayland 目前无法与 nvidia 二进制文件一起使用,因此我建议/etc/gdm3/custom.conf
通过取消注释该行来确保它已被禁用#WaylandEnable=false
。
答案2
我也遇到了同样的问题。下面是我解决问题的方法。
- 我以安全模式启动,按Ctrl+选择 TTY 4(无论什么) F4,登录并使用 删除所有 nvidia 驱动程序
sudo apt remove --purge nvidia-*
。它切换到登录屏幕。 - 我进入了 Gnome 桌面。然后我使用 添加了一个包含最新驱动程序的 repo
sudo add-apt-repository ppa:graphics-drivers/ppa
。 - 然后我执行了 repo update
sudo apt update
。 - 我打开了“软件和更新”>“其他驱动程序”,然后选择了最新的驱动程序(有好几个,在撰写本文时,最新的是 387.12)。其他版本都失败了。
答案3
尝试将 nomodeset 添加到内核命令行。这是我做的最后一件事,现在它起作用了。昨天这样做之后它不起作用了,我不确定为什么它今天起作用了,但现在它起作用了,所以我会接受它。
答案4
我遇到了完全相同的问题,并且已经在 ubuntu xorg 中提交了一个错误报告(Bug #1725169)。也许这是错误的地方,因为它只给出了一个回复。主要问题是未经请求安装低延迟内核。我可能会影响到许多其他人。