web-dev-qa-db-ja.com

nvidiaグラフィックスドライバーのインストールエラー

Ubuntu18.04を新たにインストールし、新しいnvidiaドライバーをインストールしてcudaをインストールしようとしましたが、このエラーを取り除くことはできませんでした。スタックトレース:

Sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libnvidia-compute-390:i386
The following NEW packages will be installed:
  libnvidia-compute-390:i386
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
582 not fully installed or removed.
Need to get 0 B/21.0 MB of archives.
After this operation, 84.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 236531 files and directories currently installed.)
Preparing to unpack .../libnvidia-compute-390_390.77-0ubuntu0~gpu18.04.1_i386.deb ...
Unpacking libnvidia-compute-390:i386 (390.77-0ubuntu0~gpu18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libnvidia-compute-390_390.77-0ubuntu0~gpu18.04.1_i386.deb (--unpack):
 trying to overwrite shared '/etc/OpenCL/vendors/nvidia.icd', which is different from other instances of package libnvidia-compute-390:i386
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libnvidia-compute-390_390.77-0ubuntu0~gpu18.04.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

@jordanの回答を試みると、次のエラーが表示されます。

 lambda-stack-cuda : Depends: nvidia-cuda-toolkit but it is not going to be installed
                     Recommends: nvidia-driver-390 but it is not going to be installed
 libcudnn-dev : Depends: nvidia-cuda-dev but it is not going to be installed
 libnvidia-decode-390:i386 : Depends: libnvidia-compute-390:i386 (= 390.77-0ubuntu0~gpu18.04.1) but it is not going to be installed
 python-pycuda : Depends: nvidia-cuda-toolkit but it is not going to be installed
 python3-pycuda : Depends: nvidia-cuda-toolkit but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
1
Jodh Singh

セキュアブートを無効にしてバンブルビーをインストールすることは、システムを機能させるために必要なものでした。詳細については、 this を参照してください。

0
Jodh Singh

私はこれを自分で試しただけで、次のようにして修正することができました:

Sudo apt-get purge nvidia-*
Sudo ubuntu-drivers autoinstall
reboot
0
Jordan