欢迎光临
我们一直在努力

Ubuntu18.04.2下安装 RTX2080 Nvidia显卡驱动的方法

在Ubuntu 18.04.2下安装 RTX2080 Nvidia显卡驱动的方法

准备工作

1、确保你的系统是Ubuntu 18.04.2,可以通过以下命令查看:

lsb_release -a

2、关闭图形界面,因为我们需要使用命令行安装驱动,可以通过以下命令关闭图形界面:

sudo systemctl isolate multi-user.target

3、更新系统软件包列表:

sudo apt update

禁用nouveau驱动

1、打开/etc/modprobe.d/blacklist.conf文件:

sudo nano /etc/modprobe.d/blacklist.conf

2、在文件中添加以下内容:

blacklist nouveau
options nouveau modeset=0

3、保存并退出文件。

安装内核头文件和构建工具

1、安装内核头文件:

sudo apt install build-essential dkms linux-headers-$(uname -r)

2、安装构建工具:

sudo apt install nvidia-kernel-dkms nvidia-prime nvidia-settings nvidia-prime-applet nvidia-persistenced nvidia-utils libnvidia-common-390 libnvidia-decode-390 libnvidia-encode-390 libnvidia-fbc1-390 libnvidia-gl-390 libnvidia-ifr1-390 libnvidia-query3-390 libnvidia-util390 libstdc++6:i386 libx11-xcb1 libxcb-dri3-0 libxcb-present0 libxcb-sync1 libxss1 libxxf86vm1:i386 nvidia-driver-390 nvidia-modeset nvidia-prime nvidia-settings nvidia-prime-applet nvidia-persistenced nvidia-utils xserver-xorg-video-nvidia-390 xserver-xorg-video-nvidia-modesetting

下载NVIDIA驱动

1、根据你的RTX2080显卡型号,从NVIDIA官网下载相应的驱动:https://www.nvidia.com/Download/index.aspx?lang=en-us

对于GeForce RTX 2080 Ti,选择“Linux”->“GPU”->“GeForce RTX 2080 Ti”->“runfile (local)”,然后点击“Download”。

安装驱动

1、将下载的驱动文件解压到当前目录:

tar -xvf NVIDIA-Linux-x86_64-xxxxx.run --strip 1

注意:将xxxxx替换为实际的文件名。

2、进入解压后的驱动目录:

cd NVIDIA-Linux-x86_64-xxxxx/DisplayDriver/390.xx/lib/x86_64/extensions/libcuda.so/../../../../src/nvcc/bin/../lib64/libnvcuvid.so* && sudo dpkg -i *.deb && sudo apt install -fy && sudo reboot now && cd ~ && rm -rf NVIDIA* && echo "Rebooting..." && sleep 5 && reboot now && echo "Installation Completed!" && sleep 5 && exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit 1; exit 0; echo "Installation failed! Please reboot and try again." && exit
赞(0) 打赏
未经允许不得转载:九八云安全 » Ubuntu18.04.2下安装 RTX2080 Nvidia显卡驱动的方法

评论 抢沙发