当我尝试安装各种软件包时,例如gitk和ruby1.8-dev,我收到以下输出:
Setting up language-selector-common (0.6.7) ...
dpkg: error processing language-selector-common (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of language-selector:
language-selector depends on language-selector-common (= 0.6.7); however:
Package language-selector-common is not configured yet.
dpkg: error processing language-selector (--configure):
dependency problems - leaving unconfigured
Processing triggers for python-central ...
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
language-selector-common
language-selector
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试过强制依赖项,并删除var / lib / dpkg / status中的条目以及更多内容,但都失败了。
我在Virtual Box上的VM上运行它,如果这有帮助的话。
答案 0 :(得分:0)
似乎是安装language-selector-common
版本0.6.7的错误。新版本(0.6.8)已经上线。我认为你应该只能sudo apt-get update
并重新安装你的gitk和ruby。
您可以在此处查看相关的错误报告:
答案 1 :(得分:0)
您需要编辑文件以进行后期安装:
sudo vi /var/lib/dpkg/info/language-selector-common.postinst
寻找这一行:
kill $(pgrep -U root '^ls-dbus-backend$') 2>/dev/null
追加||是的,因此它看起来像:
kill $(pgrep -U root '^ls-dbus-backend$') 2>/dev/null || true
然后运行:
sudo apt-get update && sudo apt-get upgrade