web-dev-qa-db-ja.com

UbuntuにNVIDIAドライバーをインストールするとパッケージが壊れるMATE 18.04

Ubuntuのクリーンインストールを持っていますMATE 18.04 TPUをGPUサポート付きでインストールしたいのですが、私のGPUはTitan Xです。

GPUサポートガイド の指示に従っていますが、パッケージが壊れているため、NVIDIAドライバーをインストールできません。コマンドとその出力は次のとおりです。

$ Sudo apt-get install --no-install-recommends nvidia-driver-410
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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-410 : Depends: xserver-xorg-video-nvidia-410 (= 410.104-0ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

apt-getの代わりにaptitudeを使用してこれを解決し、提案されたソリューションを受け入れました。ただし、再起動すると、システムはログイン時にフリーズします。クリーンインストールだったので、OSを再インストールしただけで、元の問題に戻りました。

壊れたパッケージを解決してGPUのドライバーをインストールするにはどうすればよいですか?

2
Josh

次のコマンドは、最新のNVIDIAドライバーを正常にインストールし、GPUをサポートするTensorFlowのインストールを完了することができました。

$ Sudo add-apt-repository ppa:graphics-drivers/ppa
$ Sudo apt update
$ Sudo ubuntu-drivers autoinstall
1
Josh