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均有效。

转载于:https://www.cnblogs.com/zmbreathing/p/Nvidia-driver_ubuntu.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值