我想根据 NVIDIA CUDA 工具包网站上的信息安装 CUDA
wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda-repo-rhel8-10-2-local-10.2.89-440.33.01-1.0-1.x86_64.rpm
sudo rpm -i cuda-repo-rhel8-10-2-local-10.2.89-440.33.01-1.0-1.x86_64.rpm
sudo dnf clean all
sudo dnf -y module install nvidia-driver:latest-dkms
sudo dnf -y install cuda
...
Error:
Problem 1: conflicting requests
- nothing provides dkms needed by kmod-nvidia-latest-dkms-3:440.33.01-1.el8.x86_64
Run Code Online (Sandbox Code Playgroud)
如果我通过启用epel
sudo subscription-manager repos --enable "codeready-builder-for-rhel-8-$(arch)-rpms"
[sudo] password for adminsafe20:
Repository 'codeready-builder-for-rhel-8-x86_64-rpms' is enabled for this system.
Run Code Online (Sandbox Code Playgroud)
看起来不错,但我没有看到任何返回,yum search dkms除了:
============================== Name Matched: dkms ==============================
kmod-nvidia-latest-dkms.x86_64 : NVIDIA display driver kernel module
Run Code Online (Sandbox Code Playgroud)
我收到与尝试安装之前相同的原始消息:
- nothing provides dkms …Run Code Online (Sandbox Code Playgroud) 我已经尝试过systemctl disable graphical.target但没有成功。inittab 准确地说“在此处添加配置不会对您的系统产生任何影响”。