web-dev-qa-db-fra.com

Erreur lors de l'installation du pilote graphique nvidia

Je viens d'installer Ubuntu18.04 et j'essayais d'installer de nouveaux pilotes nvidia pour installer cuda mais je ne peux pas me débarrasser de cette erreur. Trace de la pile:

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)

En essayant la réponse de @jordan, j'obtiens l'erreur suivante:

 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

La désactivation de l’amorçage sécurisé et l’installation de bumblebee étaient indispensables au bon fonctionnement du système. Pour plus de détails, reportez-vous à this .

0
Jodh Singh

Je viens de traverser cela moi-même, j'ai pu le réparer en faisant:

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