재편집: 여러 버전의 nvidia 드라이버가 설치되어 있는 것 같은데, 그 중 일부는 내 시스템과 호환되지 않습니다. 나는 많은 합병증을 겪었습니다. 내가 시도할 때 sudo apt upgrade
. 알겠어요:
The following packages have unmet dependencies:
libnvidia-ifr1-470 : Depends: libnvidia-gl-470 but it is not installed
libnvidia-ifr1-470:i386 : Depends: libnvidia-gl-470:i386 but it is not installed
nvidia-driver-470 : Depends: libnvidia-gl-470 (= 470.161.03-0ubuntu0.18.04.1) but it is not installed
Recommends: libnvidia-gl-470:i386 (= 470.161.03-0ubuntu0.18.04.1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
그래서 나는 시키는 대로 했습니다:sudo apt --fix-broken install
Do you want to continue? [Y/n] Y
(Reading database ... 370884 files and directories currently installed.)
Preparing to unpack .../libnvidia-gl-470_470.161.03-0ubuntu0.18.04.1_i386.deb ...
diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-470'
found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-470_470.161.03-0ubuntu0.18.04.1_i386.deb (--unpack):
new libnvidia-gl-470:i386 package pre-installation script subprocess returned error exit status 2
Preparing to unpack .../libnvidia-gl-470_470.161.03-0ubuntu0.18.04.1_amd64.deb ...
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-470'
found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-470_470.161.03-0ubuntu0.18.04.1_amd64.deb (--unpack):
new libnvidia-gl-470:amd64 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-gl-470_470.161.03-0ubuntu0.18.04.1_i386.deb
/var/cache/apt/archives/libnvidia-gl-470_470.161.03-0ubuntu0.18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
나는 노력한다sudo apt autoremove nvidia*
Package 'nvidia-libopencl1-304-updates' is not installed, so not removed
Package 'nvidia-opencl-icd-304' is not installed, so not removed
Package 'nvidia-opencl-icd-304-updates' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libnvidia-ifr1-470 : Depends: libnvidia-gl-470 but it is not going to be installed
libnvidia-ifr1-470:i386 : Depends: libnvidia-gl-470:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
sudo apt purge nvidia*
같은 막 다른 골목을 주었다. 이러한 종속성 문제를 해결하고 문제를 일으키는 여러 NVIDIA 드라이버 버전을 제거하려면 어떻게 해야 합니까? 도움을 주시면 감사하겠습니다.
"소프트웨어 및 업데이트" --> "기타 소프트웨어"를 살펴보았는데 일부 PPA가 있지만 무엇을 제거해야 할지 모르겠습니다.