简短解决方案

简短解决方案

我无法使用我的所有用户名登录 Ubuntu。我尝试了很多解决方案。当我查看 .xsession-errors 文件时,我得到了以下内容:

xlib: extension "GLX" missing on display ":o"
Script for ibus started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
init: gnome-session (unity) main process (2292) terminated with status 1
init: unity-settings-deamon main process (2284) killed by TERM signal
init: logrotate main process (2192)killed by TERM signal
init: update-notifier-crash (/var/crash/_usr_bin_compiz.1000.crash) main process (2230) killed by TERM signal
init: xsession-init main process (2201) killed by TERM signal
init: hud main process (2288) killed by TERM signal
init: unity=panel service main process (2299) killed by TERM signal
init: Disconnected from notified D-Bus bus
init: window-stack-bridge main process (2215) killed by KILL signal

答案1

简短解决方案

尝试安装linux-headers-generic并重新启动以再次登录:

# apt-get install linux-headers-generic

更长的故事

同样的问题。我在 askubuntu 和 stackoverflow 上尝试了几种方法,但都无济于事。我写下我的解决方案,希望它能帮助其他人。

这个问题发生在我apt-get purge意外删除所有内核之后,然后安装linux-image-generic并希望一切正常。然而,我在重启后遇到了这个问题,.xsession-errors显示的消息几乎相同(只是 pid 不同)。

一个小时后,我发现linux-headers-generic不仅仅是头文件。它还会重新编译必要的组件。在我的情况下,它是 nvidia 驱动程序。

安装linux-headers-generic并重启后,一切恢复正常。

相关内容