ubuntu - "sudo apt-get"错误,自从更新到 Ubuntu 14.04 后的 dictionnary-commons

标签 ubuntu terminal command apt-get

你可以在下面看到我遇到的错误。

如果问题已经被问过(并回答过),我确实在谷歌上进行了搜索,但对我来说没有任何效果。我不能做 sudo apt-get install ...

如果有人可以帮助我解决这种情况,请提前致谢。

问候,

大卫

david@09:25:47 ~$sudo apt-get upgrade
[sudo] password for david: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up dictionaries-common (1.20.5) ...
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: american (American English), british (British English)

  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 package 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 package aspell (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of hyphen-en-us:
 hyphen-en-us depends on dictionaries-common (>= 0.10) | openoffice.org-updatedicts; however:
  Package dictionaries-common is not configured yet.
  Package openoffice.org-updatedicts is not installed.
  Package dictionaries-common which provides openoffice.org-updatedicts is not configured yet.

dpkg: error processing package hyphen-en-us (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of myspell-en-gb:
 myspell-en-gb depends on dictionaries-common (>= 0.10) | openoffice.org-updatedicts; however:
  Package dictionaries-common is not configured yet.
  Package openoffice.org-updatedicts is not installed.
  Package dictionaries-common which provides openoffice.org-updatedicts is not configured yet.

dpkg: error processing package myspell-en-gb (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of myspell-en-za:
 myspell-en-za depends on dictionaries-common (>= 0.10) | openoffice.org-updatedicts; however:
  Package dictionaries-common is not configured yet.
  Package openoffice.org-updatedicts is not installed.
  Package dictionaries-common which provides openoffice.org-updatedicts is not configured yet.

dpkg: error processing package myspell-en-za (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mythes-en-us:
 mythes-en-us depends on dictionaries-common (>= 0.10) | openoffice.org-updatedicts; however:
  Package dictionaries-common is not configured yet.
  Package openoffice.org-updatedicts is not installed.
  Package dictionaries-common which provides openoffice.org-updatedicts is not configured yet.No apport report written because MaxReports is reached already


dpkg: error processing package mythes-en-us (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 dictionaries-common
 aspell
 hyphen-en-us
 myspell-en-gb
 myspell-en-za
 mythes-en-us
E: Sub-process /usr/bin/dpkg returned an error code (1)

最佳答案

这有帮助:

/usr/share/doc/dictionaries-common/README.problems

1) 以 root 身份运行 /usr/share/debconf/fix_db.pl

看看哪些模板受到了影响

2) diff -u/var/cache/debconf/config.dat{-old,} | grep ^[+-]名称

3) diff -u/var/cache/debconf/templates.dat{-old,} | grep ^[+-]名称

4) sudo dpkg-reconfigure dictionaries-common (这会打印出软件包未安装或已损坏。)

5) sudo apt-get upgrade

就是这样。

再次感谢;)

关于ubuntu - "sudo apt-get"错误,自从更新到 Ubuntu 14.04 后的 dictionnary-commons,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23671727/

相关文章:

terminal - 如何解码APDU上终端与芯片之间的通信?

java - Java通过终端执行外部程序

refresh - TextMate:在 Firefox 中预览而无需先保存文档?

ubuntu - 无法连接到比格犬骨黑

javascript - 在终端中的js文件之间传递变量...

selenium - nightwatch selenium 命令 "elements"返回有关第一个参数的错误,即使我传入了 css 选择器或 xpath 表达式

bash - 制作一个将句子转换为标题的脚本?

android - 在 Android 2.2 上运行 HelloCordova 时找不到类 'android.webkit.WebResourceResponse'

python - 安装/运行 Pyomo(未找到命令)

vim - 在 Ubuntu 上从 Vim 剪切到系统剪贴板