アップグレードすると、壊れたパッケージを修正するように求めるエラーが表示されます。 apt-get -f install
は
...
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)
ここは 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
これを修正する方法についてのヒントはありがたく受け取られます。
問題を一時的に修正するには、パッケージのインストールを強制できます
Sudo dpkg -i --force-all /var/cache/apt/archives/emacs25-common_25.3~1.gite0284ab-kk1+18.04_all.deb