我希望这是这个问题的正确论坛。我正在尝试对Debian进行更新,但会出现错误
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
exim4-base : Depends: exim4-config (>= 4.82) but it is not going to
be installed or exim4-config-2
Recommends: mailx
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
按照建议操作也会出错:
# echo Y | apt-get -f install
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following extra packages will be installed:
exim4-config
The following packages will be REMOVED:
postfix
The following NEW packages will be installed:
exim4-config
0 upgraded, 1 newly installed, 1 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 0 B/503 kB of archives.
After this operation, 1130 kB of additional disk space will be used.
Do you want to continue? [Y/n]
debconf: unable to initialize frontend: Dialog debconf:
(TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
dpkg: error processing package postfix (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
似乎中断后缀安装是其中一个问题。 Y / n也不起作用。因此回声Y |。但我无法重新安装Postfix。给出了另一个错误。在互联网上尝试了所有建议,但都有不同的错误。
这不起作用Apt-get can't install anything due to broken dependencies
知道如何解决这个问题吗?