安装 NVIDIA 驱动程序后缺少 libGL.so

安装 NVIDIA 驱动程序后缺少 libGL.so

在装有 nouveau 显示驱动程序的 Ubuntu 14.04 上,我执行以下操作:

1)安装NVIDIA内核驱动(显示正常)

现在我想撤消此安装并返回到 nouveau 驱动程序:

2)卸载 NVIDIA 内核驱动程序 3)删除 modprobe.d 中的所有 nouveau 黑名单条目

当我尝试以用户身份登录 X 时,登录过程立即将我带回到用户名/密码提示。

我在 xsession 日志中看到一个潜在的问题:

.xsession 错误:

/usr/lib/nux/unity_support_test: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
Script for ibus started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
init: hud main process (3506) terminated with status 127
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: gnome-session (Unity) main process (3514) terminated with status 1
init: at-spi2-registryd main process ended, respawning
init: unity-settings-daemon main process (3502) killed by TERM signal
init: logrotate main process (3405) killed by TERM signal
init: unity-panel-service main process (3518) killed by TERM signal
init: xsession-init main process (3499) killed by TERM signal
init: Disconnected from notified D-Bus bus
init: window-stack-bridge main process (3436) killed by KILL signal

在安装 NVIDIA 驱动程序之前没有发生此错误。我该如何手动(重新)安装此库?

答案1

你可以尝试这样做:

sudo bash
cd /use/share/xsession
gedit Xsession

并在文件中输入以下内容:

[Default Entry]
Name=Xsession
Exec=/use/share/xsession~

这样也许能起到很好的效果。

答案2

解决了。​​我重新安装了(apt-get install --reinstall)所有以 libgl* 开头的已安装软件包

这样就解决了问题,无需对配置文件进行任何修改。

相关内容