我只是想简单地做以下事情:
在Ubuntu 20.04上。
结果是似乎在安装emacs的所有依赖项之一,即
我希望能获得一些关于如何解决这个问题的想法。
sudo apt install emacs
在Ubuntu 20.04上。
结果是似乎在安装emacs的所有依赖项之一,即
emacsen-common
和emacs-gtk
时出现了错误。我看到的错误是: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)
我希望能获得一些关于如何解决这个问题的想法。
sudo dpkg --remove --force-remove-reinstreq
来处理每个存在未满足依赖关系的软件包,成功将apt
恢复到正常状态。 - LyteFMsudo apt install --reinstall libotf0 libm17n-0
来解决了这个问题。不知道为什么它有效,但确实有效。 - sanimalp