Ubuntu 10.10 中的通用语言选择器

发布于 2024-11-03 08:30:53 字数 601 浏览 0 评论 0原文

当我尝试安装各种软件包(例如 gitk 和 ruby​​1.8-dev)时,我收到以下输出:

Setting up language-selector-common (0.6.7) ...
dpkg:处理语言选择器常见错误(--configure):
子进程安装的安装后脚本返回错误退出状态 2
dpkg:依赖性问题阻止配置语言选择器:
语言选择器取决于语言选择器通用(= 0.6.7);然而:
软件包 language-selector-common 尚未配置。
dpkg:处理语言选择器时出错(--configure):
依赖性问题 - 未配置
python-central 的处理触发器...
未写入批准报告,因为错误消息表明它是先前故障的后续错误。
处理时遇到错误:
语言选择器通用
语言选择器
E: 子进程 /usr/bin/dpkg 返回错误代码 (1)

我尝试强制依赖项,并删除 var/lib/dpkg/status 中的条目以及许多其他内容,但都失败了。

我正在 Virtual Box 上的虚拟机上运行它,如果有帮助的话。

When I am trying to install various packages, for example gitk and ruby1.8-dev, I recieve the following output:

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)

I have tried forcing the dependencies, and deleting the entries in the var/lib/dpkg/status and many more things, that all failed.

I am running this on a VM on Virtual Box, if that helps any.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

暮光沉寂 2024-11-10 08:30:53

安装 language-selector-common 版本 0.6.7 似乎是一个错误。新版本(0.6.8)已经发布。我认为你应该能够sudo apt-get update并重新安装你的gitk和ruby。

您可以在此处查看相关的错误报告:

Seems to be a bug with installing language-selector-common version 0.6.7. The new version (0.6.8) is already up. I think you should be able to just sudo apt-get update and reinstall your gitk and ruby.

You can see the related bug reports here:

世界如花海般美丽 2024-11-10 08:30:53

您需要编辑安装后的文件:

sudo vi /var/lib/dpkg/info/language-selector-common.postinst

查找此行:

kill $(pgrep -U root '^ls-dbus-backend

append || true 使其看起来像:

kill $(pgrep -U root '^ls-dbus-backend

然后运行:

 sudo apt-get update && sudo apt-get upgrade
) 2>/dev/null

append || true 使其看起来像:


然后运行:


) 2>/dev/null || true

然后运行:

) 2>/dev/null

append || true 使其看起来像:

然后运行:

You need to edit a file for post installation:

sudo vi /var/lib/dpkg/info/language-selector-common.postinst

Look for this line:

kill $(pgrep -U root '^ls-dbus-backend

append || true so that its look like:

kill $(pgrep -U root '^ls-dbus-backend

then run:

 sudo apt-get update && sudo apt-get upgrade
) 2>/dev/null

append || true so that its look like:


then run:


) 2>/dev/null || true

then run:

) 2>/dev/null

append || true so that its look like:

then run:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文