ubuntu18.04.05安装显卡1080ti 1070ti显卡的驱动时报错-【解决方案】

14 篇文章 0 订阅
4 篇文章 0 订阅

ubuntu18.04.05 裸机 安装显卡1080ti 1070ti显卡的驱动时报错

 

执行安装包错:

 
  1. chmod -R 777 NVIDIA-Linux-x86_64-460.39.run

  2.  
  3. sudo ./NVIDIA-Linux-x86_64-460.39.run

 

 ERROR: The Nouveau kernel driver is currently in use by your system.  This driver is incompatible with the NVIDIA driver, and must be disabled before proceeding.  Please consult the        
         NVIDIA driver README and your Linux distribution's documentation for details on how to correctly disable the Nouveau kernel driver.                                                   
                                                                                                                                                                                               
                                                                                              OK     

 

 

 

For some distributions, Nouveau can be disabled by adding a file in the modprobe configuration directory.  Would you like nvidia-installer to attempt to create this modprobe file for       
  you?                                                                                                                                                                                         
                                                                                                                                                                                               
                                                               Yes                                                            No      

选择yes继续报错

WARNING: One or more modprobe configuration files to disable Nouveau are already present at: /etc/modprobe.d/nvidia-installer-disable-nouveau.conf.  Please be sure you have rebooted your   
           system since these files were written.  If you have rebooted, then Nouveau may be enabled for other reasons, such as being included in the system initial ramdisk or in your X      
           configuration file.  Please consult the NVIDIA driver README and your Linux distribution's documentation for details on how to correctly disable the Nouveau kernel driver.         
                                                                                                                                                                                               
                                                                                              OK  

 

 

 ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the   
         Linux driver download page at www.nvidia.com.                                                                                                                                         
                                                                                                                                                                                               
                                                                                              OK              

 

 

 

【解决方案】:

参考:

https://askubuntu.com/questions/841876/how-to-disable-nouveau-kernel-driver

https://linuxconfig.org/how-to-disable-nouveau-nvidia-driver-on-ubuntu-18-04-bionic-beaver-linux

https://stackoverflow.com/questions/51789443/trying-to-install-cuda-9-2-on-ubuntu-18-04

 

Blacklist Nvidia nouveau driver

Open up terminal and enter the following linux commands:

 
  1. sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"

  2. sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"

 Confirm the content of the new modprobe config file:

 
  1. cat /etc/modprobe.d/blacklist-nvidia-nouveau.conf

  2. blacklist nouveau

  3. options nouveau modeset=0

Update kernel initramfs

Enter the following linux command to regenerate initramfs:

sudo update-initramfs -u

 

Reboot

All should be ready now. Reboot your system:

 

sudo reboot

 

 

!1,提示要安装cc 即gcc

sudo apt install gcc

 

!2,提示:

继续安装make工具

sudo apt install make  

!3,提示:

WARNING: nvidia-installer was forced to guess the X library path '/usr/lib' and X module path '/usr/lib/xorg/modules'; these paths were not queryable from the system.  If X fails to find
           the NVIDIA X driver module, please install the `pkg-config` utility and the X.Org SDK/development package for your distribution and reinstall the driver.                          
       
                                                                                              OK                                                                                              
 

点击ok继续,就会成功,后面一步选择yes就会最终成功。

最后再装一个nvcc工具

sudo apt install nvidia-cuda-toolkit

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Zda天天爱打卡

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值