J'ai téléchargé et installé une application qui utilise CUDA 10. Lorsque je l'exécute, le message suivant s'affiche
./main: error while loading shared libraries: libcublas.so.10.0: cannot open shared object file: No such file or directory
La documentation indique qu'il faut CUDA 10 et cuDNN. J'ai donc téléchargé et installé les deux. (... En fait, j'ai installé CUDA 10.1). Mais rien de tout cela n'a aidé. Je n'étais pas sûr de savoir lequel installer, alors j'ai installé à la fois le dev et le runtime.
Et comme cela n'a toujours pas aidé, j'ai installé le nvidia-cuda-toolkit. Je pense que c'est là que les choses ont vraiment mal tourné. L'inévitable est arrivé, je l'ai cassé.
Je voulais installer un paquet supplémentaire, à savoir "cuda-libraries", mais il donne une erreur de dépendance non satisfaite, renvoyant au nvidia toolkit que j'ai installé précédemment.
user@dxxx:~/x$ sudo apt install cuda-libraries-10-0
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
cuda-libraries-10-0 : Depends: cuda-nvrtc-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-nvgraph-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-nvjpeg-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-cusolver-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-cublas-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-cufft-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-curand-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-cusparse-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-npp-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-cudart-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-license-10-0 (>= 10.0.130) but it is not going to be installed
nvidia-cuda-toolkit : Depends: nvidia-cuda-dev (= 9.1.85-3ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Pour l'instant, je ne peux pas faire d'aller-retour. Quand j'essaie de désinstaller, cela donne des erreurs.
user@xxx:~/x$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
nvidia-cuda-toolkit : Depends: nvidia-cuda-dev (= 9.1.85-3ubuntu1) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
De plus, l'interrupteur "broken-fix" n'aide pas. Il essaie d'installer quelque chose, puis repart en erreur.
user@xxx:~/x$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libnvidia-common-390
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
nvidia-cuda-dev
Recommended packages:
libnvcuvid1
The following NEW packages will be installed:
nvidia-cuda-dev
0 upgraded, 1 newly installed, 0 to remove and 142 not upgraded.
54 not fully installed or removed.
Need to get 0 B/263 MB of archives.
After this operation, 734 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 205855 files and directories currently installed.)
Preparing to unpack .../nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb ...
Unpacking nvidia-cuda-dev (9.1.85-3ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/include/cublas.h', which is also in package libcublas-dev 10.2.0.168-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Comment puis-je sauvegarder mon système ? Par exemple, en le désinstallant entièrement.