首页 > Linux > 解决Debian安装软件时提示“dpkg: error processing xxxxxx (–configure):”错误的方法
2015
01-07

解决Debian安装软件时提示“dpkg: error processing xxxxxx (–configure):”错误的方法

        刚才准备在一台VPS上通过“apt-get install cpulimit gawk”命令安装cpulimit和gawk时发现出现以下错误:

Setting up dictionaries-common (1.12.11) …
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
update-default-wordlist: Question empty but elements installed for class “wordlist”
dictionaries-common/default-wordlist: return code: “0”, value: “”
Choices: , Manual symlink setting
shared/packages-wordlist: return code: “10” owners/error: “shared/packages-wordlist doesn’t exist”
Installed elements: english (Webster’s Second International English wordlist)

Please see “/usr/share/doc/dictionaries-common/README.problems”, section
“Debconf database corruption” for recovery info.

update-default-wordlist: Selected wordlist “”
does not correspond to any installed package in the system
and no alternative wordlist could be selected.
dpkg: error processing dictionaries-common (–configure):
subprocess installed post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of aspell:
aspell depends on dictionaries-common (>> 0.40); however:
Package dictionaries-common is not configured yet.

dpkg: error processing aspell (–configure):
dependency problems – leaving unconfigured
dpkg: dependency problems prevent configuration of aspell-en:
aspell-en depends on aspell (>= 0.60.3-2); however:
Package aspell is not configured yet.
aspell-en depends on dictionaries-common (>= 0.49.2); however:
Package dictionaries-common is not configured yet.

dpkg: error processing aspell-en (–configure):
dependency problems – leaving unconfigured
dpkg: dependency problems prevent configuration of hunspell-en-us:
hunspell-en-us depends on dictionaries-common (>= 0.10); however:
Package dictionaries-common is not configured yet.

dpkg: error processing hunspell-en-us (–configure):
dependency problems – leaving unconfigured
dpkg: dependency problems prevent configuration of libenchant1c2a:
libenchant1c2a depends on aspell-en | myspell-dictionary | aspell-dictionary | ispell-dictionary | hunspell-dictionary; however:
Package aspell-en is not configured yet.
Package myspell-dictionary is not installed.
Package aspell-dictionary is not installed.
Package aspell-en which provides aspell-dictionary is not configured yet.
Package ispell-dictionary is not installed.
Package hunspell-dictionary is not installed.
Package hunspell-en-us which provides hunspell-dictionary is not configured yet.

dpkg: error processing libenchant1c2a (–configure):
dependency problems – leaving unconfigured
dpkg: dependency problems prevent configuration of enchant:
enchant depends on libenchant1c2a (>= 1.6); however:
Package libenchant1c2a is not configured yet.

dpkg: error processing enchant (–configure):
dependency problems – leaving unconfigured
dpkg: dependency problems prevent configuration of libwebkitgtk-1.0-0:
libwebkitgtk-1.0-0 depends on libenchant1c2a (>= 1.6); however:
Package libenchant1c2a is not configured yet.

dpkg: error processing libwebkitgtk-1.0-0 (–configure):
dependency problems – leaving unconfigured
dpkg: dependency problems prevent configuration of miscfiles:
miscfiles depends on dictionaries-common (>= 0.20); however:
Package dictionaries-common is not configured yet.

dpkg: error processing miscfiles (–configure):
dependency problems – leaving unconfigured
Errors were encountered while processing:
dictionaries-common
aspell
aspell-en
hunspell-en-us
libenchant1c2a
enchant
libwebkitgtk-1.0-0
miscfiles
E: Sub-process /usr/bin/dpkg returned an error code (1)

        网上搜索了一翻,找到的解决的方法,测试了下完全没问题,为了防止下次碰到这问题时到处找,将方法记录了下来:

1、将info文件夹更名

2、再新建一个新的info文件夹

3、更新列表

4、重新安装

5、将新创建的info目录中的文件复制到老的info目录

6、删除新的info目录

7、将旧的info目录更名为原来的目录名

        完成以上步骤后就可以继续安装你要安装的软件了!

最后编辑:
作者:耗子
这个作者貌似有点懒,什么都没有留下。

留下一个回复

你的email不会被公开。

*

code