ubuntu22.04安装CUDA10.2失败!按照网上教程安装CUDA10.2时候,即执行官方的命令:
sudo sh cuda_10.2.89_440.33.01_linux.run
的时候出现错误:
Installation failed. See log at /var/log/cuda-installer.log for details.
按照要求查看日至文件,看如如下错误:
[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/"
[INFO]: md5 matches, removing file /var/log/nvidia/.uninstallManifests/
[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/"
[INFO]: md5 matches, removing file /usr/local/cuda-10.2/EULA.txt
[INFO]: md5 matches, removing file /var/log/nvidia/.uninstallManifests/
[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/"
[INFO]: md5 matches, removing file /usr/local/cuda-10.2/bin/cuda-uninstaller
[INFO]: md5 matches, removing file /var/log/nvidia/.uninstallManifests/
[ERROR]: boost::filesystem::remove: Directory not empty: "/var/log/nvidia/.uninstallManifests/"
在sh xx.run后面加入路径即可正常安装,命令如下:
sudo sh cuda_10.2.89_440.33.01_linux.run --librarypath=/usr/local/cuda-10.2
参考文献:
【1】https://blog.csdn.net/lightyoung/article/details/110673055
【2】https://www.cnblogs.com/lipoicyclic/p/17481304.html
【3】https://blog.csdn.net/weixin_44633882/article/details/108635093