处理时遇到错误:man-db

处理时遇到错误:man-db

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)

答案1

答案中提到的解决方案对我都不起作用,我尝试了提到的解决方案在 Ubuntu 论坛上,执行命令

sudo dpkg -i --force-all [deb file path]

并且成功了。

答案2

请阅读以下评论。这可能是在您的系统上运行并创建不可恢复状态的危险命令。(这些行已被注释掉以防止系统管理员复制粘贴)。


简单且在职的我尝试过这个 !!

sudo -s
# cd /var/cache/debconf
# rm *.dat
apt-get update && apt-get upgrade

享受 ;)

答案3

您可能还想知道可以使用什么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

答案4

您必须在运行这些命令时在其前面加上 sudo,以便可以使用超级用户凭据执行它们。示例:

sudo apt-get autoremove "NAME OF PACKAGE HERE"

相关内容