Output with set -e: :~# DEBCONF_DEBUG=developer dpkg --configure --pending Setting up opensmtpd (6.0.3p1-5) ... debconf (developer): frontend started debconf (developer): frontend running, package name is opensmtpd debconf (developer): starting /var/lib/dpkg/info/opensmtpd.config configure + set -e + . /usr/share/debconf/confmodule + [ ! 1 ] + [ -z ] + exec + [ ] + exec + DEBCONF_REDIR=1 + export DEBCONF_REDIR + db_fget opensmtpd/mailname seen + _db_cmd FGET opensmtpd/mailname seen + _db_internal_IFS=
+ IFS= + printf %s\n FGET opensmtpd/mailname seen + IFS= + read -r _db_internal_line debconf (developer): <-- FGET opensmtpd/mailname seen debconf (developer): --> 0 false + IFS= + RET=false + return 0 + [ false = true ] + [ -f /etc/mailname ] + hostname --fqdn + MAILNAME= dpkg: error processing package opensmtpd (--configure): installed opensmtpd package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: opensmtpd I think it's because I have no entry in /etc/hosts for the hostname in /etc/hostname, just localhost. hostname --fqdn returns "Name or service not known". On Sat, 18 Jan 2020 11:40:54 -0500 Ryan Kavanagh <r...@debian.org> wrote: > Control: tags -1 + moreinfo > > Hi Jernej, > > On Mon, Jan 13, 2020 at 08:38:47PM +0100, Jernej Jakob wrote: > > I installed opensmtpd but its installation failed. I found an archived > > bug report that matches my error exactly: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770939 > > I'm unable to reproduce this in a clean buster chroot (using piuparts). > Could you please add "set -x" to the top of > /var/lib/dpkg/info/opensmtpd.config (right before the "set -e" line), > rerun > > DEBCONF_DEBUG=developer dpkg --configure --pending > > and attach the output? > > Thanks, > Ryan >