报错如下:

 

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

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐