破損したCUDAパッケージを更新する方法は?

破損したCUDAパッケージを更新する方法は?

次の問題をどのように解決できますか?これら2つのCUDAパッケージを更新したいと思います。

Check if you are using third party repositories. If so disable them, since they are a common source of problems.
Furthermore run the following command in a Terminal: apt-get install -f
Transaction failed: The package system is broken
 The following packages have unmet dependencies:

    cuda-cudart-dev-11-2: Depends: cuda-cudart-11-2 (>= 11.2.152) but it is not installed
    cuda-libraries-11-2: Depends: cuda-cudart-11-2 (>= 11.2.152) but it is not installed
                         Depends: cuda-nvrtc-11-2 (>= 11.2.152) but 11.2.152-1 is installed
                         Depends: libcublas-11-2 (>= 11.4.1.1043) but 11.4.1.1043-1 is installed
                         Depends: libcusparse-11-2 (>= 11.4.1.1152) but 11.4.1.1152-1 is installed
                         Depends: libnpp-11-2 (>= 11.3.2.152) but 11.3.2.152-1 is installed
                         Depends: libnvjpeg-11-2 (>= 11.4.0.152) but 11.4.0.152-1 is installed

ベストアンサー1

パッケージが破損していないため、アップデート/インストールする必要があります。次のようにしてみてください。

apt-get install cuda-cudart-dev cuda-libraries 

おすすめ記事