18.10 から 19.04 にアップグレードした後の dpkg エラーを解決するにはどうすればよいですか?

18.10 から 19.04 にアップグレードした後の dpkg エラーを解決するにはどうすればよいですか?

18.10 から 19.04 にアップグレードした後、製品のインストールのたびに以下のエラーが発生するようになりました。

dpkg: error processing package sendmail-bin (--configure):
 installed sendmail-bin package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of sendmail:
 sendmail depends on sendmail-bin; however:
  Package sendmail-bin is not configured yet.

dpkg: error processing package sendmail (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sensible-mda:
 sensible-mda depends on sendmail-bin | mail-transport-agent; however:
  Package sendmail-bin is not configured yet.
  Package mail-transport-agent is not installed.
  Package sendmail-bin which provides mail-transport-agent is not configured yet.
  Package postfix which provides mail-transport-agent is not installed.

dpkg: error processing package sensible-mda (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.29-0ubuntu2) ...
Errors were encountered while processing:
 sendmail-bin
 sendmail
 sensible-mda
E: Sub-process /usr/bin/dpkg returned an error code (1)

答え1

以下のコマンドを試してください

$ apt-get install sendmail

$ apt-get -f install

$ apt-get install sendmail

関連情報