[Bug 1897523] Re: upgrade bug from 18.04 to 20.04; dpkg: error processing package ssmtp (--configure): installed ssmtp package post-installation script subprocess returned error exit status 2
Brian Murray
1897523 at bugs.launchpad.net
Wed Sep 30 21:58:30 UTC 2020
The file /var/lib/dpkg/info/ssmtp.config contains the following lines:
if [ -f /etc/ssmtp/ssmtp.conf ]
then
for v in `grep -E "^(root|mailhub|rewriteDomain|hostname|FromLineOverride)=" /etc/ssmtp/ssmtp.conf`
do
export $v
done
So it was reading your /etc/ssmtp/ssmtp.conf and found something that
could not be exported.
** Package changed: ubuntu-release-upgrader (Ubuntu) => ssmtp (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1897523
Title:
upgrade bug from 18.04 to 20.04; dpkg: error processing package ssmtp
(--configure): installed ssmtp package post-installation script
subprocess returned error exit status 2
Status in ssmtp package in Ubuntu:
New
Bug description:
error during 'do-release-upgrade -d'
======================
[...]
Progress: [ 99%]
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.40.0+dfsg-3) ...
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
Processing triggers for libapache2-mod-php7.4 (7.4.3-4ubuntu2.2) ...
Errors were encountered while processing:
ssmtp
Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code (1)
Could not install the upgrades
The upgrade has aborted. Your system could be in an unusable state. A
recovery will run now (dpkg --configure -a).
Please report this bug in a browser at
http://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+filebug
and attach the files in /var/log/dist-upgrade/ to the bug report.
E:Sub-process /usr/bin/dpkg returned an error code (1)
Setting up ssmtp (2.64-8.1ubuntu1) ...
/var/lib/dpkg/info/ssmtp.config: 11: export: #адрес: bad variable name
dpkg: error processing package ssmtp (--configure):
installed ssmtp package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
ssmtp
Upgrade complete
The upgrade has completed but there were errors during the upgrade
process.
To continue please press [ENTER]
===========================================
However 'lsb_release -a' output
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ssmtp/+bug/1897523/+subscriptions
More information about the foundations-bugs
mailing list