web-dev-qa-db-fra.com

dpkg: archive dans le traitement des erreurs /var/cache/apt/archives/cuda-cublas-9-1_9.1.85.3-1_AMD64.deb (--unpack)

Lorsque j'exécute Sudo apt-get -f install, il affiche dpkg: error processing. Veuillez trouver les journaux complets ci-dessous et indiquer comment résoudre ce problème. Devrais-je supprimer l'ancienne version?

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following additional packages will be installed:
      cuda-cublas-9-1
    The following packages will be upgraded:
      cuda-cublas-9-1
    1 upgraded, 0 newly installed, 0 to remove and 553 not upgraded.
    1 not fully installed or removed.
    Need to get 50.1 MB of archives.
    After this operation, 56.2 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Get:1 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-cublas-9-1 9.1.85.3-1 [50.1 MB]
    Fetched 50.1 MB in 21s (2,313 kB/s)                                            
    (Reading database ... 415420 files and directories currently installed.)
    Preparing to unpack .../cuda-cublas-9-1_9.1.85.3-1_AMD64.deb ...
    Unpacking cuda-cublas-9-1 (9.1.85.3-1) over (9.1.85-1) ...
    dpkg: error processing archive /var/cache/apt/archives/cuda-cublas-9-1_9.1.85.3-1_AMD64.deb (--unpack):
     trying to overwrite '/usr/local/cuda-9.1/lib64', which is also in package cuda-cudart-9-1 9.1.85-1
    Errors were encountered while processing:
     /var/cache/apt/archives/cuda-cublas-9-1_9.1.85.3-1_AMD64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
2
kail

L'erreur que vous obtenez est la suivante:

dpkg: error processing archive /var/cache/apt/archives/cuda-cublas-9-1_9.1.85.3-1_AMD64.deb (--unpack):
 trying to overwrite '/usr/local/cuda-9.1/lib64', which is also in package cuda-cudart-9-1 9.1.85-1

L'erreur "en essayant d'écraser" signifie qu'il y a des paquets en conflit dans votre système. Vous pouvez essayer d'écraser le paquet (cela peut être un peu risqué)

Sudo dpkg -i --force-overwrite /var/cache/apt/archives/cuda-cublas-9-1_9.1.85.3-1_AMD64.deb You need to remove that package

Si cela ne résout pas le problème, vous pouvez supprimer le paquet et le réinstaller.

Sudo dpkg -P cuda-cublas
6
Noisy_Botnet