ubuntu重裝英偉達顯卡驅動

最近因爲種種原因需要修改ubuntu 顯卡驅動,但是按照網上種種教程操作後都是出現,經過多次嘗試後發現是 內核問題,於是安裝相關內容包解決

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

在官網下載英偉達驅動

https://www.nvidia.com/Download/index.aspx?lang=en-us

NVIDIA-Linux-x86_64-525.147.05.run

然後利用*.RUN 進行安裝提示

sudo ./NVIDIA-Linux-x86_64-525.147.05.run -no-x-check -no-nouveau-check -no-opengl-files, 發現報錯,

ERROR:Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured on Red Hat Linux system, for example ,be sure you have the 'kernel-source' or 'kernel-devel' RPM installed .If you know the correct kernel source files are installed ,you may specify the kernel source path with the '--kernel-source-path' command line option.

2、於是使用命令查看機器 kernel

uname -r

>>5.15.0-051500-generic

3、於是從 Ubuntu 官方內核庫中下載 kernel 5.15

wget https://kernel.ubuntu.com/mainline/v5.15/amd64/linux-headers-5.15.0-051500-generic_5.15.0-051500.202110312130_amd64.deb

wget https://kernel.ubuntu.com/mainline/v5.15/amd64/linux-headers-5.15.0-051500_5.15.0-051500.202110312130_all.deb

wget https://kernel.ubuntu.com/mainline/v5.15/amd64/linux-image-unsigned-5.15.0-051500-generic_5.15.0-051500.202110312130_amd64.deb

wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb

4、下載完成後安裝

sudo dpkg -i *.deb

5、並使用如下命令更新 Grub 引導加載程序:

sudo update-grub

6、如果使用 BURG 引導加載程序,請運行:

sudo update-burg

7、重啓系統

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章