如何清理“apt policy nvidia-driver-470”显示的 nvidia 驱动程序版本?

如何清理“apt policy nvidia-driver-470”显示的 nvidia 驱动程序版本?

(这是问题)

我认为我在尝试修复一些问题时弄乱了系统。我尝试更新 Nvidia 驱动程序(显示为​​ 的驱动程序nvidia-smi),还安装了几个不同的 CUDA 工具包版本(我应该使用.run版本 而不是deb)。我发现当我从 Nvidia 网站安装 CUDA 工具包时,它也会更改驱动程序。

我正在使用 Ubuntu 22.04

现在我想清理一些 nvidia 驱动程序,但我不知道该怎么做。

我该如何清理下面显示的这些版本Version table

    jun@hotcake:~$ apt policy nvidia-driver-470
    nvidia-driver-470:
      Installed: (none)
      Candidate: 470.223.02-0ubuntu1
      Version table:
         470.223.02-0ubuntu1 600
            600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages
         470.223.02-0ubuntu0.22.04.1 500
            500 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages
            500 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages
            500 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy/main amd64 Packages
         470.199.02-1pop0~1702484215~22.04~b922bc0~dev 500
            500 https://ppa.launchpadcontent.net/system76-dev/stable/ubuntu jammy/main amd64 Packages
         470.199.02-0ubuntu1 600
            600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages
         470.182.03-0ubuntu1 600
            600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages
         470.161.03-0ubuntu1 600
            600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages
         470.141.10-0ubuntu1 600
            600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages
         470.141.03-0ubuntu1 600
            600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages
         470.129.06-0ubuntu1 600
            600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages
         470.103.01-0ubuntu2 500
            500 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages
         470.103.01-0ubuntu1 600
            600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages
         470.82.01-0ubuntu1 600
            600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages
         470.57.02-0ubuntu1 600
            600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages
         470.42.01-0ubuntu1 600
            600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages

添加一些其他信息以防万一有帮助。

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.223.02   Driver Version: 470.223.02   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| 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 GeForce ...  Off  | 00000000:41:00.0  On |                  Off |
|  0%   39C    P8    15W / 480W |      0MiB / 24253MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
jun@hotcake:~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:33:58_PDT_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0

相关内容