处理时遇到错误:man-db
当我使用apt-get upgrade & apt-get autoremove
和每个apt-get [Something]..
时,我得到这个错误apt-get [Something]..
当我尝试安装应用程序时:
Errors were encountered while processing: man-db E: Sub-process /usr/bin/dpkg returned an error code (1)
请阅读以下评论。 这可能是在您的系统上运行并创建不可恢复状态的危险命令。 (这些行已被注释掉,以防止复制和粘贴系统管理员)。
简单而有效我试过!!
sudo -s # cd /var/cache/debconf # rm *.dat apt-get update && apt-get upgrade
请享用 ;)
答案中没有提到的解决方案对我有用,我在Ubuntu论坛上尝试了这里提到的解决方案,执行命令
sudo dpkg -i --force-all [deb file path]
那很有效。
社区wiki答案 – 由OP解决
运行以下terminal命令解决了此问题:
sudo dpkg-reconfigure -phigh -a
您可能还想知道可以使用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 or the configure menu option in dselect: transmission-daemon lightweight BitTorrent client (daemon) vhba-dkms VHBA virtual host bus adapter module
您可以运行以下命令: dpkg --configure
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
您必须在sudo之前运行这些命令,以便可以使用超级用户凭据执行它们示例:
sudo apt-get autoremove "NAME OF PACKAGE HERE"
如果你在错误的清理尝试中删除了/var/cache
(就像我一样),这可能会解决问题(它对我有用):
sudo mkdir /var/cache/debconf
- 安装Skype后断开依赖关系
- 如何在子进程安装后调试dpkg configure error?
- dpkg:错误:在第0行附近解析文件’/ var / lib / dpkg / updates / 0045’:
- 如何解决“dpkg:错误:在PATH中找不到1个预期程序或不可执行”?
- 在deb中构建data.tar.gz而不是data.tar.xz
- dpkg:错误:重复文件触发文件名`/ usr / lib / gio / modules’和包`libglib2.0-0:i386’的兴趣
- dpkg不会更新 – 指标会话中的输入/输出错误
- “gzip:stdout:设备上没有剩余空间”
- 有没有办法看到每个包装的“处理触发器”究竟是什么?