当前位置:   article > 正文

ubuntu 18.0安装NVIDIA显卡驱动报错ERROR : An error occurred while performing the step : ” Building kernel_error: an error occurred while performing the step

error: an error occurred while performing the step: "checking to see whether

根据文章:https://blog.csdn.net/weixin_40769885/article/details/90607545?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-1&spm=1001.2101.3001.4242
推断是因为根据某些教程安装驱动时升级了内核,重启之后新的内核和之前旧版本的驱动文件不匹配,导致无法安装驱动。

解决方法:内核降级

  1. 由于内核的升级是安装新版本内核的同时保留旧版内核,所以重启ubuntu并进入高级选项,选择旧版本的内核,我的是5.3.0-62-generic,用旧版本的内核进入后,卸载新版本的内核
#卸载最新内核
sudo apt-get remove linux-image-5.XX.X-XX-generic
#更新grub
sudo update-grub
  • 1
  • 2
  • 3
  • 4

此处参考:https://www.cnblogs.com/liuyublog/p/9376983.html

  1. 重启ubuntu,启动过程中,如果出现选择启动项界面(这里默认选的是Advanced options for Ubuntu),那什么都不要动,他自己过一会就会选默认的选项进去,进去以后发现内核正常,显卡驱动等都可以正常使用;如果选了上面的Ubuntu那就可能内核出错。
    此处参考:https://blog.csdn.net/qq_29631521/article/details/89036485?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param

备注: 删除多余内核的方式https://blog.csdn.net/u013431916/article/details/82530523

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/代码探险家/article/detail/897487
推荐阅读
相关标签
  

闽ICP备14008679号