Linux

無法打開 /usr/share/debconf/confmodule - 使用 apt-get 安裝時

  • January 6, 2014

我嘗試使用安裝 valgrind,

apt-get install valgrind

下載軟體包後,出現以下錯誤,

Setting up tzdata (2013d-0squeeze1) ...
.: 9: Can't open /usr/share/debconf/confmodule
dpkg: error processing tzdata (--configure):
subprocess installed post-installation script returned error exit status 127
configured to not write apport reports
                                 Errors were encountered while processing:
tzdata
E: Sub-process /usr/bin/dpkg returned an error code (1)

請幫助我解決這些問題。

我在 Debian-Squeeze 上

/usr/share/debconf/confmodule 是一個腳本,它是 debconf 的一部分,它是一個必需的包。檢查它是否存在且可讀:

# ll /usr/share/debconf/confmodule
-rw-r--r-- 1 root root 2690 Mar 15  2012 /usr/share/debconf/confmodule

如果它不可讀,則使其可讀chmod a+r /usr/share/debconf/confmodule

如果它失去或損壞,請嘗試重新安裝 debconf apt-get --reinstall install debconf,.

引用自:https://serverfault.com/questions/565266