このリンクを使用して、Ubuntu18.04にバージョン396のNvidiaドライバーをインストールしようとしています。満たされていない依存関係についてのメッセージが表示されました(以下を参照)。実際にubuntu-drivers devices
を使用する場合 推奨バージョンは415です。試してみましたが、同じ結果が得られました。リンクで言及されている優れた投稿は、この問題について言及していません。この問題の原因(なぜこれらの依存関係をaptでインストールしないのか)と、これを解決する方法を誰かが知っていますか?
ドライバーバージョン390を使用したデュアル1080Tiセットアップがあります。Cuda9.2の場合、少なくともバージョン396が必要です。
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nvidia-driver-396 : Depends: libnvidia-gl-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-dkms-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-compute-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-compute-utils-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-decode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-encode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-utils-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-ifr1-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Recommends: libnvidia-compute-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-decode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-encode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-ifr1-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-gl-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
E: Unable to correct problems, you have held broken packages.
承認された回答:
コメントで提案されているように、満たされていない依存関係をインストールしようとしました。 libnvidia-gl-396
から始めます 。その結果、依存関係が満たされていないこととパッケージが壊れていることについて同じエラーメッセージが表示されました。私はそれを修正しようとしました
sudo apt-get install --fix-broken
しかし、それはうまくいきませんでした。再起動してソフトウェアとアップデートを再度実行しました。驚いたことに、390以降の利用可能なすべてのバージョン(390、396、410、および415)がリストされ、最初は390のみがリストされました。それらのいずれかをインストールしようとしましたが、成功しませんでした。理由についてのメッセージはありません。
関連:Ubuntu 18.04:永続的なdumtheネットワークインターフェイスを作成するにはどうすればよいですか?次のバージョンが利用可能になる前に私が理解したように:
$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0 ==
modalias : pci:v000010DEd00001B06sv00001458sd0000374Cbc03sc00i00
vendor : NVIDIA Corporation
model : GP102 [GeForce GTX 1080 Ti]
driver : nvidia-driver-415 - third-party free recommended
driver : nvidia-driver-396 - third-party free
driver : nvidia-driver-390 - third-party free
driver : nvidia-driver-410 - third-party free
driver : xserver-xorg-video-nouveau - distro free builtin
今のところバージョン396は問題ありませんが、Cuda 10にはすでにドライバーバージョン410が必要なので、私はこの推奨事項を受け入れることができました。この記事では、次のように古いドライバを削除して新しいドライバをインストールすることを提案しました。
sudo apt-get remove --purge nvidia-*
sudo ubuntu-drivers autoinstall
そしてそれはうまくいった。間違ったドライバーバージョンについて文句を言わずにTensorflow1.12を実行できるようになりました。