Rhel

如何為 RHEL8 安裝 Nvidia 驅動程序

  • August 19, 2020

我正在嘗試在 Red Hat Enterprise Linux 8 上為我的顯卡安裝 Nvidia 驅動程序。我打開終端並將目錄更改為thenDownloads並鍵入,但一直出現錯誤。我試過了,我可以安裝驅動程序,但是當電腦重新啟動時,我仍然出現登錄失敗的螢幕。如何禁用 X 伺服器su``./NVIDIA-Linux-x86_64-440.59.run``./NVIDIA-Linux-x86_64-440.59.run --no-x-check

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.

只有當您是高級使用者並且您完全了解該過程的所有復雜性時,您才應該直接從他們的網站安裝 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

更改將在最新核心上完全重新啟動後生效。

引用自:https://unix.stackexchange.com/questions/605185