ubuntu 18.04 安装NVIDIA显卡驱动【2023年3月】

文章描述了在Ubuntu系统中下载并安装NVIDIA驱动的过程,包括从官网获取驱动,通过终端执行安装命令。在安装过程中遇到了缺少gcc和make开发工具的错误,尝试使用apt-getinstall命令安装这些依赖,但遇到了软件包问题及32位兼容性问题。最后提示需要确保gcc和make已安装,并检查它们是否在PATH环境变量中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、进入官网下载相应的驱动程序:

      NVIDIA驱动下载网址:官方驱动 | NVIDIA

     如上图点“搜索”>>下个页面“下载”>>下个页面“同意并开始下载”,下载完成以后默认保存在“下载”文件夹里,是一个以*****.run的文件。

2、开始安装驱动:

   打开终端输入命令:

kim@kim:~$ cd 下载
kim@kim:~/下载$ sudo bash ./NVIDIA-Linux-x86_64-525.89.02.run

在候弹出的窗口选择“continue installation”继续安装>>弹出错误“ERROR: Unable to find the development tool `cc` in your path,please make sure that you have the package 'gcc' installed....”>>安装gcc >>

kim@kim:~$ sudo apt-get update
kim@kim:~$ sudo apt-get install gcc

这时候弹出错误:“

没有可用的软件包 gcc,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
然而下列软件包会取代它:
  gcc-8-doc gcc-6-doc gcc-4.8-doc gcc-5-doc

E: 软件包 gcc 没有可安装候选

”或者

“E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)
E: 无法获取 dpkg 前端锁 (/var/lib/dpkg/lock-frontend),是否有其他进程正占用它?”

“应用程序”>>“软件和更新”>>"ubuntu软件">>勾选"Canonical支持的自由和开源软件(main)"

重新安装驱动,,,

又弹出“Unable to find the development tool `make` in your path。。。”错误

安装make: sudo apt-get install make

Unable to find a suitable destination to install 32-bit compatibility libraries. Your system may not be set up for 32-bit compatibility. 32-bit compatibility files will not be installed; if you wish to install them, re-run the installation and set a valid directory with the --compat32-libdir option.

忽略继续安装

 ERROR: Unable to find the development tool `make` in your path; please make  
         sure that you have the package 'make' installed.  If make is          
         installed on your system, then please check that `make` is in your    
         PATH.

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值