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
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ssmtp (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
error during 'do-release-upgrade -d'
=======
[...]
Progress: [ 99%]
Processing triggers for libgdk-
Processing triggers for dbus (1.12.16-
Processing triggers for libapache2-
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://
and attach the files in /var/log/
E:Sub-process /usr/bin/dpkg returned an error code (1)
Setting up ssmtp (2.64-8.1ubuntu1) ...
/var/lib/
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
The file /var/lib/ dpkg/info/ ssmtp.config contains the following lines:
if [ -f /etc/ssmtp/ ssmtp.conf ] mailhub| rewriteDomain| hostname| FromLineOverrid e)=" /etc/ssmtp/ ssmtp.conf`
export $v
then
for v in `grep -E "^(root|
do
done
So it was reading your /etc/ssmtp/ ssmtp.conf and found something that could not be exported.