san*_*alp 5 apt dpkg emacs 20.04
我想简单地做:
sudo apt install emacs
Run Code Online (Sandbox Code Playgroud)
在 Ubuntu 20.04 上。
结果是,安装时出现错误emacsen-common,emacs-gtk最终是所有 emacs 的依赖项。我看到的错误是:
Setting up emacs-gtk (1:26.3+1-1ubuntu2) ...
Install emacsen-common for emacs
emacsen-common: Handling install of emacsen flavor emacs
emacs: error while loading shared libraries: libotf.so.0: cannot open shared object file: No such file or directory
ERROR: install script from emacsen-common package failed
dpkg: error processing package emacs-gtk (--configure):
installed emacs-gtk package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of emacs:
emacs depends on emacs-gtk (>= 1:26.3) | emacs-lucid (>= 1:26.3) | emacs-nox (>= 1:26.3); however:
Package emacs-gtk is not configured yet.
Package emacs-lucid is not installed.
Package emacs-nox is not installed.
dpkg: error processing package emacs (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
emacs-gtk
emacs
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
我希望得到一些关于如何解决这个问题的想法。
为了解决这个问题,我首先做了sudo apt purge emacs。
然后我重新安装了 libotf0 和 libm17n-0,使用:
sudo apt install --reinstall libotf0 libm17n-0
之后,sudo apt install emacs按预期工作。
| 归档时间: |
|
| 查看次数: |
7367 次 |
| 最近记录: |