如何为 RHEL8 安装 Nvidia 驱动程序

如何为 RHEL8 安装 Nvidia 驱动程序

我正在尝试在 Red Hat Enterprise Linux 8 上为我的显卡安装 Nvidia 驱动程序。我打开终端并将目录更改为 然后Downloads键入suthen./NVIDIA-Linux-x86_64-440.59.run但不断出现错误。我尝试过./NVIDIA-Linux-x86_64-440.59.run --no-x-check并且能够安装驱动程序,但是当计算机重新启动时,我仍然出现登录失败的屏幕。如何禁用 X 服务器

ERROR: You appear to be running an X server; please exit X before            
         installing.  For further details, please see the section INSTALLING   
         THE NVIDIA DRIVER in the README available on the Linux driver         
         download page at www.nvidia.com.


ERROR: Installation has failed.  Please see the file
         '/var/log/nvidia-installer.log' for details.  You may find            
         suggestions on fixing installation problems in the README available   
         on the Linux driver download page at www.nvidia.com.

答案1

你应该直接从他们的网站安装 NVIDIA 驱动程序仅有的如果您是高级用户并且您完全了解该过程的所有复杂性。在 Linux 中,首选安装方法是通过您的发行版的存储库。这是适用于 RHEL/CentOS/Fedora 的手册。请遵循:

或者简单地运行:

sudo rpm -ivh https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
sudo rpm -ivh https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm

或者简单地运行:

sudo dnf update -y
sudo dnf install kmod-nvidia

更改将在最新内核上完全重新启动后生效。

相关内容