我在看这篇教程:如何在 Ubuntu 22.04 或 20.04 上安装 NVIDIA 驱动程序
里面提到使用 ubuntu-drivers devices 安装显卡驱动
─➤ ubuntu-drivers devices
== /sys/devices/pci0000:80/0000:80:03.0/0000:81:00.0/0000:82:08.0/0000:83:00.0 ==
modalias : pci:v000010DEd000013F2sv000010DEsd0000115Ebc03sc02i00
vendor : NVIDIA Corporation
model : GM204GL [Tesla M60]
driver : nvidia-driver-418-server - distro non-free
driver : nvidia-driver-510 - distro non-free
driver : nvidia-driver-515-server - distro non-free
driver : nvidia-driver-525 - distro non-free recommended
driver : nvidia-driver-515 - distro non-free
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-470 - distro non-free
driver : nvidia-driver-450-server - distro non-free
driver : nvidia-driver-525-server - distro non-free
driver : nvidia-driver-470-server - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin
我有一些疑问,比如这个 nvidia-driver-450-server - distro non-free
后面的 non-free 就是闭源驱动的意思吗?就是 nvidia 官方驱动?
然后就是输出了这么多驱动,我应该怎么选?选一个数字最大的 nvidia-driver-525-server - distro non-free
吗?
然后一个问题,当我使用 sudo apt install nvidia-driver-525-server
安装显卡驱动的时候,发现待安装的软件列表里面居然没有 nvidia-smi
╰─➤ sudo apt install nvidia-driver-525-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
build-essential cpp-12 dctrl-tools dkms dpkg-dev fakeroot gcc-12 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan8 libdpkg-perl libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libegl-mesa0 libegl1 libepoxy0 libfakeroot
libfile-fcntllock-perl libfontenc1 libgbm1 libgcc-12-dev libgl1 libgl1-amber-dri libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libice6 libllvm15 libnvidia-cfg1-525-server libnvidia-common-525-server libnvidia-compute-525-server libnvidia-decode-525-server
libnvidia-egl-wayland1 libnvidia-encode-525-server libnvidia-extra-525-server libnvidia-fbc1-525-server libnvidia-gl-525-server libpciaccess0 libsensors-config libsensors5 libsm6 libtsan2 libwayland-client0 libwayland-server0 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
libxcb-present0 libxcb-sync1 libxcb-xfixes0 libxcvt0 libxfixes3 libxfont2 libxkbfile1 libxmu6 libxshmfence1 libxt6 libxxf86vm1 lto-disabled-list nvidia-compute-utils-525-server nvidia-dkms-525-server nvidia-kernel-common-525-server nvidia-kernel-source-525-server
nvidia-utils-525-server x11-common x11-xkb-utils xcvt xfonts-base xfonts-encodings xfonts-utils xserver-common xserver-xorg-core xserver-xorg-video-nvidia-525-server
Suggested packages:
gcc-12-locales debtags menu debian-keyring gcc-12-multilib gcc-12-doc bzr lm-sensors nvidia-settings nvidia-prime xfs | xserver xfonts-100dpi | xfonts-75dpi xfonts-scalable
Recommended packages:
libnvidia-compute-525-server:i386 libnvidia-decode-525-server:i386 libnvidia-encode-525-server:i386 libnvidia-fbc1-525-server:i386 libnvidia-gl-525-server:i386
The following NEW packages will be installed:
build-essential cpp-12 dctrl-tools dkms dpkg-dev fakeroot gcc-12 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan8 libdpkg-perl libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libegl-mesa0 libegl1 libepoxy0 libfakeroot
libfile-fcntllock-perl libfontenc1 libgbm1 libgcc-12-dev libgl1 libgl1-amber-dri libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libice6 libllvm15 libnvidia-cfg1-525-server libnvidia-common-525-server libnvidia-compute-525-server libnvidia-decode-525-server
libnvidia-egl-wayland1 libnvidia-encode-525-server libnvidia-extra-525-server libnvidia-fbc1-525-server libnvidia-gl-525-server libpciaccess0 libsensors-config libsensors5 libsm6 libtsan2 libwayland-client0 libwayland-server0 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
libxcb-present0 libxcb-sync1 libxcb-xfixes0 libxcvt0 libxfixes3 libxfont2 libxkbfile1 libxmu6 libxshmfence1 libxt6 libxxf86vm1 lto-disabled-list nvidia-compute-utils-525-server nvidia-dkms-525-server nvidia-driver-525-server nvidia-kernel-common-525-server
nvidia-kernel-source-525-server nvidia-utils-525-server x11-common x11-xkb-utils xcvt xfonts-base xfonts-encodings xfonts-utils xserver-common xserver-xorg-core xserver-xorg-video-nvidia-525-server
0 upgraded, 80 newly installed, 0 to remove and 0 not upgraded.
Need to get 539 MB of archives.
After this operation, 1,499 MB of additional disk space will be used.
Do you want to continue? [Y/n]
这正常吗?chatgpt 说,安装了驱动,就应该有 nvidia-smi 命令的
自问自答了:关于『使用 ubuntu-drivers 安装 nvida 显卡驱动的一些疑问』解答