You appear to be running an X server; please exit X before installing. For further details

1.安装nvidia驱动报错:

You appear to be running an X server; please exit X before installing.  For further details

2.原因

主要是由于安装远程控制lightgm 导致X-server启动

3.修复

./NVIDIA-Linux-x86_64-440.82.run --kernel-source-path=/usr/src/kernels/4.4.242-1.el7.elrepo.x86_64 -k $(uname -r) -no-x-check

-no-x-check 表示安装驱动时不检测X服务,非必须

 

posted @ 2022-10-18 16:43  Leonardo-li  阅读(7947)  评论(0编辑  收藏  举报