Linux安装nvidia遇到的问题you appear to be running an x server please exit x before installing

一.下载nvidia驱动

到NVIDIA 官网上下载驱动文件(.run 格式) :https://www.nvidia.com/en-us/drivers/results/133571/

下载自己对应的版本即可

二.安装

sudo ./NVIDIA-Linux-x86_64-*.run

三.可能遇到的问题

1.you appear to be running an x server please exit x before installing的问题

遇到这个问题关闭X 服务即可,可输入一下命令:

sudo /etc/init.d/lightdm stop
sudo /etc/init.d/lightdm status

对于其他的 linux 版本,如果桌面系统是基于 gdm 类型,应该把命令中的 lightdm 改为 gdm 即可;非这两种桌面系统类型的,百度一下你的 linux 版本关闭 X 服务的相关命令吧。

关闭了 X 服务后图形桌面可能会关闭,因为我是通过 ssh 连接的服务器进行的操作,所以也没有看到具体的变化,然后输入一下命令:

ps aux | grep X

查看还有没有X服务的进程,若有直接sudo kill -9 进程号   杀死X服务进程即可:

sudo kill -9 [‘pid’]

2.An NVIDIA kernel module 'nvidia-uvm' appears to already be loaded in your kernel的问题

很简单,就像原文所述,'nvidia-uvm'程序因故未退出导致按照无法正常进行,直接:

sudo lsof | grep nvidia.uvm

查看哪些程序在占用nvidia.nvm就可以了,可直接通过 sudo kill -9  [`pid`] 杀死相对应的进程即可

对于一些 kill 杀不死的进程可直接重启服务器。

如果还是存在错误,那么就需要查看是否卸载了之前的驱动:

sudo ./NVIDIA-Linux-x86-3*.run --uninstall
sudo reboot now

之后就会安装成功,本人安装时遇到了这两个问题,如有其他问题欢迎大家提出。

  • 8
    点赞
  • 25
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
wing 你懂的不懂也不会下了。 Microsoft WinG version 1.0 -------------------------- This file describes known bugs, gotchas, and helpful hints for the WinG Version 1.0 final release. ISVs may want to distribute portions of this readme file that describe configuration bugs along with shipping products that use WinG. WinG version 1.0 provides fast DIB-to-screen blts under Windows 3.1, Windows for Workgroups 3.11, Windows 95, and Windows NT version 3.5. WinG will not run on Windows NT version 3.1 or on earlier versions of Windows. WinG requires a 386 or better processor to run. WinG will not run on a 286. If you have problems with WinG, please run the wingbug.exe file in the bin directory of the SDK and send the generated report to wing[email protected]. Updated information on WinG is available on CompuServe in the WINMM forum and on ftp.microsoft.com. Known Bugs And Limitations -------------------------- The following are known problems with or useful tidbits of information about WinG version 1.0. - On Windows 3.1, WinGBitmaps must be 8 bits per pixel and must be created with full 256 entry color tables. - WinGDCs are NOT palette devices. You must change their color tables using WinGSetDIBColorTable, not SelectPalette. - WinGBitBlt and WinGStretchBlt only support bltting from WinGDCs to the screen. - Using BitBlt and StretchBlt to blt from one WinGDC to another can be very slow when a clipping region has been selected into the destination. - WinGBitBlt and WinGStretchBlt may return different values than StretchDIBits for identical blts. - A few GDI APIs do not work correctly with WinGDCs: StretchDIBits will not blt 24bpp and 16bpp DIBs into an 8bpp WinGDC. FloodFill with a NULL brush draws incorrectly FloodFill outside of the bounds of a WinGBitmap can flood the entire image Brushes created with CreatePatternBrush with a WinGBitmap fault when selected into a WinGDC on Win3x - use CreateBitmap(8,8,1,8,0) DrawIcon will crash

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值