Debian "buster/sid" 上的百合升级问题

nat*_*ath 5 debian dpkg upgrade

我的本地 Debian 安装出现未完成升级的问题:

  Operating System: Debian GNU/Linux buster/sid
            Kernel: Linux 4.12.0-1-686-pae
      Architecture: x86
Run Code Online (Sandbox Code Playgroud)

我试图与修复它apt upgrade -f和dpkg --configure lilypond-data,但无论我做什么,我得到以下信息:

Setting up lilypond-data (2.18.2-8) ...
 Running mktexlsr /usr/share/texlive/texmf-dist...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVEDIST... 
mktexlsr: Done.
ln: failed to create symbolic link 'lilypond/user': File exists
dpkg: error processing package lilypond-data (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 lilypond-data
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

如果我跑dpkg --remove --force-remove-reinstreq --dry-run lilypond-data 我得到:

dpkg: dependency problems prevent removal of lilypond-data:
 lilypond depends on lilypond-data (= 2.18.2-8).

dpkg: error processing package lilypond-data (--remove):
 dependency problems - not removing
Errors were encountered while processing:
 lilypond-data
Run Code Online (Sandbox Code Playgroud)

der*_*ert 8

一般的方法是查看(shell 脚本)/var/lib/dpkg/info/lilypond-data.postinst并找到ln失败的行。然后确定原因,并解决它(例如,通过rming 现有链接,或者在最坏的情况下通过编辑 postinst)。当然,然后提交一个错误。

除非其他人已经这样做了——请参阅错误 871631。并且bug已经修复;你只需要从不稳定中获取(并安装)2.18.2-9。

(这产生了一个重要的教训:在考虑如何修复它之前检查错误跟踪系统......)

另外:您可能想要安装 apt-listbugs。