sudo apt update // 更新
sudo ubuntu-drivers devices // 显示可以安装的nvidia驱动
sudo apt install nvidia-xxx // xxx 写上你输入上一步命令行显示的推荐(recommend)安装的驱动版本号
reboot //重启
nvidia-smi //查看安装成功
以下为执行命令过程记录:
root@dell-r740-27:~# sudo apt update
Hit:1 https://mirrors.aliyun.com/ubuntu jammy InRelease
Get:2 https://mirrors.aliyun.com/ubuntu jammy-updates InRelease [119 kB]
Get:3 https://mirrors.aliyun.com/ubuntu jammy-backports InRelease [108 kB]
Get:4 https://mirrors.aliyun.com/ubuntu jammy-security InRelease [110 kB]
Get:5 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 Packages [577 kB]
Get:6 https://mirrors.aliyun.com/ubuntu jammy-updates/main Translation-en [166 kB]
Get:7 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [14.4 kB]
Get:8 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 Packages [226 kB]
Get:9 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted Translation-en [33.7 kB]
Get:10 https://mirrors.aliyun.com/ubuntu jammy-updates/universe amd64 Packages [887 kB]
Get:11 https://mirrors.aliyun.com/ubuntu jammy-updates/universe Translation-en [182 kB]
Get:12 https://mirrors.aliyun.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [18.8 kB]
Get:13 https://mirrors.aliyun.com/ubuntu jammy-updates/multiverse amd64 Packages [34.9 kB]
Get:14 https://mirrors.aliyun.com/ubuntu jammy-updates/multiverse Translation-en [8,080 B]
Get:15 https://mirrors.aliyun.com/ubuntu jammy-security/main amd64 Packages [362 kB]
Get:16 https://mirrors.aliyun.com/ubuntu jammy-security/main Translation-en [107 kB]
Get:17 https://mirrors.aliyun.com/ubuntu jammy-security/main amd64 c-n-f Metadata [9,716 B]
Get:18 https://mirrors.aliyun.com/ubuntu jammy-security/restricted amd64 Packages [225 kB]
Get:19 https://mirrors.aliyun.com/ubuntu jammy-security/restricted Translation-en [33.3 kB]
Get:20 https://mirrors.aliyun.com/ubuntu jammy-security/universe amd64 Packages [709 kB]
Get:21 https://mirrors.aliyun.com/ubuntu jammy-security/universe Translation-en [122 kB]
Get:22 https://mirrors.aliyun.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [14.3 kB]
Get:23 https://mirrors.aliyun.com/ubuntu jammy-security/multiverse amd64 Packages [30.2 kB]
Get:24 https://mirrors.aliyun.com/ubuntu jammy-security/multiverse Translation-en [5,828 B]
Fetched 4,103 kB in 5s (772 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
50 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@dell-r740-27:~# sudo ubuntu-drivers devices
== /sys/devices/pci0000:ae/0000:ae:00.0/0000:af:00.0 ==
modalias : pci:v000010DEd00002235sv000010DEsd0000145Abc03sc02i00
vendor : NVIDIA Corporation
model : GA102GL [A40]
driver : nvidia-driver-470 - distro non-free
driver : nvidia-driver-470-server - distro non-free
driver : nvidia-driver-515 - distro non-free
driver : nvidia-driver-525-server - distro non-free
driver : nvidia-driver-530-open - distro non-free recommended
driver : nvidia-driver-525 - distro non-free
driver : nvidia-driver-530 - distro non-free
driver : nvidia-driver-515-open - distro non-free
driver : nvidia-driver-510 - distro non-free
driver : nvidia-driver-515-server - distro non-free
driver : nvidia-driver-525-open - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin
root@dell-r740-27:~#
root@dell-r740-27:~# sudo apt install nvidia-driver-530-open
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
cpp-12 dctrl-tools dkms gcc-12 libasan8 libegl-mesa0 libegl1 libgbm1 libgcc-12-dev libnvidia-cfg1-530 libnvidia-common-530 libnvidia-compute-530
libnvidia-decode-530 libnvidia-encode-530 libnvidia-extra-530 libnvidia-fbc1-530 libnvidia-gl-530 libtsan2 libvdpau1 libwayland-server0 libxcvt0
libxfont2 libxnvctrl0 mesa-vdpau-drivers nvidia-compute-utils-530 nvidia-dkms-530-open nvidia-kernel-common-530 nvidia-kernel-source-530-open
nvidia-prime nvidia-settings nvidia-utils-530 screen-resolution-extra vdpau-driver-all x11-xkb-utils xcvt xfonts-base xfonts-encodings xfonts-utils
xserver-common xserver-xorg-core xserver-xorg-video-nvidia-530
Suggested packages:
gcc-12-locales debtags menu gcc-12-multilib gcc-12-doc nvidia-driver-530 libvdpau-va-gl1 xfs | xserver xfonts-100dpi | xfonts-75dpi xfonts-scalable
Recommended packages:
libnvidia-compute-530:i386 libnvidia-decode-530:i386 libnvidia-encode-530:i386 libnvidia-fbc1-530:i386 libnvidia-gl-530:i386
The following NEW packages will be installed:
cpp-12 dctrl-tools dkms gcc-12 libasan8 libegl-mesa0 libegl1 libgbm1 libgcc-12-dev libnvidia-cfg1-530 libnvidia-common-530 libnvidia-compute-530
libnvidia-decode-530 libnvidia-encode-530 libnvidia-extra-530 libnvidia-fbc1-530 libnvidia-gl-530 libtsan2 libvdpau1 libwayland-server0 libxcvt0
libxfont2 libxnvctrl0 mesa-vdpau-drivers nvidia-compute-utils-530 nvidia-dkms-530-open nvidia-driver-530-open nvidia-kernel-common-530
nvidia-kernel-source-530-open nvidia-prime nvidia-settings nvidia-utils-530 screen-resolution-extra vdpau-driver-all x11-xkb-utils xcvt xfonts-base
xfonts-encodings xfonts-utils xserver-common xserver-xorg-core xserver-xorg-video-nvidia-530
0 upgraded, 42 newly installed, 0 to remove and 50 not upgraded.
Need to get 460 MB of archives.
After this operation, 1,283 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 cpp-12 amd64 12.1.0-2ubuntu1~22.04 [63.8 MB]
Get:2 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 libasan8 amd64 12.1.0-2ubuntu1~22.04 [2,455 kB]
Get:3 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 libtsan2 amd64 12.1.0-2ubuntu1~22.04 [2,477 kB]
Get:4 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 libgcc-12-dev amd64 12.1.0-2ubuntu1~22.04 [2,618 kB]
Get:5 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 gcc-12 amd64 12.1.0-2ubuntu1~22.04 [73.1 MB]
Get:6 https://mirrors.aliyun.com/ubuntu jammy/main amd64 dctrl-tools amd64 2.24-3build2 [66.9 kB]
Get:7 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 dkms all 2.8.7-2ubuntu2.1 [70.0 kB]
Get:8 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 libwayland-server0 amd64 1.20.0-1ubuntu0.1 [34.3 kB]
Get:9 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 libgbm1 amd64 22.2.5-0ubuntu0.1~22.04.1 [33.0 kB]
Get:10 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 libegl-mesa0 amd64 22.2.5-0ubuntu0.1~22.04.1 [111 kB]
Get:11 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 libnvidia-cfg1-530 amd64 530.41.03-0ubuntu0.22.04.2 [102 kB]
Get:12 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 libnvidia-common-530 all 530.41.03-0ubuntu0.22.04.2 [10.1 kB]
Get:13 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 libnvidia-compute-530 amd64 530.41.03-0ubuntu0.22.04.2 [55.4 MB]
Get:14 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 libnvidia-decode-530 amd64 530.41.03-0ubuntu0.22.04.2 [1,840 kB]
Get:15 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 libnvidia-encode-530 amd64 530.41.03-0ubuntu0.22.04.2 [89.7 kB]
Get:16 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 libnvidia-extra-530 amd64 530.41.03-0ubuntu0.22.04.2 [67.1 kB]
Get:17 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 libnvidia-fbc1-530 amd64 530.41.03-0ubuntu0.22.04.2 [51.0 kB]
Get:18 https://mirrors.aliyun.com/ubuntu jammy/main amd64 libegl1 amd64 1.4.0-1 [28.6 kB]
Get:19 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 libnvidia-gl-530 amd64 530.41.03-0ubuntu0.22.04.2 [197 MB]
Get:20 https://mirrors.aliyun.com/ubuntu jammy/main amd64 libvdpau1 amd64 1.4-3build2 [27.0 kB]
Get:21 https://mirrors.aliyun.com/ubuntu jammy/main amd64 libxcvt0 amd64 0.1.1-3 [5,494 B]
Get:22 https://mirrors.aliyun.com/ubuntu jammy/main amd64 libxfont2 amd64 1:2.0.5-1build1 [94.5 kB]
Get:23 https://mirrors.aliyun.com/ubuntu jammy/main amd64 libxnvctrl0 amd64 510.47.03-0ubuntu1 [11.5 kB]
Get:24 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 mesa-vdpau-drivers amd64 22.2.5-0ubuntu0.1~22.04.1 [3,312 kB]
Get:25 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 nvidia-compute-utils-530 amd64 530.41.03-0ubuntu0.22.04.2 [117 kB]
Get:26 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 nvidia-kernel-source-530-open amd64 530.41.03-0ubuntu0.22.04.2 [4,098 kB]
Get:27 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 nvidia-kernel-common-530 amd64 530.41.03-0ubuntu0.22.04.2 [41.7 MB]
Get:28 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 nvidia-dkms-530-open amd64 530.41.03-0ubuntu0.22.04.2 [10.3 kB]
Get:29 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 nvidia-utils-530 amd64 530.41.03-0ubuntu0.22.04.2 [385 kB]
Get:30 https://mirrors.aliyun.com/ubuntu jammy/main amd64 x11-xkb-utils amd64 7.7+5build4 [172 kB]
Get:31 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 xserver-common all 2:21.1.4-2ubuntu1.7~22.04.1 [28.0 kB]
Get:32 https://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 xserver-xorg-core amd64 2:21.1.4-2ubuntu1.7~22.04.1 [1,476 kB]
Get:33 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 xserver-xorg-video-nvidia-530 amd64 530.41.03-0ubuntu0.22.04.2 [1,588 kB]
Get:34 https://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 nvidia-driver-530-open amd64 530.41.03-0ubuntu0.22.04.2 [7,798 B]
Get:35 https://mirrors.aliyun.com/ubuntu jammy/main amd64 nvidia-prime all 0.8.17.1 [9,956 B]
Get:36 https://mirrors.aliyun.com/ubuntu jammy/main amd64 screen-resolution-extra all 0.18.2 [4,396 B]
Get:37 https://mirrors.aliyun.com/ubuntu jammy/main amd64 nvidia-settings amd64 510.47.03-0ubuntu1 [960 kB]
Get:38 https://mirrors.aliyun.com/ubuntu jammy/main amd64 vdpau-driver-all amd64 1.4-3build2 [4,510 B]
Get:39 https://mirrors.aliyun.com/ubuntu jammy/main amd64 xcvt amd64 0.1.1-3 [7,140 B]
Get:40 https://mirrors.aliyun.com/ubuntu jammy/main amd64 xfonts-encodings all 1:1.0.5-0ubuntu2 [578 kB]
Get:41 https://mirrors.aliyun.com/ubuntu jammy/main amd64 xfonts-utils amd64 1:7.7+6build2 [94.6 kB]
Get:42 https://mirrors.aliyun.com/ubuntu jammy/main amd64 xfonts-base all 1:1.0.5 [5,896 kB]
Fetched 460 MB in 11min 3s (695 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package cpp-12.
(Reading database ... 108079 files and directories currently installed.)
Preparing to unpack .../00-cpp-12_12.1.0-2ubuntu1~22.04_amd64.deb ...
Unpacking cpp-12 (12.1.0-2ubuntu1~22.04) ...........................................................................................................]
Selecting previously unselected package libasan8:amd64..............................................................................................]
Preparing to unpack .../01-libasan8_12.1.0-2ubuntu1~22.04_amd64.deb ...
Unpacking libasan8:amd64 (12.1.0-2ubuntu1~22.04) ...
Selecting previously unselected package libtsan2:amd64..............................................................................................]
Preparing to unpack .../02-libtsan2_12.1.0-2ubuntu1~22.04_amd64.deb ...
Unpacking libtsan2:amd64 (12.1.0-2ubuntu1~22.04) ...
Selecting previously unselected package libgcc-12-dev:amd64.........................................................................................]
Preparing to unpack .../03-libgcc-12-dev_12.1.0-2ubuntu1~22.04_amd64.deb ...
Unpacking libgcc-12-dev:amd64 (12.1.0-2ubuntu1~22.04) ..............................................................................................]
Selecting previously unselected package gcc-12.
Preparing to unpack .../04-gcc-12_12.1.0-2ubuntu1~22.04_amd64.deb ...
Unpacking gcc-12 (12.1.0-2ubuntu1~22.04) ...........................................................................................................]
Selecting previously unselected package dctrl-tools.
Preparing to unpack .../05-dctrl-tools_2.24-3build2_amd64.deb ...
Unpacking dctrl-tools (2.24-3build2) ...............................................................................................................]
Selecting previously unselected package dkms........................................................................................................]
Preparing to unpack .../06-dkms_2.8.7-2ubuntu2.1_all.deb ...
Unpacking dkms (2.8.7-2ubuntu2.1) ...
Selecting previously unselected package libwayland-server0:amd64....................................................................................]
Preparing to unpack .../07-libwayland-server0_1.20.0-1ubuntu0.1_amd64.deb ...
Unpacking libwayland-server0:amd64 (1.20.0-1ubuntu0.1) ...
Selecting previously unselected package libgbm1:amd64...............................................................................................]
Preparing to unpack .../08-libgbm1_22.2.5-0ubuntu0.1~22.04.1_amd64.deb ...
Unpacking libgbm1:amd64 (22.2.5-0ubuntu0.1~22.04.1) ................................................................................................]
Selecting previously unselected package libegl-mesa0:amd64.
Preparing to unpack .../09-libegl-mesa0_22.2.5-0ubuntu0.1~22.04.1_amd64.deb ...
Unpacking libegl-mesa0:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...........................................................................................]
Selecting previously unselected package libnvidia-cfg1-530:amd64.
Preparing to unpack .../10-libnvidia-cfg1-530_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking libnvidia-cfg1-530:amd64 (530.41.03-0ubuntu0.22.04.2) ....................................................................................]
Selecting previously unselected package libnvidia-common-530........................................................................................]
Preparing to unpack .../11-libnvidia-common-530_530.41.03-0ubuntu0.22.04.2_all.deb ...
Unpacking libnvidia-common-530 (530.41.03-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-compute-530:amd64.................................................................................]
Preparing to unpack .../12-libnvidia-compute-530_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking libnvidia-compute-530:amd64 (530.41.03-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-decode-530:amd64..................................................................................]
Preparing to unpack .../13-libnvidia-decode-530_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking libnvidia-decode-530:amd64 (530.41.03-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-encode-530:amd64..................................................................................]
Preparing to unpack .../14-libnvidia-encode-530_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking libnvidia-encode-530:amd64 (530.41.03-0ubuntu0.22.04.2) ..................................................................................]
Selecting previously unselected package libnvidia-extra-530:amd64.
Preparing to unpack .../15-libnvidia-extra-530_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking libnvidia-extra-530:amd64 (530.41.03-0ubuntu0.22.04.2) ...................................................................................]
Selecting previously unselected package libnvidia-fbc1-530:amd64.
Preparing to unpack .../16-libnvidia-fbc1-530_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking libnvidia-fbc1-530:amd64 (530.41.03-0ubuntu0.22.04.2) ....................................................................................]
Selecting previously unselected package libegl1:amd64...............................................................................................]
Preparing to unpack .../17-libegl1_1.4.0-1_amd64.deb ...
Unpacking libegl1:amd64 (1.4.0-1) ...
Selecting previously unselected package libnvidia-gl-530:amd64......................................................................................]
Preparing to unpack .../18-libnvidia-gl-530_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking libnvidia-gl-530:amd64 (530.41.03-0ubuntu0.22.04.2) ...
Selecting previously unselected package libvdpau1:amd64.............................................................................................]
Preparing to unpack .../19-libvdpau1_1.4-3build2_amd64.deb ...
Unpacking libvdpau1:amd64 (1.4-3build2) ...#####....................................................................................................]
Selecting previously unselected package libxcvt0:amd64.
Preparing to unpack .../20-libxcvt0_0.1.1-3_amd64.deb ...
Unpacking libxcvt0:amd64 (0.1.1-3) ...###########...................................................................................................]
Selecting previously unselected package libxfont2:amd64.
Preparing to unpack .../21-libxfont2_1%3a2.0.5-1build1_amd64.deb ...
Unpacking libxfont2:amd64 (1:2.0.5-1build1) ...####.................................................................................................]
Selecting previously unselected package libxnvctrl0:amd64...........................................................................................]
Preparing to unpack .../22-libxnvctrl0_510.47.03-0ubuntu1_amd64.deb ...
Unpacking libxnvctrl0:amd64 (510.47.03-0ubuntu1) ...
Selecting previously unselected package mesa-vdpau-drivers:amd64....................................................................................]
Preparing to unpack .../23-mesa-vdpau-drivers_22.2.5-0ubuntu0.1~22.04.1_amd64.deb ...
Unpacking mesa-vdpau-drivers:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
Selecting previously unselected package nvidia-compute-utils-530....................................................................................]
Preparing to unpack .../24-nvidia-compute-utils-530_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking nvidia-compute-utils-530 (530.41.03-0ubuntu0.22.04.2) ...
Selecting previously unselected package nvidia-kernel-source-530-open...............................................................................]
Preparing to unpack .../25-nvidia-kernel-source-530-open_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking nvidia-kernel-source-530-open (530.41.03-0ubuntu0.22.04.2) ...............................................................................]
Selecting previously unselected package nvidia-kernel-common-530.
Preparing to unpack .../26-nvidia-kernel-common-530_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking nvidia-kernel-common-530 (530.41.03-0ubuntu0.22.04.2) ....................................................................................]
Selecting previously unselected package nvidia-dkms-530-open.
Preparing to unpack .../27-nvidia-dkms-530-open_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking nvidia-dkms-530-open (530.41.03-0ubuntu0.22.04.2) ........................................................................................]
Selecting previously unselected package nvidia-utils-530.####.......................................................................................]
Preparing to unpack .../28-nvidia-utils-530_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking nvidia-utils-530 (530.41.03-0ubuntu0.22.04.2) ...
Selecting previously unselected package x11-xkb-utils.########......................................................................................]
Preparing to unpack .../29-x11-xkb-utils_7.7+5build4_amd64.deb ...
Unpacking x11-xkb-utils (7.7+5build4) ...
Selecting previously unselected package xserver-common.#########....................................................................................]
Preparing to unpack .../30-xserver-common_2%3a21.1.4-2ubuntu1.7~22.04.1_all.deb ...
Unpacking xserver-common (2:21.1.4-2ubuntu1.7~22.04.1) ...######....................................................................................]
Selecting previously unselected package xserver-xorg-core.
Preparing to unpack .../31-xserver-xorg-core_2%3a21.1.4-2ubuntu1.7~22.04.1_amd64.deb ...
Unpacking xserver-xorg-core (2:21.1.4-2ubuntu1.7~22.04.1) ...#####..................................................................................]
Selecting previously unselected package xserver-xorg-video-nvidia-530.
Preparing to unpack .../32-xserver-xorg-video-nvidia-530_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-530 (530.41.03-0ubuntu0.22.04.2) ...............................................................................]
Selecting previously unselected package nvidia-driver-530-open.#####................................................................................]
Preparing to unpack .../33-nvidia-driver-530-open_530.41.03-0ubuntu0.22.04.2_amd64.deb ...
Unpacking nvidia-driver-530-open (530.41.03-0ubuntu0.22.04.2) ...
Selecting previously unselected package nvidia-prime.#################..............................................................................]
Preparing to unpack .../34-nvidia-prime_0.8.17.1_all.deb ...
Unpacking nvidia-prime (0.8.17.1) ...
Selecting previously unselected package screen-resolution-extra.#######.............................................................................]
Preparing to unpack .../35-screen-resolution-extra_0.18.2_all.deb ...
Unpacking screen-resolution-extra (0.18.2) ...##########################............................................................................]
Selecting previously unselected package nvidia-settings.
Preparing to unpack .../36-nvidia-settings_510.47.03-0ubuntu1_amd64.deb ...
Unpacking nvidia-settings (510.47.03-0ubuntu1) ...########################..........................................................................]
Selecting previously unselected package vdpau-driver-all:amd64.
Preparing to unpack .../37-vdpau-driver-all_1.4-3build2_amd64.deb ...
Unpacking vdpau-driver-all:amd64 (1.4-3build2) ...#########################.........................................................................]
Selecting previously unselected package xcvt.
Preparing to unpack .../38-xcvt_0.1.1-3_amd64.deb ...
Unpacking xcvt (0.1.1-3) ...#################################################.......................................................................]
Selecting previously unselected package xfonts-encodings.#####################......................................................................]
Preparing to unpack .../39-xfonts-encodings_1%3a1.0.5-0ubuntu2_all.deb ...
Unpacking xfonts-encodings (1:1.0.5-0ubuntu2) ...
Selecting previously unselected package xfonts-utils.##########################.....................................................................]
Preparing to unpack .../40-xfonts-utils_1%3a7.7+6build2_amd64.deb ...
Unpacking xfonts-utils (1:7.7+6build2) ...
Selecting previously unselected package xfonts-base.#############################...................................................................]
Preparing to unpack .../41-xfonts-base_1%3a1.0.5_all.deb ...
Unpacking xfonts-base (1:1.0.5) ...##############################################...................................................................]
Setting up libwayland-server0:amd64 (1.20.0-1ubuntu0.1) ...
Setting up cpp-12 (12.1.0-2ubuntu1~22.04) ...######################################.................................................................]
Progress: [ 51%] [##################################################################................................................................]
Setting up libnvidia-fbc1-530:amd64 (530.41.03-0ubuntu0.22.04.2) ...#################...............................................................]
Setting up libgbm1:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...###############################.............................................................]
Setting up nvidia-kernel-common-530 (530.41.03-0ubuntu0.22.04.2) ...####################............................................................]
update-initramfs: deferring update (trigger activated)###################################...........................................................]
Created symlink /etc/systemd/system/systemd-hibernate.service.wants/nvidia-hibernate.service → /lib/systemd/system/nvidia-hibernate.service.
Created symlink /etc/systemd/system/systemd-suspend.service.wants/nvidia-resume.service → /lib/systemd/system/nvidia-resume.service.
Created symlink /etc/systemd/system/systemd-hibernate.service.wants/nvidia-resume.service → /lib/systemd/system/nvidia-resume.service.
Created symlink /etc/systemd/system/systemd-suspend.service.wants/nvidia-suspend.service → /lib/systemd/system/nvidia-suspend.service.
Setting up nvidia-prime (0.8.17.1) ...
Setting up x11-xkb-utils (7.7+5build4) ...#################################################.........................................................]
Setting up libnvidia-extra-530:amd64 (530.41.03-0ubuntu0.22.04.2) ...#######################........................................................]
Progress: [ 59%] [############################################################################......................................................]
Setting up libxnvctrl0:amd64 (510.47.03-0ubuntu1) ...#########################################......................................................]
Setting up libegl-mesa0:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...###################################....................................................]
Setting up libnvidia-compute-530:amd64 (530.41.03-0ubuntu0.22.04.2) ...##########################...................................................]
Setting up xfonts-encodings (1:1.0.5-0ubuntu2) ...################################################..................................................]
Setting up libnvidia-decode-530:amd64 (530.41.03-0ubuntu0.22.04.2) ...##############################................................................]
Progress: [ 64%] [###################################################################################...............................................]
Setting up nvidia-kernel-source-530-open (530.41.03-0ubuntu0.22.04.2) ...#############################..............................................]
Setting up screen-resolution-extra (0.18.2) ...#########################################################............................................]
Setting up libnvidia-common-530 (530.41.03-0ubuntu0.22.04.2) ...#########################################...........................................]
Setting up libvdpau1:amd64 (1.4-3build2) ...##############################################################..........................................]
Setting up nvidia-utils-530 (530.41.03-0ubuntu0.22.04.2) ...###############################################.........................................]
Progress: [ 70%] [###########################################################################################.......................................]
Setting up libasan8:amd64 (12.1.0-2ubuntu1~22.04) ...#########################################################......................................]
Setting up libegl1:amd64 (1.4.0-1) ...#########################################################################.....................................]
Setting up libxcvt0:amd64 (0.1.1-3) ...##########################################################################...................................]
Setting up nvidia-settings (510.47.03-0ubuntu1) ...###############################################################..................................]
Setting up libnvidia-cfg1-530:amd64 (530.41.03-0ubuntu0.22.04.2) ...###############################################.................................]
Setting up nvidia-compute-utils-530 (530.41.03-0ubuntu0.22.04.2) ...#################################################...............................]
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory#########################..............................]
Adding system user `nvidia-persistenced' (UID 116) ...
Adding new group `nvidia-persistenced' (GID 121) ...
Adding new user `nvidia-persistenced' (UID 116) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Setting up xserver-common (2:21.1.4-2ubuntu1.7~22.04.1) ...############################################################.............................]
Setting up libtsan2:amd64 (12.1.0-2ubuntu1~22.04) ...####################################################################...........................]
Setting up libxfont2:amd64 (1:2.0.5-1build1) ...##########################################################################..........................]
Setting up dctrl-tools (2.24-3build2) ...##################################################################################.........................]
Setting up libnvidia-gl-530:amd64 (530.41.03-0ubuntu0.22.04.2) ...##########################################################........................]
Progress: [ 83%] [############################################################################################################......................]
Setting up mesa-vdpau-drivers:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...############################################################.....................]
Setting up libnvidia-encode-530:amd64 (530.41.03-0ubuntu0.22.04.2) ...##########################################################....................]
Setting up xserver-xorg-core (2:21.1.4-2ubuntu1.7~22.04.1) ...####################################################################..................]
Setting up xfonts-utils (1:7.7+6build2) ...########################################################################################.................]
Setting up xcvt (0.1.1-3) ...#######################################################################################################................]
Setting up xfonts-base (1:1.0.5) ...##################################################################################################..............]
Progress: [ 91%] [#####################################################################################################################.............]
Setting up libgcc-12-dev:amd64 (12.1.0-2ubuntu1~22.04) ...##############################################################################............]
Setting up xserver-xorg-video-nvidia-530 (530.41.03-0ubuntu0.22.04.2) ...#################################################################..........]
Setting up vdpau-driver-all:amd64 (1.4-3build2) ...########################################################################################.........]
Setting up gcc-12 (12.1.0-2ubuntu1~22.04) ...###############################################################################################........]
Setting up dkms (2.8.7-2ubuntu2.1) ...#######################################################################################################.......]
Progress: [ 96%] [#############################################################################################################################.....]
Setting up nvidia-dkms-530-open (530.41.03-0ubuntu0.22.04.2) ...################################################################################....]
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
Loading new nvidia-530.41.03 DKMS files...
Building for 5.19.0-41-generic
Building for architecture x86_64
Building initial module for 5.19.0-41-generic
Can't load /var/lib/shim-signed/mok/.rnd into RNG
80DB35F4E57F0000:error:12000079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:106:Filename=/var/lib/shim-signed/mok/.rnd
.+.....+.+.....+......+...+.+.....+...+..........+...+.....+...........................+...+...+.+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+...+.......+..+...+.+.....+.+......+.........+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+...+.....+.......+...+.....+..........+...........+.+......+.........+......+.....+..........+...+.........+..+....+......+.....+...+.+..+..........+.....+...+.+........+.......+......+..+...+....+...........+..................+......+........................+.......+.....+..........+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.......+...........+...+...+..................+.+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+...+.........+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+............+..+.+...........+.+........+....+........+..........+...+......+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
Secure Boot not enabled on this system.
Done.
nvidia.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.19.0-41-generic/updates/dkms/
nvidia-modeset.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.19.0-41-generic/updates/dkms/
nvidia-drm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.19.0-41-generic/updates/dkms/
nvidia-uvm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.19.0-41-generic/updates/dkms/
nvidia-peermem.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.19.0-41-generic/updates/dkms/
depmod....
Setting up nvidia-driver-530-open (530.41.03-0ubuntu0.22.04.2) ...###############################################################################...]
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...#############################################################################################.]
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for fontconfig (2.13.1-4.2ubuntu5) ...
Processing triggers for initramfs-tools (0.140ubuntu13.1) ...
update-initramfs: Generating /boot/initrd.img-5.19.0-41-generic
Scanning processes...
Scanning processor microcode...
Scanning linux images...
Running kernel seems to be up-to-date.
The processor microcode seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@dell-r740-27:~#
root@dell-r740-27:~# reboot
连接断开
dell@dell-r740-27:~$ nvidia-smi
Thu May 11 02:37:07 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 530.41.03 Driver Version: 530.41.03 CUDA Version: 12.1 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA A40 Off| 00000000:AF:00.0 Off | 0 |
| 0% 42C P8 31W / 300W| 0MiB / 46068MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| No running processes found |
+---------------------------------------------------------------------------------------+
dell@dell-r740-27:~$