Just adding another voice to this thread.  I had the same problem during
the upgrade.  The failure for sendmail-bin to properly configure caused
the sensible-mta, dovecot-core and inn2 packages to all fail to properly
update due to dependency problems.  Thanks to Mirko above, who suggested
a solution.  Stopping the sendmail service and running "apt install -f"
allowed the configuration to complete.

In case it is any help, here are the relevant log messages:


Messages from /var/log/dist-upgrade/main.log:

ERROR got an error from dpkg for pkg: 'sendmail-bin': 'installed sendmail-bin
    package post-installation script subprocess returned error exit status 2'
2019-07-07 22:44:50,515 DEBUG running apport_pkgfailure() sendmail-bin:
    installed sendmail-bin package post-installation script subprocess
    returned error exit status 2
2019-07-07 22:44:50,528 ERROR got an error from dpkg for pkg: 'sendmail-bin':
   'installed sendmail-bin package post-installation script subprocess
   returned error exit status 2'
2019-07-07 22:47:47,560 ERROR got an error from dpkg for pkg: 'sendmail':
    'dependency problems - leaving unconfigured'
2019-07-07 22:47:47,561 DEBUG running apport_pkgfailure() sendmail:
    dependency problems - leaving unconfigured
2019-07-07 22:47:47,561 DEBUG dpkg error because of dependency problems,
    not reporting against sendmail
2019-07-07 22:47:47,561 ERROR got an error from dpkg for pkg: 'sendmail':
    'dependency problems - leaving unconfigured'
2019-07-07 22:47:47,758 ERROR got an error from dpkg for pkg: 'sensible-mda':
    'dependency problems - leaving unconfigured'
2019-07-07 22:47:47,758 DEBUG running apport_pkgfailure() sensible-mda:
    dependency problems - leaving unconfigured
2019-07-07 22:47:47,759 DEBUG dpkg error because of dependency problems,
    not reporting against sensible-mda
2019-07-07 22:47:47,759 ERROR got an error from dpkg for pkg: 'sensible-mda':
    'dependency problems - leaving unconfigured'
2019-07-07 22:47:48,269 ERROR got an error from dpkg for pkg: 'inn2':
    'dependency problems - leaving unconfigured'
2019-07-07 22:47:48,270 DEBUG running apport_pkgfailure() inn2:
    dependency problems - leaving unconfigured
2019-07-07 22:47:48,270 DEBUG dpkg error because of dependency problems,
    not reporting against inn2
2019-07-07 22:47:48,270 ERROR got an error from dpkg for pkg: 'inn2':
    'dependency problems - leaving unconfigured'
2019-07-07 22:47:52,116 ERROR got an error from dpkg for pkg: 'dovecot-core':
    'triggers looping, abandoned'
2019-07-07 22:47:52,116 DEBUG running apport_pkgfailure() dovecot-core:
    triggers looping, abandoned
2019-07-07 22:47:52,132 ERROR got an error from dpkg for pkg: 'dovecot-core':
    'triggers looping, abandoned'
2019-07-07 22:51:47,341 ERROR Exception during pm.DoInstall()
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-nggm0iiu/DistUpgrade/DistUpgradeView.py",
  line 220, in run res = pm.do_install(self.writefd)
apt_pkg.Error: E:Sub-process /usr/bin/dpkg returned an error code (1)
2019-07-07 22:51:47,369 ERROR SystemError from cache.commit():
    installArchives() failed
2019-07-07 22:51:47,370 ERROR found exception: 'E:Sub-process /usr/bin/dpkg
    returned an error code (1)'

2019-07-07 22:55:43,205 DEBUG Running PostInstallScript:
    './xorg_fix_proprietary.py'
2019-07-07 22:55:43,218 ERROR got error from PostInstallScript
    ./xorg_fix_proprietary.py (g-exec-error-quark: Failed to execute child
    process “./xorg_fix_proprietary.py” (No such file or directory) (8))



Messages from /var/log/dist-upgrade/apt-term.log:

Setting up sendmail-bin (8.15.2-12) ...
Installing new version of config file /etc/init.d/sendmail ...
update-alternatives: warning: forcing reinstallation of alternative
    /usr/lib/sm.bin/sendmail because link group sendmail-mta is broken
Saving old /etc/mail/sendmail.cf as /etc/mail/sendmail.cf.old ...
start-stop-daemon: matching only on non-root pidfile
    /var/run/sendmail/mta/sendmail.pid is insecure
dpkg: error processing package sendmail-bin (--configure):
 installed sendmail-bin package post-installation script subprocess
     returned error exit status 2

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1822866

Title:
  package sendmail-bin 8.15.2-12 failed to install/upgrade: installed
  sendmail-bin package post-installation script subprocess returned
  error exit status 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sendmail/+bug/1822866/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to