Failed to initialize NVML: Driver/library version mismatch

  • 这个问题出现的原因是kernel mod 的 Nvidia driver 的版本没有更新,一般情况下,重启机器就能够解决,如果因为某些原因不能够重启的话,也有办法reload kernel mod。
  • 输入下条命令,查看你的显卡驱动所使用的内核版本
cat /proc/driver/nvidia/version

在这里插入图片描述
可以看出内核版本为470.103.01

  • 输入下条命令,查看电脑驱动
cat /var/log/dpkg.log | grep nvidia
2022-05-22 06:24:13 upgrade libnvidia-common-470:all 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:24:13 status half-configured libnvidia-common-470:all 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:24:13 status unpacked libnvidia-common-470:all 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:24:13 status half-installed libnvidia-common-470:all 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:24:14 status half-installed libnvidia-common-470:all 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:24:14 status unpacked libnvidia-common-470:all 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:24:14 status unpacked libnvidia-common-470:all 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:24:14 configure libnvidia-common-470:all 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:24:14 status unpacked libnvidia-common-470:all 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:24:14 status half-configured libnvidia-common-470:all 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:24:14 status installed libnvidia-common-470:all 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:25:58 upgrade nvidia-driver-460:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:25:58 status half-configured nvidia-driver-460:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:25:58 status unpacked nvidia-driver-460:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:25:58 status half-installed nvidia-driver-460:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:25:58 status half-installed nvidia-driver-460:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:25:58 status unpacked nvidia-driver-460:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:25:58 status unpacked nvidia-driver-460:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:25:58 configure nvidia-driver-460:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:25:58 status unpacked nvidia-driver-460:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:25:59 status half-configured nvidia-driver-460:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:25:59 status installed nvidia-driver-460:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:30:36 upgrade nvidia-driver-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:30:36 status half-configured nvidia-driver-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:30:36 status unpacked nvidia-driver-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:30:37 status half-installed nvidia-driver-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:30:37 status half-installed nvidia-driver-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:30:37 status unpacked nvidia-driver-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:30:37 status unpacked nvidia-driver-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:30:37 upgrade libnvidia-gl-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:30:37 status half-configured libnvidia-gl-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:30:37 status unpacked libnvidia-gl-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:30:37 status half-configured libnvidia-gl-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:30:37 status half-installed libnvidia-gl-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:00 status half-installed libnvidia-gl-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:00 status unpacked libnvidia-gl-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:00 status unpacked libnvidia-gl-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:01 upgrade libnvidia-gl-470:i386 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:01 status half-configured libnvidia-gl-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:01 status unpacked libnvidia-gl-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:01 status half-installed libnvidia-gl-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:04 status half-installed libnvidia-gl-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:05 status unpacked libnvidia-gl-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:05 status unpacked libnvidia-gl-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:05 upgrade nvidia-dkms-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:05 status half-configured nvidia-dkms-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:38 status unpacked nvidia-dkms-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:38 status half-installed nvidia-dkms-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:39 status half-installed nvidia-dkms-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:39 status unpacked nvidia-dkms-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:39 status unpacked nvidia-dkms-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:39 upgrade nvidia-kernel-source-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:39 status half-configured nvidia-kernel-source-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:39 status unpacked nvidia-kernel-source-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:39 status half-installed nvidia-kernel-source-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:41 status half-installed nvidia-kernel-source-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:41 status unpacked nvidia-kernel-source-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:42 status unpacked nvidia-kernel-source-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:42 upgrade nvidia-kernel-common-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:42 status half-configured nvidia-kernel-common-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:42 status unpacked nvidia-kernel-common-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:42 status half-installed nvidia-kernel-common-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:43 status half-installed nvidia-kernel-common-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:44 status unpacked nvidia-kernel-common-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:44 status unpacked nvidia-kernel-common-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:44 upgrade libnvidia-decode-470:i386 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:44 status half-configured libnvidia-decode-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:44 status unpacked libnvidia-decode-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:44 status half-configured libnvidia-decode-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:44 status half-installed libnvidia-decode-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:44 status half-installed libnvidia-decode-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:45 status unpacked libnvidia-decode-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:45 status unpacked libnvidia-decode-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:45 upgrade libnvidia-decode-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:45 status half-configured libnvidia-decode-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:45 status unpacked libnvidia-decode-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:45 status half-installed libnvidia-decode-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:45 status half-installed libnvidia-decode-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:45 status unpacked libnvidia-decode-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:45 status unpacked libnvidia-decode-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:46 upgrade libnvidia-compute-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:46 status half-configured libnvidia-compute-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:46 status unpacked libnvidia-compute-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:46 status half-configured libnvidia-compute-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:46 status half-installed libnvidia-compute-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:51 status half-installed libnvidia-compute-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:51 status unpacked libnvidia-compute-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:51 status unpacked libnvidia-compute-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:52 upgrade libnvidia-compute-470:i386 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:52 status half-configured libnvidia-compute-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:52 status unpacked libnvidia-compute-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:52 status half-installed libnvidia-compute-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:56 status half-installed libnvidia-compute-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:56 status unpacked libnvidia-compute-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:56 status unpacked libnvidia-compute-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:56 upgrade libnvidia-extra-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:56 status half-configured libnvidia-extra-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:56 status unpacked libnvidia-extra-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:56 status half-installed libnvidia-extra-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:56 status half-installed libnvidia-extra-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:57 status unpacked libnvidia-extra-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:57 status unpacked libnvidia-extra-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:57 upgrade nvidia-compute-utils-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:57 status half-configured nvidia-compute-utils-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:57 status unpacked nvidia-compute-utils-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:57 status half-installed nvidia-compute-utils-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:57 status half-installed nvidia-compute-utils-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:58 status unpacked nvidia-compute-utils-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:58 status unpacked nvidia-compute-utils-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:58 upgrade libnvidia-encode-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:58 status half-configured libnvidia-encode-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:58 status unpacked libnvidia-encode-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:58 status half-configured libnvidia-encode-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:58 status half-installed libnvidia-encode-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:58 status half-installed libnvidia-encode-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:58 status unpacked libnvidia-encode-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:58 status unpacked libnvidia-encode-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:58 upgrade libnvidia-encode-470:i386 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:58 status half-configured libnvidia-encode-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:58 status unpacked libnvidia-encode-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:58 status half-installed libnvidia-encode-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:59 status half-installed libnvidia-encode-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:59 status unpacked libnvidia-encode-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:59 status unpacked libnvidia-encode-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:59 upgrade nvidia-utils-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:59 status half-configured nvidia-utils-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:59 status unpacked nvidia-utils-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:59 status half-installed nvidia-utils-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:59 status half-installed nvidia-utils-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:59 status unpacked nvidia-utils-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:59 status unpacked nvidia-utils-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:59 upgrade xserver-xorg-video-nvidia-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:31:59 status half-configured xserver-xorg-video-nvidia-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:59 status unpacked xserver-xorg-video-nvidia-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:31:59 status half-installed xserver-xorg-video-nvidia-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:00 status half-installed xserver-xorg-video-nvidia-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:00 status unpacked xserver-xorg-video-nvidia-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:00 status unpacked xserver-xorg-video-nvidia-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:00 upgrade libnvidia-ifr1-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:00 status half-configured libnvidia-ifr1-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:00 status unpacked libnvidia-ifr1-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:00 status half-configured libnvidia-ifr1-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:00 status half-installed libnvidia-ifr1-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:00 status half-installed libnvidia-ifr1-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:01 status unpacked libnvidia-ifr1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:01 status unpacked libnvidia-ifr1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:01 upgrade libnvidia-ifr1-470:i386 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:01 status half-configured libnvidia-ifr1-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:01 status unpacked libnvidia-ifr1-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:01 status half-installed libnvidia-ifr1-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:01 status half-installed libnvidia-ifr1-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:01 status unpacked libnvidia-ifr1-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:01 status unpacked libnvidia-ifr1-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:02 upgrade libnvidia-fbc1-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:02 status half-configured libnvidia-fbc1-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:02 status unpacked libnvidia-fbc1-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:02 status half-configured libnvidia-fbc1-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:02 status half-installed libnvidia-fbc1-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:02 status half-installed libnvidia-fbc1-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:02 status unpacked libnvidia-fbc1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:02 status unpacked libnvidia-fbc1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:02 upgrade libnvidia-fbc1-470:i386 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:02 status half-configured libnvidia-fbc1-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:02 status unpacked libnvidia-fbc1-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:02 status half-installed libnvidia-fbc1-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:02 status half-installed libnvidia-fbc1-470:i386 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:03 status unpacked libnvidia-fbc1-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:03 status unpacked libnvidia-fbc1-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:03 upgrade libnvidia-cfg1-470:amd64 470.103.01-0ubuntu0.18.04.1 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:03 status half-configured libnvidia-cfg1-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:03 status unpacked libnvidia-cfg1-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:03 status half-installed libnvidia-cfg1-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:03 status half-installed libnvidia-cfg1-470:amd64 470.103.01-0ubuntu0.18.04.1
2022-05-22 06:32:03 status unpacked libnvidia-cfg1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:03 status unpacked libnvidia-cfg1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:03 configure nvidia-kernel-common-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:03 status unpacked nvidia-kernel-common-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:03 status half-configured nvidia-kernel-common-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 status installed nvidia-kernel-common-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 configure libnvidia-gl-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:30 status unpacked libnvidia-gl-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 status half-configured libnvidia-gl-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 status installed libnvidia-gl-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 configure libnvidia-gl-470:i386 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:30 status unpacked libnvidia-gl-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 status half-configured libnvidia-gl-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 status installed libnvidia-gl-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 configure libnvidia-fbc1-470:i386 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:30 status unpacked libnvidia-fbc1-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 status half-configured libnvidia-fbc1-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 status installed libnvidia-fbc1-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 configure libnvidia-fbc1-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:30 status unpacked libnvidia-fbc1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 status half-configured libnvidia-fbc1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 status installed libnvidia-fbc1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:30 configure libnvidia-compute-470:i386 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:30 status unpacked libnvidia-compute-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status half-configured libnvidia-compute-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status installed libnvidia-compute-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 configure libnvidia-compute-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:31 status unpacked libnvidia-compute-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status unpacked libnvidia-compute-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status half-configured libnvidia-compute-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status installed libnvidia-compute-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 configure libnvidia-cfg1-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:31 status unpacked libnvidia-cfg1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status half-configured libnvidia-cfg1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status installed libnvidia-cfg1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 configure libnvidia-ifr1-470:i386 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:31 status unpacked libnvidia-ifr1-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status half-configured libnvidia-ifr1-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status installed libnvidia-ifr1-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 configure libnvidia-ifr1-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:31 status unpacked libnvidia-ifr1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status half-configured libnvidia-ifr1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status installed libnvidia-ifr1-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 configure xserver-xorg-video-nvidia-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:31 status unpacked xserver-xorg-video-nvidia-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status half-configured xserver-xorg-video-nvidia-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status installed xserver-xorg-video-nvidia-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 configure libnvidia-extra-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:31 status unpacked libnvidia-extra-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status half-configured libnvidia-extra-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status installed libnvidia-extra-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 configure nvidia-kernel-source-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:31 status unpacked nvidia-kernel-source-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:31 status half-configured nvidia-kernel-source-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:32 status installed nvidia-kernel-source-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:32 configure nvidia-utils-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:32 status unpacked nvidia-utils-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:32 status half-configured nvidia-utils-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:32 status installed nvidia-utils-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:32 configure libnvidia-decode-470:i386 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:32 status unpacked libnvidia-decode-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:32 status half-configured libnvidia-decode-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:32 status installed libnvidia-decode-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:32 configure libnvidia-decode-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:32 status unpacked libnvidia-decode-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:32 status half-configured libnvidia-decode-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:32 status installed libnvidia-decode-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:32 configure nvidia-dkms-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:32:32 status unpacked nvidia-dkms-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:32:32 status half-configured nvidia-dkms-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:35:03 status installed nvidia-dkms-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:35:03 configure nvidia-compute-utils-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:35:03 status unpacked nvidia-compute-utils-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:35:03 status half-configured nvidia-compute-utils-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:35:03 status installed nvidia-compute-utils-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:35:03 configure libnvidia-encode-470:i386 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:35:03 status unpacked libnvidia-encode-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:35:03 status half-configured libnvidia-encode-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:35:03 status installed libnvidia-encode-470:i386 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:35:03 configure libnvidia-encode-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:35:03 status unpacked libnvidia-encode-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:35:03 status half-configured libnvidia-encode-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:35:03 status installed libnvidia-encode-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:35:03 configure nvidia-driver-470:amd64 470.129.06-0ubuntu0.18.04.1 <无>
2022-05-22 06:35:03 status unpacked nvidia-driver-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:35:04 status half-configured nvidia-driver-470:amd64 470.129.06-0ubuntu0.18.04.1
2022-05-22 06:35:04 status installed nvidia-driver-470:amd64 470.129.06-0ubuntu0.18.04.1

可以看到由470.103.01升级到了470.129.06

  • 输入下条命令,查看电脑所有驱动
sudo dpkg --list | grep nvidia-*
  • 卸载现有驱动,重新安装
sudo /usr/bin/nvidia-uninstall
sudo apt-get --purge remove nvidia-*
sudo apt-get purge nvidia*
sudo apt-get purge libnvidia*

其中第二行可能会出现:
Failed to initialize NVML: Driver/library version mismatch_第1张图片
那就按他说的做

sudo apt autoremove nvidia-*
  • 直到命令不输出任何内容
sudo dpkg --list | grep nvidia-*
  • 查找可用的驱动版本
ubuntu-drivers devices

Failed to initialize NVML: Driver/library version mismatch_第2张图片
那我就安装470吧,安装390的话pytorch GPU跑不起来,带有server的是针对没有图形化界面的服务器的。

  • 重新安装
sudo apt-get install nvidia-driver-470 nvidia-settings nvidia-prime
  • 为防止再次出现这样的问题,可以禁用当前版本的本地更新,命令如下:
sudo apt-mark hold nvidia-driver-470

你可能感兴趣的:(Linux服务器,linux,centos,运维)