错误:软件包:1:nvidia-kmod-390.12-2.el7.x86_64 (cuda) 需要:dkms

$sudo yum install nvidia-kmod-387.26-2.el7.x86_64
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.163.com
软件包 nvidia-kmod 已经被 xorg-x11-drv-nvidia 取代,改为尝试安装 1:xorg-x11-drv-nvidia-390.12-1.el7.x86_64
正在解决依赖关系
--> 正在检查事务
---> 软件包 xorg-x11-drv-nvidia.x86_64.1.390.12-1.el7 将被 安装
--> 正在处理依赖关系 nvidia-kmod >= 1:390.12,它被软件包 1:xorg-x11-drv-nvidia-390.12-1.el7.x86_64 需要
--> 正在检查事务
---> 软件包 nvidia-kmod.x86_64.1.390.12-2.el7 将被 安装
--> 正在处理依赖关系 dkms,它被软件包 1:nvidia-kmod-390.12-2.el7.x86_64 需要
--> 解决依赖关系完成
错误:软件包:1:nvidia-kmod-390.12-2.el7.x86_64 (cuda)
          需要:dkms
 您可以尝试添加 --skip-broken 选项来解决该问题
 您可以尝试执行:rpm -Va --nofiles --nodigest
durongze@localhost:
~
$sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
durongze@localhost:
~
$sudo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
获取http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
获取http://elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
准备中...                          ################################# [100%]
正在升级/安装...
   1:elrepo-release-7.0-3.el7.elrepo  ################################# [100%]
durongze@localhost:
~
$sudo yum install nvidia-detect
已加载插件:fastestmirror, langpacks
elrepo                                                                                                                                                             | 2.9 kB  00:00:00     
elrepo/primary_db                                                                                                                                                  | 481 kB  00:00:04     
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * elrepo: mirrors.tuna.tsinghua.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.163.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 nvidia-detect.x86_64.0.384.111-1.el7.elrepo 将被 安装
--> 解决依赖关系完成

依赖关系解决

==========================================================================================================================================================================================
 Package                                       架构                                   版本                                                   源                                      大小
==========================================================================================================================================================================================
正在安装:
 nvidia-detect                                 x86_64                                 384.111-1.el7.elrepo                                   elrepo                                  23 k

事务概要
==========================================================================================================================================================================================
安装  1 软件包

总下载量:23 k
安装大小:37 k
Is this ok [y/d/N]: y
Downloading packages:
nvidia-detect-384.111-1.el7.elrepo.x86_64.rpm                                                                                                                      |  23 kB  00:00:03     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
警告:RPM 数据库已被非 yum 程序修改。
  正在安装    : nvidia-detect-384.111-1.el7.elrepo.x86_64                                                                                                                             1/1
  验证中      : nvidia-detect-384.111-1.el7.elrepo.x86_64                                                                                                                             1/1

已安装:
  nvidia-detect.x86_64 0:384.111-1.el7.elrepo                                                                                                                                             

完毕!
durongze@localhost:
~
$nvidia-detect -v
Probing for supported NVIDIA devices...
[80ee:beef] InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
No NVIDIA devices were found.
durongze@localhost:
~
$sudo yum --enablerepo=linuxtech-testing install libvdpau
已加载插件:fastestmirror, langpacks


Error getting repository data for linuxtech-testing, repository not found
durongze@localhost:
~
$sudo yum -y install epel-release
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * elrepo: hkg.mirror.rackspace.com
 * extras: mirror.bit.edu.cn
 * updates: mirrors.163.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 epel-release.noarch.0.7-9 将被 安装
--> 解决依赖关系完成

依赖关系解决

==========================================================================================================================================================================================
 Package                                           架构                                        版本                                     源                                           大小
==========================================================================================================================================================================================
正在安装:
 epel-release                                      noarch                                      7-9                                      extras                                       14 k

事务概要
==========================================================================================================================================================================================
安装  1 软件包

总下载量:14 k
安装大小:24 k
Downloading packages:
epel-release-7-9.noarch.rpm                                                                                                                                        |  14 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : epel-release-7-9.noarch                                                                                                                                               1/1
  验证中      : epel-release-7-9.noarch                                                                                                                                               1/1

已安装:
  epel-release.noarch 0:7-9                                                                                                                                                               

完毕!
durongze@localhost:
~
$sudo yum install nvidia-kmod-387.26-2.el7.x86_64
已加载插件:fastestmirror, langpacks
epel/x86_64/metalink                                                                                                                                               | 6.4 kB  00:00:00     
epel                                                                                                                                                               | 4.7 kB  00:00:00     
(1/3): epel/x86_64/group_gz                                                                                                                                        | 266 kB  00:00:00     
epel/x86_64/primary_db         FAILED                                          
http://kartolo.sby.datautama.net.id/EPEL/7/x86_64/repodata/c5c47cd5002910658eedcc5940236c00d1e27b2857627d5ccff48f42085a3846-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found ETA
正在尝试其它镜像。
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/

(2/3): epel/x86_64/primary_db                                                                                                                                      | 6.2 MB  00:00:07     
(3/3): epel/x86_64/updateinfo                                                                                                                                      | 878 kB  00:00:15     
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * elrepo: mirror.rackspace.com
 * epel: ftp.cuhk.edu.hk
 * extras: mirror.bit.edu.cn
 * updates: mirrors.163.com
软件包 nvidia-kmod 已经被 xorg-x11-drv-nvidia 取代,改为尝试安装 1:xorg-x11-drv-nvidia-390.12-1.el7.x86_64
正在解决依赖关系
--> 正在检查事务
---> 软件包 xorg-x11-drv-nvidia.x86_64.1.390.12-1.el7 将被 安装
--> 正在处理依赖关系 nvidia-kmod >= 1:390.12,它被软件包 1:xorg-x11-drv-nvidia-390.12-1.el7.x86_64 需要
--> 正在检查事务
---> 软件包 nvidia-kmod.x86_64.1.390.12-2.el7 将被 安装
--> 正在处理依赖关系 dkms,它被软件包 1:nvidia-kmod-390.12-2.el7.x86_64 需要
--> 正在检查事务
---> 软件包 dkms.noarch.0.2.4.0-1.20170926git959bd74.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

==========================================================================================================================================================================================
 Package                                          架构                                版本                                                        源                                 大小
==========================================================================================================================================================================================
正在安装:
 xorg-x11-drv-nvidia                              x86_64                              1:390.12-1.el7                                              cuda                              4.7 M
为依赖而安装:
 dkms                                             noarch                              2.4.0-1.20170926git959bd74.el7                              epel                               78 k
 nvidia-kmod                                      x86_64                              1:390.12-2.el7                                              cuda                              9.6 M

事务概要
==========================================================================================================================================================================================
安装  1 软件包 (+2 依赖软件包)

总下载量:14 M
安装大小:35 M
Is this ok [y/d/N]: y
Downloading packages:
警告:/var/cache/yum/x86_64/7/epel/packages/dkms-2.4.0-1.20170926git959bd74.el7.noarch.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID 352c64e5: NOKEY          ]  0.0 B/s |    0 B  --:--:-- ETA
dkms-2.4.0-1.20170926git959bd74.el7.noarch.rpm 的公钥尚未安装
(1/3): dkms-2.4.0-1.20170926git959bd74.el7.noarch.rpm                                                                                                              |  78 kB  00:00:00     
警告:/var/cache/yum/x86_64/7/cuda/packages/nvidia-kmod-390.12-2.el7.x86_64.rpm: 头V3 RSA/SHA512 Signature, 密钥 ID 7fa2af80: NOKEY                     ] 1.9 MB/s | 9.9 MB  00:00:02 ETA
nvidia-kmod-390.12-2.el7.x86_64.rpm 的公钥尚未安装
(2/3): nvidia-kmod-390.12-2.el7.x86_64.rpm                                                                                                                         | 9.6 MB  00:00:03     
(3/3): xorg-x11-drv-nvidia-390.12-1.el7.x86_64.rpm                                                                                                                 | 4.7 MB  00:00:03     
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                                                                      4.4 MB/s |  14 MB  00:00:03     
从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 检索密钥
导入 GPG key 0x352C64E5:
 用户ID     : "Fedora EPEL (7) "
 指纹       : 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 软件包     : epel-release-7-9.noarch (@extras)
 来自       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
是否继续?[y/N]:y
从 http://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/7fa2af80.pub 检索密钥
导入 GPG key 0x7FA2AF80:
 用户ID     : "cudatools "
 指纹       : ae09 fe4b bd22 3a84 b2cc fce3 f60f 4b3d 7fa2 af80
 来自       : http://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/7fa2af80.pub
是否继续?[y/N]:y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : dkms-2.4.0-1.20170926git959bd74.el7.noarch                                                                                                                            1/3
  正在安装    : 1:nvidia-kmod-390.12-2.el7.x86_64                                                                                                                                     2/3

你可能感兴趣的:(C++)