Debian

dictionaries-common 軟體包抱怨可能的 debconf 損壞

  • January 16, 2019

升級我的 Debian Stretch 發行版時,我在配置包 dictionaries-common 的過程中收到以下錯誤消息:

┌───────────────────┤ dictionaries-common: wordlists ├───────────────────┐
|                                                                        |
| Possible debconf database corruption                                   |
|                                                                        |
| The setting for "dictionaries-common/default-wordlist" is missing, but |
| packages providing candidates are installed: "wamerican".              │
|                                                                        |
| This may be due to corruption in the debconf database. See             |
| "/usr/share/doc/dictionaries-common/README.problems" on "Debconf       |
| database corruption".                                                  │
|                                                                        |
| In this case, running "/usr/share/debconf/fix_db.pl" can help to put   |
| the debconf database in a consistent state.                            │
|                                                                        |
| Some questions are likely to be asked after this message in order to   |
| leave the dictionaries system in a (provisionally) working state.      │
|                                                                        |
|                                 <Ok>                                   |
|                                                                        |
└────────────────────────────────────────────────────────────────────────┘

所以,

  • 這真的是腐敗,還是只是依賴問題?
  • 我應該執行fix_db.pl腳本嗎?

中引用的所有錯誤/usr/share/doc/dictionaries-common/README.problems都相當陳舊,但您正在使用的發行版的發布也是如此。腳本本身是非常安全的fix_db.pl,無論如何它都會留下一個備份——你可以執行它,然後比較 and 的內容,然後/var/cache/debconf/config.dat看看/var/cache/debconf/config.dat-old/var/cache/debconf/templates.dat發生/var/cache/debconf/templates.dat-old了什麼變化。

所以在你的情況下,我會備份debconf文件,執行腳本,看看它是否改變了與dictionaries-common. 如果您debconf在後續軟體包升級過程中遇到意外問題,並且您不記得正確的答案,您可以在您所做的備份中查找它。

引用自:https://unix.stackexchange.com/questions/286992