postfix installed during release upgrade to Noble

Bug #2060578 reported by Brian Murray
28
This bug affects 7 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
Critical
Nick Rosbrook

Bug Description

I encountered a debconf prompt regarding configuring postfix when upgrading to Noble, which seemed wrong.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: ubuntu-release-upgrader-core 1:24.04.12
ProcVersionSignature: Ubuntu 6.5.0-26.26-generic 6.5.13
Uname: Linux 6.5.0-26-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: unknown
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 8 14:18:30 2024
InstallationDate: Installed on 2024-04-04 (4 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: Upgraded to noble on 2024-04-08 (0 days ago)
VarLogDistupgradeXorgFixuplog:
 INFO:root:/usr/bin/do-release-upgrade running
 INFO:root:No xorg.conf, exiting

Revision history for this message
Brian Murray (brian-murray) wrote :
Changed in ubuntu-release-upgrader (Ubuntu):
milestone: none → ubuntu-24.04-beta
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
Brian Murray (brian-murray) wrote :

While you are there you might have a look at the SyntaxWarning in line 61 of the ubuntu-release-upgrader apport hook.

"tmpdir = re.compile('ubuntu-release-upgrader-\w+')"

I'm having trouble copying and pasting from my VM but you get the idea.

Nick Rosbrook (enr0n)
Changed in ubuntu-release-upgrader (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Nick Rosbrook (enr0n)
Revision history for this message
Catherine Redfield (catred) wrote :
Download full text (3.7 KiB)

We also see this bug running do-release-upgrade on GCE base VMs. Prior to running the upgrade and after running the upgrade, postfix is not installed:

catred@jammy-to-noble-upgrade-arm64:~$ dpkg --no-pager --list postfix
dpkg-query: no packages found matching postfix

If I create a second SSH shell during the upgrade while paused on the postfix prompt, I see:

catred@jammy-to-noble-upgrade-base-amd64:~$ dpkg --no-pager --list postfix
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un postfix <none> <none> (no description available)

The prompt I get is:

Package configuration

  ┌────────────────────────┤ Postfix Configuration ├────────────────────────┐
  │ Please select the mail server configuration type that best meets your │
  │ needs. │
  │ │
  │ No configuration: │
  │ Should be chosen to leave the current configuration unchanged. │
  │ Internet site: │
  │ Mail is sent and received directly using SMTP. │
  │ Internet with smarthost: │
  │ Mail is received directly using SMTP or by running a utility such │
  │ as fetchmail. Outgoing mail is sent using a smarthost. │
  │ Satellite system: │
  │ All mail is sent to another machine, called a 'smarthost', for │
  │ delivery. │
  │ Local only: │
  │ The only delivered mail is the mail for local users. There is no │
  │ network. │
  │ │
  │ General mail configuration type: │
  │ │
  │ No configuration │
  │ Internet Site │
  │ Internet with smarthost ...

Read more...

Revision history for this message
Ryan Hill (rthill91) wrote :

We see this in AWS VMs as well on do-release-upgrades with the same prompt/output/etc as describe by Catherine

Revision history for this message
Nick Rosbrook (enr0n) wrote :

I uploaded a fix. It is currently waiting in the unapproved queue.

Jeremy Bícha (jbicha)
Changed in ubuntu-release-upgrader (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Mathieu Cossette (silver82) wrote :

I went ahead with the postfix installation anyways but when my upgrade is going to be finished how do I remove all of this package ? Complete removal of postfix , how to do it ?

Revision history for this message
Jeremy Bícha (jbicha) wrote :

I did an upgrade from 23.10 to 24.04 over the weekend. I saw the postfix debconf prompt but postfix was removed automatically during the install. That was before the fix for this issue landed since that fix has not reached noble release yet.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:24.04.14

---------------
ubuntu-release-upgrader (1:24.04.14) noble; urgency=medium

  [ Brian Murray ]
  * Set prompt to lts because 24.04 is one (LP: #2061214)

  [ Nick Rosbrook ]
  * DistUpgradeQuirks: tell apport to ignore update-apt-xapian-index
    (LP: #2058227)
  * DistUpgradeQuirk: fix check for linux-image-raspi in cache (LP: #2061181)
  * DistUpgradeQuirks: handle t64 replacement packages (LP: #2061175)
  * Run pre-build.sh: updating mirrors, demotions, and translations.

 -- Nick Rosbrook <email address hidden> Mon, 15 Apr 2024 15:02:26 -0400

Changed in ubuntu-release-upgrader (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.