[Exchange and share] 安装NV I DI A显卡官方闭源驱动失败,记录下过程 Resolved
Tofloor
poster avatar
明天会更好
deepin
2023-04-15 18:08
Author

首先下载里官方for linux 驱动,并解压缩得到:NVIDIA-Linux-x86_64-304.137.run

运行命令:

sx-ljm@sx-ljm-PC:/Desktop$ cd /Downloads/
sx-ljm@sx-ljm-PC:
/Downloads$ ./NVIDIA-Linux-x86_64-304.137.run
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 304.137................................................................................................................................................................
nvidia-installer: Error opening log file '/var/log/nvidia-installer.log' for writing (Permission denied); disabling logging.
sx-ljm@sx-ljm-PC:
/Downloads$

01.png

sx-ljm@sx-ljm-PC:/Downloads$ sudo ./NVIDIA-Linux-x86_64-304.137.run
请输入密码:
验证成功
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 304.137................................................................................................................................................................
sx-ljm@sx-ljm-PC:
/Downloads$

02.png

03.png

sx-ljm@sx-ljm-PC:~/Downloads$ init 3

04.png

进入tty1

输入:用户名

输入:密码

再次sx-ljm@sx-ljm-PC:~/Downloads$ sudo ./NVIDIA-Linux-x86_64-304.137.run

2.png

6.png

5.png

4.png

3.png

最终安装失败

Reply Favorite View the author
All Replies
青稚
deepin
2023-04-15 18:17
#1

https://bbs.deepin.org/phone/zh/post/251771

参考。

Reply View the author
LiuYongzhang
deepin
2023-04-15 18:26
#2

第一:删除旧驱动nvidia

sudo apt remove nvidia*

第二:进入root

sudo -i 然后输入密码

第三:退出桌面模式,进入命令模式

init 3

第四:登录用户名,输入密码,然后进入root

sudo -i 然后输入密码

第五:用cd命令进入下载好的驱动目录

第六:运行驱动安装程序

Reply View the author
jjcui8595
deepin
2023-04-16 00:41
#3

什么显卡用304驱动?

Reply View the author
明天会更好
deepin
2023-04-16 01:59
#4

不行,主要是自带的NVIDIA开源驱动关闭不了,试过网上的办法,没搞定。

Reply View the author
明天会更好
deepin
2023-04-16 02:03
#5
jjcui8595

什么显卡用304驱动?

亮机卡 GeForce GTX 750
截图_选择区域_20230415180109.png

Reply View the author
明天会更好
deepin
2023-04-16 02:11
#6

nvidia-installer log file '/var/log/nvidia-installer.log'

creation time: Sat Apr 15 16:27:05 2023
installer version: 304.137

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

nvidia-installer command line:
./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
-> The file '/tmp/.X0-lock' exists and appears to contain the process ID '1885' of a runnning X server.
ERROR: You appear to be running an X server; please exit X before installing. For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver download page at www.nvidia.com.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

Reply View the author
明天会更好
deepin
2023-04-16 02:12
#7

试试 sudo kill -1885 去

Reply View the author
明天会更好
deepin
2023-04-18 22:55
#8

一、把默认nouveau驱动加入黑名单

sx-ljm@sx-ljm-PC:~/Desktop$ sudo nano /etc/modprobe.d/blacklist.conf

blacklist.conf加入下面内容保存

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

二、更新initramfs

sx-ljm@sx-ljm-PC:~/Desktop$ sudo update-initramfs -u

三、重启

重启进入图形界面,不用退出图形界面,直接进入终端执行:

sudo sh /home/sx-ljm/Desktop/NVIDIA-Linux-x86_64-525.105.17.run -no-x-check -no-nouveau-check -no-opengl-files

过程中提示:“YES” “ NO” 我是 “y“,”n”,“y“,”n”,成功了

Reply View the author