unattended do-release-upgrade to cosmic asks about /etc/gdm3/custom.conf

Bug #1797636 reported by Paul Larson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm trying to do some automated testing that involved upgrading a system from bionic to cosmic, so I need it to not ask for user input.

Before running do-release-upgrade, the system got a fresh dist-upgrade and reboot.

To avoid interactive responses, I'm using:
$ sudo do-release-upgrade -d -f DistUpgradeViewNonInteractive

Part way through the upgrade, I do get prompted for something though:
Setting up gdm3 (3.30.1-1ubuntu1) ...

Configuration file '/etc/gdm3/custom.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ? Your options are:
    Y or I : install the package maintainer's version
    N or O : keep your currently-installed version
      D : show the differences between the versions
      Z : start a shell to examine the situation
 The default action is to keep your current version.
*** custom.conf (Y/I/N/O/D/Z) [default=N] ?

I also found this in /var/log/dist-upgrade/main.log:
2018-10-12 16:36:44,910 WARNING got a conffile-prompt from dpkg for file: '/etc/gdm3/custom.conf'
2018-10-12 16:36:49,915 ERROR error 'a bytes-like object is required, not 'str'' when trying to write to the conffile

Shouldn't the '-f DistUpgradeViewNonInteractive' have prevented this from getting asked?

Jeremy Bícha (jbicha)
affects: gdm3 (Ubuntu) → ubuntu-release-upgrader (Ubuntu)
Revision history for this message
Jeremy Bícha (jbicha) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
Revision history for this message
Paul Larson (pwlars) wrote :

I think that will work. I tried enabling these settings and it completed this time

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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