CentOS 安装nvidia显卡驱动
yum install nvidia-detect
nvidia-detect -v
Probing for supported NVIDIA devices...
[10de:1b06] NVIDIA Corporation GP102 [GeForce GTX 1080 Ti]
This device requires the current 440.64 NVIDIA driver kmod-nvidia
yum install nvidia-x11-drv-440.64 nvidia-x11-drv-440.64-64bit
--> 处理 nvidia-x11-drv-440.64-1.el7_7.elrepo.x86_64 与 nvidia-x11-drv-390xx 的冲突
--> 处理 nvidia-x11-drv-390xx-390.138-1.el7_8.elrepo.x86_64 与 nvidia-x11-drv-libs 的冲突
--> 处理 nvidia-x11-drv-390xx-390.138-1.el7_8.elrepo.x86_64 与 nvidia-x11-drv 的冲突
--> 解决依赖关系完成
错误:nvidia-x11-drv-390xx conflicts with nvidia-x11-drv-440.64-1.el7_7.elrepo.x86_64
错误:nvidia-x11-drv conflicts with nvidia-x11-drv-390xx-390.138-1.el7_8.elrepo.x86_64
错误:nvidia-x11-drv-390xx conflicts with nvidia-x11-drv-libs-440.64-1.el7_7.elrepo.x86_64
您可以尝试添加 --skip-broken 选项来解决该问题
** 发现 8 个已存在的 RPM 数据库问题, 'yum check' 输出如下:
anaconda-core-21.48.22.147-1.el7.centos.x86_64 有缺少的需求 python-subprocess32
dnf-4.0.9.2-1.el7_6.noarch 有缺少的需求 python2-dnf = ('0', '4.0.9.2', '1.el7_6')
ipa-client-4.6.4-10.el7.centos.x86_64 有缺少的需求 python2-ipaclient = ('0', '4.6.4', '10.el7.centos')
orca-3.6.3-4.el7.x86_64 有缺少的需求 pyatspi
1:python-blivet-0.61.15.72-1.el7.noarch 有缺少的需求 python-blockdev
python-devel-2.7.5-88.el7.x86_64 有缺少的需求 python2-rpm-macros > ('0', '3', '30')
python-jwcrypto-0.4.2-1.el7.noarch 有缺少的需求 python-cryptography >= ('0', '1.5', None)
sos-3.6-11.el7.centos.noarch 有缺少的需求 python2-futures
解决方法:
卸载冲突的包
yum remove -y nvidia-x11-drv-390xx-390.138-1.el7_8.elrepo.x86_64
yum remove -y nvidia-x11-drv-460.39-1.el7_9.elrepo.x86_64
yum --disablerepo=\* --enablerepo=elrepo install kmod-nvidia