很长一段时间以来,每当我尝试通过运行命令释放磁盘空间时,tex-common 都会出现错误sudo apt-get autoremove
。错误如下:
dpkg: error processing package tex-common (--configure):
installed tex-common package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
tex-common
我尝试了sudo dpkg -C
和sudo dpkg --configure tex-common
以及sudo apt-get install --reinstall tex-common
类似的输出。我还尝试重新配置区域设置(如本文《无法在 Ubuntu 20.04.2 LTS 上配置 tex-common》中所建议的),但这并不能解决问题。此外,我收到以下警告:
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "en_US.UTF-8",
LC_TIME = "de_AT.UTF-8",
LC_MONETARY = "de_AT.UTF-8",
LC_ADDRESS = "de_AT.UTF-8",
LC_TELEPHONE = "de_AT.UTF-8",
LC_NAME = "de_AT.UTF-8",
LC_MEASUREMENT = "de_AT.UTF-8",
LC_IDENTIFICATION = "de_AT.UTF-8",
LC_NUMERIC = "de_AT.UTF-8",
LC_PAPER = "de_AT.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
我猜我遇到的错误与 texlive 安装有关。我目前使用位于 /usr/local/texlive 的 texlive 2023。但是,tex-common 位于 /usr/share/tex-common。我大约 1.5 年前升级到 texlive 2023,一开始一切都运行顺利(就我记得)。
我不知道如何解决这个问题,也不想让事情变得更糟(可能比我已经做的更糟)。因此,我恳请社区提供帮助。如果需要额外的输出或信息,请告诉我。
Ray推荐的初始解决方案对我有用:我只需删除
tex-common
(viasudo apt-get remove tex-common
)。现在一切似乎都运行顺利。