我的内核是3.13.0-165。
我从 nvidia 源安装了 nvidia-410(http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64)。
以下是输出:安装似乎正确,并且 dkms 模块已成功安装。
Removing all DKMS Modules
Done.
update-initramfs: deferring update (trigger activated)
A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau from loading. This can be reverted by deleting /etc/modprobe.d/nvidia-graphics-drivers.conf.
A new initrd image has also been created. To revert, please replace /boot/initrd-3.13.0-165-generic with /boot/initrd-$(uname -r)-backup.
*****************************************************************************
*** Reboot your computer and verify that the NVIDIA graphics driver can ***
*** be loaded. ***
*****************************************************************************
INFO:Enable nvidia-410
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Loading new nvidia-410-410.79 DKMS files...
Building only for 3.13.0-165-generic
Building for architecture x86_64
Building initial module for 3.13.0-165-generic
Secure Boot not enabled on this system.
Done.
nvidia_410:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.13.0-165-generic/updates/dkms/
nvidia_410_modeset.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.13.0-165-generic/updates/dkms/
nvidia_410_drm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.13.0-165-generic/updates/dkms/
nvidia_410_uvm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.13.0-165-generic/updates/dkms/
depmod....
DKMS: install completed.
Processing triggers for initramfs-tools (0.122ubuntu8.14) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-165-generic
重启后,我运行了 nvidia-smi。它显示无法连接到 nvidia 驱动程序。
然后我运行 modprobe nvidia,以下是输出:
modprobe: ERROR: could not insert 'nvidia_410': Package not installed
我检查了一切,但仍然无法正常工作。
请帮我找出问题所在,谢谢!
答案1
最后我使用 nVIDIA 提供的运行文件安装了 NVIDIA 驱动程序。问题是没有 DKMS 就可以安装。问题可能是因为 DKMS 无法与过时的内核配合使用。