web-dev-qa-db-fra.com

emacs25 et emacs26 d'un PPA ne peuvent pas coexister

J'ai installé emacs25 à partir de ce PPA: https://launchpad.net/~kelleyk/+archive/ubuntu/emacs , et il a bien coexisté avec emacs 24 à partir des dépôts (Ubuntu 16.04 ). Maintenant que emacs26 est disponible à partir du même PPA, je pensais que les trois versions pourraient être installées. Cependant, emacs26 ne peut pas être installé car il partage certains fichiers avec emacs25 et je ne peux pas supprimer les fichiers installés avec emacs26.

J'ai essayé de suivre les conseils de: Impossible d'installer Emacs 24 depuis ppa: cassou/emacs , mais

Sudo apt-get remove `apt-cache search emacs | awk '{print $1}'` --purge 

donne:

~$ Sudo apt-get remove `apt-cache search emacs | awk '{print $1}'` --purge
[Sudo] password for rafael: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'anthy' is not installed, so not removed
Package 'anthy-common' is not installed, so not removed
Package 'auctex' is not installed, so not removed
Package 'bbdb' is not installed, so not removed
Package 'devhelp' is not installed, so not removed
Package 'emacs' is not installed, so not removed
Package 'emacs-goodies-el' is not installed, so not removed
Package 'exuberant-ctags' is not installed, so not removed
Package 'fetchmail' is not installed, so not removed
Package 'gettext-el' is not installed, so not removed
Package 'libanthy-dev' is not installed, so not removed
Package 'libanthy0' is not installed, so not removed
Package 'tmux' is not installed, so not removed
Package 'acl2-emacs' is not installed, so not removed
Package 'agda' is not installed, so not removed
Package 'agda-bin' is not installed, so not removed
Package 'agda-mode' is not installed, so not removed
Package 'agda-stdlib' is not installed, so not removed
Package 'agda-stdlib-doc' is not installed, so not removed
Package 'alot' is not installed, so not removed
Package 'alot-doc' is not installed, so not removed
Package 'anthy-el' is not installed, so not removed
Package 'anything-el' is not installed, so not removed
Package 'apel' is not installed, so not removed
Package 'aplus-fsf-el' is not installed, so not removed
Package 'ats2-lang' is not installed, so not removed
Package 'auto-complete-el' is not installed, so not removed
Package 'auto-install-el' is not installed, so not removed
Package 'bbdb3' is not installed, so not removed
Package 'bhl' is not installed, so not removed
Package 'bitmap-mule' is not installed, so not removed
Package 'c-sig' is not installed, so not removed
Package 'cafeobj-mode' is not installed, so not removed
Package 'chktex' is not installed, so not removed
Package 'cl-iterate' is not installed, so not removed
Package 'cl-swank' is not installed, so not removed
Package 'clang-format-3.5' is not installed, so not removed
Package 'clang-format-3.6' is not installed, so not removed
Package 'clang-format-3.7' is not installed, so not removed
Package 'cmuscheme48-el' is not installed, so not removed
Package 'colordiff' is not installed, so not removed
Package 'commit-patch' is not installed, so not removed
Package 'common-LISP-controller' is not installed, so not removed
Package 'coq' is not installed, so not removed
Package 'crypt++el' is not installed, so not removed
Package 'cvc3-el' is not installed, so not removed
Package 'cxref-emacs' is not installed, so not removed
Package 'darcsum' is not installed, so not removed
Package 'dash-el' is not installed, so not removed
Package 'ddskk' is not installed, so not removed
Package 'debian-el' is not installed, so not removed
Package 'develock-el' is not installed, so not removed
Package 'devscripts-el' is not installed, so not removed
Package 'dh-elpa' is not installed, so not removed
Package 'dictem' is not installed, so not removed
Package 'dictionary-el' is not installed, so not removed
Package 'dmtcp' is not installed, so not removed
Package 'dmtcp-dbg' is not installed, so not removed
Package 'docbook2x' is not installed, so not removed
Package 'doxymacs' is not installed, so not removed
Package 'dpkg-dev-el' is not installed, so not removed
Package 'e2wm' is not installed, so not removed
Package 'e3' is not installed, so not removed
Package 'eblook' is not installed, so not removed
Package 'ecasound-el' is not installed, so not removed
Package 'ecb' is not installed, so not removed
Package 'edb' is not installed, so not removed
Package 'edict-el' is not installed, so not removed
Package 'eflite' is not installed, so not removed
Package 'Egg' is not installed, so not removed
Package 'el-get' is not installed, so not removed
Package 'eldav' is not installed, so not removed
Package 'elpa-aggressive-indent' is not installed, so not removed
Package 'elpa-async' is not installed, so not removed
Package 'elpa-circe' is not installed, so not removed
Package 'elpa-company' is not installed, so not removed
Package 'elpa-editorconfig' is not installed, so not removed
Package 'elpa-epl' is not installed, so not removed
Package 'elpa-expand-region' is not installed, so not removed
Package 'elpa-f' is not installed, so not removed
Package 'elpa-flx' is not installed, so not removed
Package 'elpa-flx-ido' is not installed, so not removed
Package 'elpa-geiser' is not installed, so not removed
Package 'elpa-git-commit' is not installed, so not removed
Package 'elpa-helm' is not installed, so not removed
Package 'elpa-helm-core' is not installed, so not removed
Package 'elpa-js2-mode' is not installed, so not removed
Package 'elpa-magit' is not installed, so not removed
Package 'elpa-magit-popup' is not installed, so not removed
Package 'elpa-markdown-mode' is not installed, so not removed
Package 'elpa-noflet' is not installed, so not removed
Package 'elpa-persp-projectile' is not installed, so not removed
Package 'elpa-perspective' is not installed, so not removed
Package 'elpa-pkg-info' is not installed, so not removed
Package 'elpa-popup' is not installed, so not removed
Package 'elpa-projectile' is not installed, so not removed
Package 'elpa-Rust-mode' is not installed, so not removed
Package 'elpa-sml-mode' is not installed, so not removed
Package 'elpa-vala-mode' is not installed, so not removed
Package 'elpa-with-editor' is not installed, so not removed
Package 'elscreen' is not installed, so not removed
Package 'elserv' is not installed, so not removed
Package 'emacs-calfw' is not installed, so not removed
Package 'emacs-calfw-howm' is not installed, so not removed
Package 'emacs-intl-fonts' is not installed, so not removed
Package 'emacs-Jabber' is not installed, so not removed
Package 'emacs-nox' is not installed, so not removed
Package 'emacs-window-layout' is not installed, so not removed
Package 'emacspeak' is not installed, so not removed
Package 'emacspeak-espeak-server' is not installed, so not removed
Package 'emacspeak-ss' is not installed, so not removed
Package 'emms' is not installed, so not removed
Package 'erc' is not installed, so not removed
Package 'ess' is not installed, so not removed
Package 'etktab' is not installed, so not removed
Package 'evernote-mode' is not installed, so not removed
Package 'eweouz' is not installed, so not removed
Package 'flim' is not installed, so not removed
Package 'geiser' is not installed, so not removed
Package 'ghc-mod' is not installed, so not removed
Package 'ghc-mod-el' is not installed, so not removed
Package 'global' is not installed, so not removed
Package 'gmult' is not installed, so not removed
Package 'gnat-gps' is not installed, so not removed
Package 'gnats' is not installed, so not removed
Package 'gnats-user' is not installed, so not removed
Package 'gnu-Smalltalk-el' is not installed, so not removed
Package 'gnuplot-mode' is not installed, so not removed
Package 'gnuserv' is not installed, so not removed
Package 'goby' is not installed, so not removed
Package 'gocode-auto-complete-el' is not installed, so not removed
Package 'golang-mode' is not installed, so not removed
Package 'gramadoir' is not installed, so not removed
Package 'gri-el' is not installed, so not removed
Package 'haml-elisp' is not installed, so not removed
Package 'haskell-mode' is not installed, so not removed
Package 'howm' is not installed, so not removed
Package 'icicles' is not installed, so not removed
Package 'id-utils' is not installed, so not removed
Package 'idl-font-lock-el' is not installed, so not removed
Package 'ilisp' is not installed, so not removed
Package 'ilisp-doc' is not installed, so not removed
Package 'info2man' is not installed, so not removed
Package 'inform-mode' is not installed, so not removed
Package 'initz' is not installed, so not removed
Package 'inotify-hookable' is not installed, so not removed
Package 'irony-mode' is not installed, so not removed
Package 'ispell' is not installed, so not removed
Package 'jed' is not installed, so not removed
Package 'jedit' is not installed, so not removed
Package 'joe' is not installed, so not removed
Package 'jove' is not installed, so not removed
Package 'js2-mode' is not installed, so not removed
Package 'jupp' is not installed, so not removed
Package 'kdesdk-scripts' is not installed, so not removed
Package 'kxterm' is not installed, so not removed
Package 'latex-cjk-common' is not installed, so not removed
Package 'ledger-el' is not installed, so not removed
Package 'ledit' is not installed, so not removed
Package 'libconfig-find-Perl' is not installed, so not removed
Package 'libghc-agda-dev' is not installed, so not removed
Package 'libghc-agda-doc' is not installed, so not removed
Package 'libghc-pandoc-dev' is not installed, so not removed
Package 'libghc-pandoc-doc' is not installed, so not removed
Package 'libghc-pandoc-prof' is not installed, so not removed
Package 'libgnu-regexp-Java' is not installed, so not removed
Package 'libkkc-common' is not installed, so not removed
Package 'libkkc-data' is not installed, so not removed
Package 'libkkc-dev' is not installed, so not removed
Package 'libkkc-utils' is not installed, so not removed
Package 'libkkc-utils-dbg' is not installed, so not removed
Package 'libkkc2' is not installed, so not removed
Package 'libkkc2-dbg' is not installed, so not removed
Package 'liblatex-table-Perl' is not installed, so not removed
Package 'libledit-ocaml-dev' is not installed, so not removed
Package 'libocp-indent-lib-ocaml' is not installed, so not removed
Package 'libocp-indent-lib-ocaml-dev' is not installed, so not removed
Package 'libparse-exuberantctags-Perl' is not installed, so not removed
Package 'libpcre-ocaml' is not installed, so not removed
Package 'libpcre-ocaml-dev' is not installed, so not removed
Package 'libproc-invokeeditor-Perl' is not installed, so not removed
Package 'libre-ocaml-dev' is not installed, so not removed
Package 'librep-dev' is not installed, so not removed
Package 'librep16' is not installed, so not removed
Package 'librobert-hooke-clojure' is not installed, so not removed
Package 'libtext-findindent-Perl' is not installed, so not removed
Package 'libutop-ocaml' is not installed, so not removed
Package 'libutop-ocaml-dev' is not installed, so not removed
Package 'liece' is not installed, so not removed
Package 'liece-dcc' is not installed, so not removed
Package 'liquidsoap-mode' is not installed, so not removed
Package 'lisaac-mode' is not installed, so not removed
Package 'lookup-el' is not installed, so not removed
Package 'lsdb' is not installed, so not removed
Package 'lua-mode' is not installed, so not removed
Package 'lyskom-elisp-client' is not installed, so not removed
Package 'malaga-mode' is not installed, so not removed
Package 'maxima-emacs' is not installed, so not removed
Package 'mew' is not installed, so not removed
Package 'mew-beta' is not installed, so not removed
Package 'mg' is not installed, so not removed
Package 'mgp' is not installed, so not removed
Package 'mh-e' is not installed, so not removed
Package 'mhc' is not installed, so not removed
Package 'mhc-utils' is not installed, so not removed
Package 'midge' is not installed, so not removed
Package 'migemo-el' is not installed, so not removed
Package 'minlog' is not installed, so not removed
Package 'mit-scheme' is not installed, so not removed
Package 'mit-scheme-dbg' is not installed, so not removed
Package 'mit-scheme-doc' is not installed, so not removed
Package 'mksh' is not installed, so not removed
Package 'mmm-mode' is not installed, so not removed
Package 'mpg123-el' is not installed, so not removed
Package 'mpqc-support' is not installed, so not removed
Package 'mu-cite' is not installed, so not removed
Package 'mu4e' is not installed, so not removed
Package 'muse-el' is not installed, so not removed
Package 'navi2ch' is not installed, so not removed
Package 'nescc' is not installed, so not removed
Package 'nethack-el' is not installed, so not removed
Package 'nethack-LISP' is not installed, so not removed
Package 'ng-cjk' is not installed, so not removed
Package 'ng-cjk-canna' is not installed, so not removed
Package 'ng-common' is not installed, so not removed
Package 'ng-latin' is not installed, so not removed
Package 'nmh' is not installed, so not removed
Package 'nomarch' is not installed, so not removed
Package 'notmuch-addrlookup' is not installed, so not removed
Package 'notmuch-emacs' is not installed, so not removed
Package 'ocaml-core' is not installed, so not removed
Package 'ocaml-mode' is not installed, so not removed
Package 'ocp-indent' is not installed, so not removed
Package 'oneliner-el' is not installed, so not removed
Package 'org-mode' is not installed, so not removed
Package 'otags' is not installed, so not removed
Package 'pandoc' is not installed, so not removed
Package 'pandoc-data' is not installed, so not removed
Package 'paredit-el' is not installed, so not removed
Package 'php-elisp' is not installed, so not removed
Package 'planner-el' is not installed, so not removed
Package 'post-el' is not installed, so not removed
Package 'prolog-el' is not installed, so not removed
Package 'proofgeneral' is not installed, so not removed
Package 'proofgeneral-doc' is not installed, so not removed
Package 'psgml' is not installed, so not removed
Package 'pylint3' is not installed, so not removed
Package 'pymacs' is not installed, so not removed
Package 'pyrex-mode' is not installed, so not removed
Package 'python-editor' is not installed, so not removed
Package 'python-mode' is not installed, so not removed
Package 'python-rope' is not installed, so not removed
Package 'python-ropemacs' is not installed, so not removed
Package 'python-ropemode' is not installed, so not removed
Package 'python3-editor' is not installed, so not removed
Package 'rabbit-mode' is not installed, so not removed
Package 'rail' is not installed, so not removed
Package 'ranger' is not installed, so not removed
Package 'rdtool-elisp' is not installed, so not removed
Package 'refdb-clients' is not installed, so not removed
Package 'refdb-doc' is not installed, so not removed
Package 'refdb-server' is not installed, so not removed
Package 'refdb-www' is not installed, so not removed
Package 'remembrance-agent' is not installed, so not removed
Package 'rep' is not installed, so not removed
Package 'rep-doc' is not installed, so not removed
Package 'riece' is not installed, so not removed
Package 'rnc-mode' is not installed, so not removed
Package 'Ruby-github-markup' is not installed, so not removed
Package 'Ruby-org' is not installed, so not removed
Package 's-el' is not installed, so not removed
Package 'sass-elisp' is not installed, so not removed
Package 'sawfish' is not installed, so not removed
Package 'scala-mode-el' is not installed, so not removed
Package 'search-ccsb' is not installed, so not removed
Package 'search-citeseer' is not installed, so not removed
Package 'select-xface' is not installed, so not removed
Package 'semi' is not installed, so not removed
Package 'sepia' is not installed, so not removed
Package 'silversearcher-ag-el' is not installed, so not removed
Package 'singular-ui-emacs' is not installed, so not removed
Package 'sisu' is not installed, so not removed
Package 'slime' is not installed, so not removed
Package 'speechd-el' is not installed, so not removed
Package 'speechd-el-doc-cs' is not installed, so not removed
Package 'speechd-up' is not installed, so not removed
Package 'stow' is not installed, so not removed
Package 'stumpwm' is not installed, so not removed
Package 'supercollider-emacs' is not installed, so not removed
Package 'sylpheed' is not installed, so not removed
Package 't-code' is not installed, so not removed
Package 't-code-common' is not installed, so not removed
Package 'tdiary-mode' is not installed, so not removed
Package 'tiarra-conf-el' is not installed, so not removed
Package 'timidity-el' is not installed, so not removed
Package 'tkcon' is not installed, so not removed
Package 'tpp' is not installed, so not removed
Package 'tuareg-mode' is not installed, so not removed
Package 'Tweak' is not installed, so not removed
Package 'twittering-mode' is not installed, so not removed
Package 'txt2regex' is not installed, so not removed
Package 'tzc' is not installed, so not removed
Package 'uim-el' is not installed, so not removed
Package 'uim-latin' is not installed, so not removed
Package 'urweb-mode' is not installed, so not removed
Package 'utop' is not installed, so not removed
Package 'uzbl' is not installed, so not removed
Package 'verbiste-el' is not installed, so not removed
Package 'vile' is not installed, so not removed
Package 'vile-common' is not installed, so not removed
Package 'vile-filters' is not installed, so not removed
Package 'vim-voom' is not installed, so not removed
Package 'vm' is not installed, so not removed
Package 'w3m-el' is not installed, so not removed
Package 'w3m-el-snapshot' is not installed, so not removed
Package 'whizzytex' is not installed, so not removed
Package 'windows-el' is not installed, so not removed
Package 'wl' is not installed, so not removed
Package 'wl-beta' is not installed, so not removed
Package 'wordwarvi' is not installed, so not removed
Package 'wordwarvi-sound' is not installed, so not removed
Package 'wysihtml-el' is not installed, so not removed
Package 'x-face-el' is not installed, so not removed
Package 'xcite' is not installed, so not removed
Package 'xcscope-el' is not installed, so not removed
Package 'xemacs21' is not installed, so not removed
Package 'xemacs21-basesupport' is not installed, so not removed
Package 'xemacs21-basesupport-el' is not installed, so not removed
Package 'xemacs21-bin' is not installed, so not removed
Package 'xemacs21-mule' is not installed, so not removed
Package 'xemacs21-mule-canna-wnn' is not installed, so not removed
Package 'xemacs21-mulesupport' is not installed, so not removed
Package 'xemacs21-mulesupport-el' is not installed, so not removed
Package 'xemacs21-nomule' is not installed, so not removed
Package 'xemacs21-support' is not installed, so not removed
Package 'xemacs21-supportel' is not installed, so not removed
Package 'xfonts-bitmap-mule' is not installed, so not removed
Package 'xfonts-kapl' is not installed, so not removed
Package 'xfonts-terminus-oblique' is not installed, so not removed
Package 'xfonts-thai-etl' is not installed, so not removed
Package 'xfonts-thai-poonlap' is not installed, so not removed
Package 'xjed' is not installed, so not removed
Package 'xstow' is not installed, so not removed
Package 'xul-ext-exteditor' is not installed, so not removed
Package 'xvile' is not installed, so not removed
Package 'yaml-mode' is not installed, so not removed
Package 'yasnippet' is not installed, so not removed
Package 'yasnippet-snippets' is not installed, so not removed
Package 'yasr' is not installed, so not removed
Package 'yatex' is not installed, so not removed
Package 'yc-el' is not installed, so not removed
Package 'yorick' is not installed, so not removed
Package 'zeal' is not installed, so not removed
Package 'zeal-dbg' is not installed, so not removed
Package 'zile' is not installed, so not removed
Package 'org-mode-doc' is not installed, so not removed
Package 'sdic' is not installed, so not removed
Package 'wnn7Egg' is not installed, so not removed
Package 'x-pgp-sig-el' is not installed, so not removed
Package 'emacs24-dbg' is not installed, so not removed
Package 'emacs24-lucid-dbg' is not installed, so not removed
Package 'emacs24-nox' is not installed, so not removed
Package 'emacs24-nox-dbg' is not installed, so not removed
Package 'erlang-tools' is not installed, so not removed
Package 'clang-format-3.8' is not installed, so not removed
Package 'clang-format-3.9' is not installed, so not removed
Package 'clang-format-4.0' is not installed, so not removed
Package 'clang-format-5.0' is not installed, so not removed
Package 'emacs-mozc' is not installed, so not removed
Package 'emacs-mozc-bin' is not installed, so not removed
Package 'emacs24-lucid' is not installed, so not removed
Package 'erlang' is not installed, so not removed
Package 'erlang-mode' is not installed, so not removed
Package 'git-el' is not installed, so not removed
Package 'idn' is not installed, so not removed
Package 'puppet-el' is not installed, so not removed
Package 'emacs25-nox' is not installed, so not removed
Package 'emacs26-common' is not installed, so not removed
Package 'emacs26-nox' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 aspell : Depends: dictionaries-common (> 0.40) but it is not going to be installed
 aspell-en : Depends: dictionaries-common (>= 0.49.2) but it is not going to be installed
 aspell-es : Depends: dictionaries-common (>= 1.23~) but it is not going to be installed
 groovy2 : Depends: libjline2-Java but it is not going to be installed
 hunspell-en-us : Depends: dictionaries-common (>= 0.10) but it is not going to be installed
 hyphen-en-us : Depends: dictionaries-common (>= 0.10) but it is not going to be installed or
                         openoffice.org-updatedicts
 mythes-en-us : Depends: dictionaries-common but it is not going to be installed
 openoffice.org-hyphenation : Depends: dictionaries-common (>= 0.10) but it is not going to be installed or
                                       openoffice.org-updatedicts
 wbritish : Depends: dictionaries-common (>= 0.20) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
~$ 

puis Sudo apt-get -f install donne:

~$ Sudo apt-get -f install 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  emacs26-common
The following NEW packages will be installed:
  emacs26-common
0 upgraded, 1 newly installed, 0 to remove and 117 not upgraded.
2 not fully installed or removed.
Need to get 0 B/17.8 MB of archives.
After this operation, 71.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 337093 files and directories currently installed.)
Preparing to unpack .../emacs26-common_26.1~1.git07f8f9b-kk1+16.04_all.deb ...
Unpacking emacs26-common (26.1~1.git07f8f9b-kk1+16.04) ...
dpkg: error processing archive /var/cache/apt/archives/emacs26-common_26.1~1.git07f8f9b-kk1+16.04_all.deb (--unpack):
 trying to overwrite '/usr/share/emacs/site-LISP/subdirs.el', which is also in package emacs25-common 25.3~1.gite0284ab-kk1+16.04
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/emacs26-common_26.1~1.git07f8f9b-kk1+16.04_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
~$ 

J'ai aussi essayé Sudo apt-get autoremove, sans succès.

Comment dois-je procéder? Je n'insiste pas pour que les deux versions 25 et 26 coexistent plus, je veux juste un système Ubuntu qui fonctionne avec l'une ou l'autre.

EDIT: J'insère les résultats des commandes remove et purge.

$ Sudo apt remove emacs25
[Sudo] password for rafael: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 emacs26 : Depends: emacs26-common but it is not going to be installed
 emacs26-el : Depends: emacs26-common but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
~$ Sudo apt remove emacs26
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 emacs26-el : Depends: emacs26-common but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
~$ Sudo apt purge emacs25
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 emacs26 : Depends: emacs26-common but it is not going to be installed
 emacs26-el : Depends: emacs26-common but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
~$ Sudo apt purge emacs26
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 emacs26-el : Depends: emacs26-common but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
~$ 

Ensuite, le résultat de Sudo apt-get -f install est identique à celui présenté ci-dessus.

1
rvf0068

Deux packages, emacs26 et emacs26-el, ont une dépendance non remplie, emacs26-common. Dans ce cas, Apt suggère d'exécuter apt-get -f install pour installer la dépendance manquante, mais l'installation de emacs26-common a échoué en raison d'un conflit avec emacs25-common actuellement installé. Ainsi, vous devez d'abord retirer emacs26 et emacs26-el (apt remove emacs26 emacs26-el) pour remettre Apt à un état normal, puis éventuellement supprimer emacs25 et tous les paquets associés avant d'installer emacs26.

4
fkraiem

Comme décrit par @fkraiem, l'installation de emacs26-common entre en conflit avec emacs25-common. Les étapes suivantes ont bien fonctionné pour moi:

Avis: Ceci effacera Emacs25 de votre système.

Sudo apt purge emacs26
Sudo apt install -f
Sudo apt purge emacs25
Sudo apt autoclean
Sudo apt autoremove
Sudo apt update
Sudo apt install emacs26