在 Ubuntu 17.10中,nvidia GUI没有启动

分享于 

17分钟阅读

ubuntu

  繁體

问题

我刚把笔记本升级为17.10,升级没问题,但是当启动时,gui不会启动,屏幕闪烁,我必须登录到终端,并停止gdm3,我尝试删除,并重新安装NVIDIA驱动程序,但结果相同,我在syslog中看到这个:


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...



谁知道怎么解决这个问题?

硬件详细信息:

Lenovo Y510P Intel Core i7 2.40 Ghz CPU NVIDIA GeForce GT 750M video card

我在syslog中看到这个:


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

遵循这些步骤后,


sudo apt purge 'nvidia-*'


sudo apt install linux-headers-$(uname -r)


sudo apt install nvidia-384




答案2

我也有同样的问题,我是这样解决的。

  • 我在安全模式下启动,按Ctrl+F4选择tty4 ,登录,并删除所有nvidia驱动程序使用 sudo apt remove --purge nvidia-* 它切换到登录屏幕
  • 我进入Gnome桌面,然后,我添加一个repo,使用 sudo add-apt-repository ppa:graphics-drivers/ppa
  • 然后我执行了repo update sudo apt update
  • 我打开了软件&更新>附加驱动程序,并选择了最新的驱动程序。&更新>附加驱动程序,并选择了最新的驱动程序。其他版本刚刚失败


  • STA  gui  Ubuntu  英伟达  
    相关文章