다음은 지금 우분투에 무언가를 설치하려고 할 때 나타나는 메시지입니다.
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
cuda-libraries-dev-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
cuda-samples-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
cuda-visual-tools-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
나는 시도 apt --fix-broken install
, 나는 시도 purge
, 시도 sudo apt install -f
, 그리고 또한 sudo apt-get remove --purge '^nvidia-.*'
아무것도 할 수 없습니다. 모두 실패합니다.
드라이버를 제거하기 위해 복구 모드로 재부팅하는 데 지쳤습니다.
이것은 내 출력입니다 apt --fix-broken install
.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libnvidia-common-390
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libcublas-dev
The following NEW packages will be installed:
libcublas-dev
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
8 not fully installed or removed.
Need to get 0 B/39.9 MB of archives.
After this operation, 115 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 735451 files and directories currently installed.)
Preparing to unpack .../libcublas-dev_10.1.0.105-1_amd64.deb ...
Unpacking libcublas-dev (10.1.0.105-1) ...
dpkg: error processing archive /var/cache/apt/archives/libcublas-dev_10.1.0.105-1_amd64.deb (--unpack):
trying to overwrite '/usr/include/cublas_v2.h', which is also in package nvidia-cuda-dev 9.1.85-3ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libcublas-dev_10.1.0.105-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
누군가 나를 도울 수 있습니까? 이 문제를 해결하기 위해 몇 시간을 보냈습니다. 나는 설치 시도 cuda 10.1
의 이미 설치와 함께 cuda 9.1
. 이것은 실수로 판명되었습니다. 내 이전 cuda 설치는 잘 작동하지만 dpkg
완전히 손상되어 더 이상 작동하지 않습니다.
이전 버전의 cuda를 제거하지 않고 실수로 10.1 버전을 직접 설치해 보았습니다. 여기에 제공된 링크 ( https://developer.nvidia.com/cuda-downloads) 를 따라 설치를 시도했습니다 . 나는 선택했다 : Linux -> x86_64 -> Ubuntu -> 18.04 -> deb(network)
그리고 나는 거기에있는 지시를 따랐다.
이 때문에 아무것도 설치할 수 없습니다.
좋습니다.이 작업을 취소하려면 다음 명령을 실행하십시오.
sudo rm /etc/apt/sources.list.d/cuda.list
sudo apt-get clean
sudo apt-get update
sudo apt install -f
그러면 다운로드하여 설치 한 nvidia 저장소가 제거되고 시스템이 이제 자동으로 수정되기를 바랍니다. 그렇지 않은 경우 오류 메시지에 따라 매우 쉽게 수동으로 수정할 수 있습니다.
더 많은 제거를 수행해야 할 수 있으며 dpkg
수동으로 수행해야 할 수도 있으므로 더 이상 오류를 게시하십시오. 감사!
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다