当我尝试从 Ubuntu 中心或 Synaptic 下载某些软件时,出现包操作失败...
如何解决这个问题?
编辑:
我尝试安装这个游戏:
这是安装的详细信息:
installArchives() failed: Selecting previously deselected package libbulletml0d2.
(Reading database ... 100%
(Reading database ... 239257 files and directories currently installed.)
Unpacking libbulletml0d2 (from .../libbulletml0d2_0.0.6-4_i386.deb) ...
Selecting previously deselected package tumiki-fighters-data.
Unpacking tumiki-fighters-data (from .../tumiki-fighters-data_0.2.dfsg1-4_all.deb) ...
Selecting previously deselected package tumiki-fighters.
Unpacking tumiki-fighters (from .../tumiki-fighters_0.2.dfsg1-4_i386.deb) ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.UTF8.cache...
Processing triggers for menu ...
Processing triggers for man-db ...
Processing triggers for python-support ...
Setting up plymouth-theme-mib-ubuntu (0.5.0-2) ...
update-alternatives: error: alternative path /lib/plymouth/themes/MIB-Ubuntu/MIB-Ubuntu.plymouth doesn't exist.
dpkg: error processing plymouth-theme-mib-ubuntu (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libbulletml0d2 (0.0.6-4) ...
Setting up tumiki-fighters-data (0.2.dfsg1-4) ...
Setting up tumiki-fighters (0.2.dfsg1-4) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for menu ...
Errors were encountered while processing:
plymouth-theme-mib-ubuntu
Setting up plymouth-theme-mib-ubuntu (0.5.0-2) ...
update-alternatives: error: alternative path /lib/plymouth/themes/MIB-Ubuntu/MIB-Ubuntu.plymouth doesn't exist.
dpkg: error processing plymouth-theme-mib-ubuntu (--configure):
subprocess installed post-installation script returned error exit status 2
答案1
这会起作用,至少对我来说是这样:
sudo apt-get --purge remove plymouth-theme-mib-ubuntu
如果没有的话,试试这个:
sudo dpkg --remove -force --force-remove-reinstreq plymouth-theme-mib-ubuntu
此后,您可以使用以下命令重新安装它:
sudo apt-get install --reinstall plymouth-theme-mib-ubuntu
并通过以下检查确保所有包裹都正常:
sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
我目前使用的是 Ubuntu Lucid 10.04 LTS,内核是 2.6.38。
答案2
不能保证一定有效,但值得一试;打开 shell 终端并输入:
sudo apt-get -f install
这将在给定包失败后尝试修复任何包依赖项。大约 90% 的时间都帮了我大忙。
答案3
其实这根本不是问题。为什么?我已经多次遇到此错误,这不是安装问题。这只是系统在更新库时发出的错误。
我通常只是忽略了这个问题,因为我下载的应用程序已经安装了。在你的系统上搜索它,我敢打赌它已经安装了。
否则,使用代码:
sudo apt-get --purge 删除 plymouth-theme-mib-ubuntu
对我来说很有用,尽管我丢失了 MIB Plymouth 主题,现在我甚至都不用它了。有什么大不了的!
答案4
从安装的详细信息中可以清楚地看出,您缺少第 18 行所见的 plymouth-theme-mib-ubuntu 的替代路径。
update-alternatives:错误:替代路径/lib/plymouth/themes/MIB-Ubuntu/MIB-Ubuntu.plymouth 不存在。
为了纠正这个问题,我所做的就是创建所述路径。
sudo mkdir -p /lib/plymouth/themes/MIB-Ubuntu/MIB-Ubuntu.plymouth