Ubuntu 18.04 + Gtx 1660 安裝Nvidia 顯卡驅動


1.UEFI禁用secure boot(我的系統是win10主系統,引導ubuntu,安裝驅動前電腦存在win10 uefi引導問題)

  1. Make sure the "OS Type" is "Windows UEFI"
  2. Enter "Key Management"
  3. Select "Clear Secure Boot keys" (You will have the option "Install default Secure Boot keys" to restore the default keys after you cleared the Secure Boot 

After you cleared the Secure Boot Keys, Secure Boot will be automatically disabled. You can set the OS Type to Other OS now.

(第一點可以忽略。。)

 

2.進入root權限並sudo add-apt-repository ppa:graphics-drivers/ppa

 

3.出現Error:retrieving gpg key timed out.

 

4.根據https://www.jianshu.com/p/e2a15336f174教程,進入https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa手動添加ppa

 在ppa源文件末尾添加相關內容后點擊保存出現以下警告

在sudo apt-get upgrade時出現“E:dpkg被中斷,您必須手工運行 ‘sudo dpkg --configure -a’解決此問題”,輸入sudo rm /var/lib/dpkg/updates/*,再輸入sudo apt-get update,以及sudo apt-get upgrade

 

5.輸入ubuntu-drivers devices //查看可安裝的驅動列表(選擇recommended那項進行安裝)

 

6.sudo apt install nvidia-driver-430

期間出現“不能連接到cn.archive.ubuntu.com:http:[IP:91.189.91.26 80]”

E:有幾個軟件包無法下載,要不運行……試試?

 

7.到了第二天換了一個網絡再次輸入sudo apt install nvidia-driver-430

8.輸入sudo reboot 重啟,重啟后感受到桌面分辨率明顯變化,輸入nvidia-smi,nvidia-settings均有效。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM