当我使用apt-get upgrade & apt-get autoremove时,在每个apt-get [Something]..上,以及当我试图安装应用程序时,我都会遇到这个错误:
Errors were encountered while processing:
man-db
E: Sub-process /usr/bin/dpkg returned an error code (1)发布于 2013-03-28 23:49:10
答案中没有提到的解决方案对我有效,我尝试了一个提到在Ubuntu论坛上的解决方案,执行以下命令
sudo dpkg -i --force-all [deb file path]这起作用了。
发布于 2013-10-04 01:40:15
请阅读下面的评论。这可能是在系统上运行并创建不可恢复状态的危险命令。(这些行已注释掉,以防止复制和粘贴sysadmin‘’ing)。
简单工作我试过了!!
sudo -s
# cd /var/cache/debconf
# rm *.dat
apt-get update && apt-get upgrade享受;)
发布于 2015-09-04 22:08:10
您可能还想知道,您可以使用dpkg --audit查看实际问题是什么。
如果输出类似于:
The following packages are in a mess due to serious problems during installation.
They must be reinstalled for them (and any packages that depend on them)
to function properly:
gcdemu A GNOME panel applet to control CDEmu daemon
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
cdemu-daemon CDEmu daemon
cdemu-client A simple command-line client to control CDEmu daemon
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
transmission-daemon lightweight BitTorrent client (daemon)
vhba-dkms VHBA virtual host bus adapter module您可以运行命令:dpkg --configure <packagename>
dpkg --configure cdemu-daemon为了
Reconfigure an unpacked package.
If -a or --pending is given instead of package, all unpacked but unconfigured
packages are configured.此外,您还可以使用:
sudo apt-get -f install
sudo apt-get --reinstall install gcdemu来修复那些处于混乱状态的包。
这里的例子:http://ubuntuforums.org/archive/index.php/t-1502826.html
https://askubuntu.com/questions/104493
复制相似问题