Lors de la mise à niveau, j'obtiens une erreur me demandant de réparer les paquets cassés. apt-get -f install
produit
...
Get:1 http://ppa.launchpad.net/kelleyk/emacs/ubuntu bionic/main AMD64 emacs25-common all 25.3~1.gite0284ab-kk1+18.04 [17.5 MB]
Fetched 17.5 MB in 2s (7,805 kB/s)
(Reading database ... 265566 files and directories currently installed.)
Preparing to unpack .../emacs25-common_25.3~1.gite0284ab-kk1+18.04_all.deb ...
Unpacking emacs25-common (25.3~1.gite0284ab-kk1+18.04) ...
dpkg: error processing archive /var/cache/apt/archives/emacs25-common_25.3~1.gite0284ab-kk1+18.04_all.deb (--unpack):
trying to overwrite '/usr/share/emacs/site-LISP/subdirs.el', which is also in package emacs26-common 26.3~1.git96dd019-kk1+18.04
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/emacs25-common_25.3~1.gite0284ab-kk1+18.04_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Voici Sudo apt-cache policy emacs26-common emacs25-common
:
emacs26-common:
Installed: 26.3~1.git96dd019-kk1+18.04
Candidate: 26.3~1.git96dd019-kk1+18.04
Version table:
*** 26.3~1.git96dd019-kk1+18.04 500
500 http://ppa.launchpad.net/kelleyk/emacs/ubuntu bionic/main AMD64 Packages
500 http://ppa.launchpad.net/kelleyk/emacs/ubuntu bionic/main i386 Packages
100 /var/lib/dpkg/status
emacs25-common:
Installed: (none)
Candidate: 25.3~1.gite0284ab-kk1+18.04
Version table:
25.3~1.gite0284ab-kk1+18.04 500
500 http://ppa.launchpad.net/kelleyk/emacs/ubuntu bionic/main AMD64 Packages
500 http://ppa.launchpad.net/kelleyk/emacs/ubuntu bionic/main i386 Packages
25.2+1-6 500
500 http://us.archive.ubuntu.com/ubuntu bionic/main AMD64 Packages
500 http://us.archive.ubuntu.com/ubuntu bionic/main i386 Packages
Tous les conseils sur la façon de résoudre ce problème seront reçus avec gratitude.
Pour résoudre temporairement le problème, vous pouvez forcer l'installation du package avec
Sudo dpkg -i --force-all /var/cache/apt/archives/emacs25-common_25.3~1.gite0284ab-kk1+18.04_all.deb