无法删除多个 Nvidia 驱动程序 Ubuntu

无法删除多个 Nvidia 驱动程序 Ubuntu

我的 Ubuntu 14.04 系统上安装了多个驱动程序,因此无法运行 OpenCL 程序。因此,我不得不sudo apt-get remove --purge nvidia*重新开始。

但是当我这样做时 cat /proc/driver/nvidia/version它仍然返回:NVRM 版本:NVIDIA UNIX x86_64 内核模块 352.63 Sat Nov 7 21:25:42 PST 2015。

关于如何从我的系统中删除所有这些驱动程序(304.131、352.39、352.63),您有什么想法吗?

谢谢。

编辑:我也这样做了sudo apt-get remove --purge cuda*sudo /usr/bin/nvidia-uninstall但仍然遇到同样的问题。

此外,dmesg|grep NVRM 给出输出:

[ 10.206595] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1380)
[ 10.206595] NVRM: installed in this system is not supported by the 304.131
[ 10.206595] NVRM: NVIDIA Linux driver release. Please see 'Appendix
[ 10.206595] NVRM: A - Supported NVIDIA GPU Products' in this release's
[ 10.206595] NVRM: README, available on the Linux driver download page
[ 10.206595] NVRM: at www.nvidia.com.

[ 10.206744] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 10.206745] NVRM: None of the NVIDIA graphics adapters were initialized!
[ 18.076754] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1380)
[ 18.076754] NVRM: installed in this system is not supported by the 304.131
[ 18.076754] NVRM: NVIDIA Linux driver release. Please see 'Appendix
[ 18.076754] NVRM: A - Supported NVIDIA GPU Products' in this release's
[ 18.076754] NVRM: README, available on the Linux driver download page
[ 18.076754] NVRM: at www.nvidia.com.

[ 18.076960] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 18.076961] NVRM: None of the NVIDIA graphics adapters were initialized!
[ 18.130159] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1380)
[ 18.130159] NVRM: installed in this system is not supported by the 304.131
[ 18.130159] NVRM: NVIDIA Linux driver release. Please see 'Appendix
[ 18.130159] NVRM: A - Supported NVIDIA GPU Products' in this release's
[ 18.130159] NVRM: README, available on the Linux driver download page
[ 18.130159] NVRM: at www.nvidia.com.

[ 18.130394] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 18.130395] NVRM: None of the NVIDIA graphics adapters were initialized!
[2599693.694878] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 352.63 Sat Nov 7 21:25:42 PST 2015
[2601583.725270] NVRM: API mismatch: the client has the version 352.39, but
[2601583.725270] NVRM: this kernel module has the version 352.63. Please
[2601583.725270] NVRM: make sure that this kernel module and all NVIDIA driver
[2601583.725270] NVRM: components have the same version.

答案1

从 14.04 升级到 16.04 后(从 12.04 升级到 14.04 后立即升级),X11 在启动时出现类似的错误,使用其他版本的 Nvidia 驱动程序:

nvidia api 不匹配 nvidia 内核模块的版本为 340.96,但此 nvidia 驱动程序组件的版本为 304.131

我通过以下步骤获得了一个可以正常运行的 X11 桌面:

sudo aptitude remove nvidia-340 nvidia-304
sudo dpkg-reconfigure xserver-xorg
reboot # (into low-res X11)

Unity dash/launcher --> 附加驱动程序 --> 启用专有 Nvidia-340

重新启动

以下问题的答案很有帮助:
安装 Nvidia 驱动程序后无法正确启动 Ubuntu

答案2

运行“sudo apt-get remove”后,运行以下命令:sudo apt-get autoremove。此命令将删除所有不必要的安装文件。尝试一下,看看这些文件夹是否被删除。

相关内容