找不到模块index.php,modprobe:FATAL:在目录/lib/modules中找不到模块nvidia uvm/

本文档详细介绍了如何解决Ubuntu在内核更新后导致NVIDIA驱动程序失效的问题。作者通过重新安装NVIDIA驱动,特别是对于没有显示器和键盘连接的‘无头’情况,提供了通过SSH进行修复的步骤,包括修改GRUB配置以启动到文本模式,然后重新安装驱动并恢复GRUB设置。最终成功检测到GPU,表明问题已得到解决。
摘要由CSDN通过智能技术生成

我实际上解决了我自己的问题,并想分享对我有效的解决方案。

神奇的谷歌搜索是:

“modprobe:致命:在目录/lib/modules/中找不到模块nvidia uvm”

这个答案的作者,Sneetsher,做了很好的解释,如果链接没有404,我就从这里开始。

悬崖笔记

诊断:我怀疑Ubuntu可能在我重新启动时安装了内核更新。

解决方案:重新安装NVIDIA驱动程序修复了错误。

问题:运行X服务器时无法安装NVIDIA驱动程序

修复NVIDIA驱动程序的两种不同方法

1)键盘和显示器:

解释askubuntu的答案:1) Switch to text-only console (Ctrl+Alt+F1 or any to F6).

2) Build driver modules for the current kernel (which just installed) sudo ./.run -K

我没有连接到这台电脑的键盘或显示器,所以下面是我实际使用的“无头”方法:

2)通过SSH:

按照本指南重新引导到控制台:$ sudo cp -n /etc/default/grub /etc/default/grub.orig

$ sudo nano /etc/default/grub

$ sudo update-grub

根据以上链接编辑grub文件(3个更改):Comment the line GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”, by adding # at the beginning, which will disable the Ubuntu purple screen.

Change GRUB_CMDLINE_LINUX=”" to GRUB_CMDLINE_LINUX=”text”, this makes Ubuntu boot directly into Text Mode.

Uncomment this line #GRUB_TERMINAL=console, by removing the # at the beginning, this makes Grub Menu into real black & white Text Mode (without background image)

UPDATE: (If running Ubuntu 16.04 If

$ sudo systemctl set-default multi-user.target

Reboot into console$ sudo shutdown -r now

$ sudo service lightdm stop

$ sudo ./.run

遵循NVIDIA驱动程序安装程序$ sudo mv /etc/default/grub /etc/default/grub.textonly

$ sudo mv /etc/default/grub.orig /etc/default/grub

$ sudo update-grub

$ sudo shutdown -r now

结果(现在成功检测到GPU的情况)...

('Extracting', 'MNIST_data/t10k-labels-idx1-ubyte.gz')

I tensorflow/core/common_runtime/gpu/gpu_init.cc:118] Found device 0 with properties:

name: GeForce GTX 970

major: 5 minor: 2 memoryClockRate (GHz) 1.342

pciBusID 0000:01:00.0

Total memory: 3.94GiB

Free memory: 3.88GiB

I tensorflow/core/common_runtime/gpu/gpu_init.cc:138] DMA: 0

I tensorflow/core/common_runtime/gpu/gpu_init.cc:148] 0: Y

I tensorflow/core/common_runtime/gpu/gpu_device.cc:868] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 970, pci bus id: 0000:01:00.0)

(0, 113040.92)

(1, 94895.867)

...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值