Ubuntu 18.04のNvidiaドライバの依存関係の問題

Ubuntu 18.04のNvidiaドライバの依存関係の問題

再編集:複数のバージョンの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がありますが、何を削除するのかわかりません。 ソフトウェアとアップデート - >その他のソフトウェア

ベストアンサー1

おすすめ記事