Я недавно установил 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).
Отключение безопасной начальной загрузки и установка шмеля были вещами, которые были необходимы, чтобы заставить систему работать. Для получения дополнительной информации отошлите это.
Я только что прошел через это сам, я смог это исправить, выполнив:
sudo apt-get purge nvidia-*
sudo ubuntu-drivers autoinstall
reboot