报错如下:

 

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.

  1. 查看报错提示日志/var/log/nvidia-installer.log

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface

-> Detected 24 CPUs online; setting concurrency level to 24.

-> Tagging shared libraries with chcon -t textrel_shlib_t.

-> The file '/tmp/.X0-lock' exists and appears to contain the process ID '14506' of a running 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.

 Operation not permitted

  1. 服务器正在运行14506,X-server,

ps -ef查看14506

 sudo Kill -9 14506:杀死进程服务,重新执行nvidia安装程序(NVIDIA-Linux-x86_64-515.65.01.run)即可

 

(不建议用网上的相关解决方案,需要reboot重启,针对日志问题去解决)

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐