处理时遇到错误:man-db

R9T*_*Six 34 dpkg

当我使用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)
Run Code Online (Sandbox Code Playgroud)

Rav*_*lli 21

答案中没有提到对我有用的解决方案,我尝试了Ubuntu 论坛上提到的解决方案,执行命令

sudo dpkg -i --force-all [deb file path]
Run Code Online (Sandbox Code Playgroud)

这奏效了。


uce*_*fkh 15

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


简单而有效,我试过了!!

sudo -s
# cd /var/cache/debconf
# rm *.dat
apt-get update && apt-get upgrade
Run Code Online (Sandbox Code Playgroud)

享受 ;)


小智 7

您可能还想知道您可以使用它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
Run Code Online (Sandbox Code Playgroud)

您可以运行以下命令: dpkg --configure <packagename>

 dpkg --configure cdemu-daemon
Run Code Online (Sandbox Code Playgroud)

为了

Reconfigure an unpacked package. 
If -a  or  --pending  is  given instead of package, all unpacked but unconfigured
packages are configured.
Run Code Online (Sandbox Code Playgroud)

此外,您可以使用:

sudo apt-get -f install
sudo apt-get --reinstall install gcdemu
Run Code Online (Sandbox Code Playgroud)

修复乱七八糟的包。

来自这里的示例:http : //ubuntuforums.org/archive/index.php/t-1502826.html


小智 5

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

sudo apt-get autoremove "NAME OF PACKAGE HERE"
Run Code Online (Sandbox Code Playgroud)


fos*_*dom 5

社区维基答案 - 由 OP 解决

此问题已通过运行以下终端命令解决:

sudo dpkg-reconfigure -phigh -a
Run Code Online (Sandbox Code Playgroud)

  • ≻ sudo dpkg-reconfigure -phigh -a 未知选项:a 用法:dpkg-reconfigure [options] 包 (7认同)