Ubuntu18.0.4 出现NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver,需要切换内核

1. 查看已安装内核:

grep menuentry /boot/grub/grub.cfg


2. 需要更改grub启动

vim /etc/default/grub

Warning: Please don't use old title `Ubuntu,Linux 5.4.0-52-generic' for GRUB_DEFAULT, use `Advanced options for Ubuntu>Ubuntu,Linux 5.4.0-52-generic' (for versions before 2.00) or `gnulinux-advanced-f3c44984-5b39-4939-b7f8-d8b90b2eab8d>gnulinux-5.4.0-52-generic-advanced-f3c44984-5b39-4939-b7f8-d8b90b2eab8d' (for 2.00 or later)

找到:GRUB_DEFAULT=0,

如果你要的版本大于2.0.0的话:

GRUB_DEFAULT="gnulinux-advanced-9ce1b297-0f01-4513-b3f1-4b98dbe4a66f>gnulinux-4.8.0-040800-generic-advanced-9ce1b297-0f01-4513-b3f1-4b98dbe4a66f"

如果小于2.0,则GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu,Linux 5.4.0-52-generic"

谨记:一定按照自己Linux系统的设置,我的设置如下:

然后使用update-grub更新。可能出现以下错误情况,无需理会!!!执行3.


3.reboot进行重启

内核已经发生变化

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值