손상된 CUDA 패키지를 업데이트하는 방법은 무엇입니까?

손상된 CUDA 패키지를 업데이트하는 방법은 무엇입니까?

다음 문제를 어떻게 해결할 수 있나요? 이 두 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 

관련 정보