sudo ./NVIDIA-Linux-x86_64-440.44.run的过程中
出现了这个错误,尝试了关闭显示:
sudo service lightdm stop
没有什么用
最后发现这条错误之后会有一条提示信息,告诉你去看log:
/var/log/nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Sep 15 22:26:40 2020
installer version: 440.44
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
nvidia-installer command line:
./nvidia-installer
Unable to load: nvidia-installer ncurses v6 user interface
Using: nvidia-installer ncurses user interface
-> Detected 48 CPUs online; setting concurrency level to 32.
-> The file '/tmp/.X0-lock' exists and appears to contain the process ID '2272' 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.
比较重要的是这句话:
The file '/tmp/.X0-lock' exists and appears to contain the process ID '2272' of a runnning X server.
杀掉这个进程就好了
在尝试使用'sudo ./NVIDIA-Linux-x86_64-440.44.run'安装NVIDIA驱动时,出现错误提示需退出X server。关闭lightdm服务无效,查看'/var/log/nvidia-installer.log'日志后发现运行的X服务器进程ID为2272,终止该进程解决了问题。

1904

被折叠的 条评论
为什么被折叠?



