conffile prompt during release upgrade

Bug #2015778 reported by Brian Murray
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
binutils (Ubuntu)
Fix Released
High
Nick Rosbrook
Lunar
Fix Released
High
Nick Rosbrook

Bug Description

I was upgrading from Kinetic to Lunar today and received a question about a configuration file I had not touched.

Setting up binutils-common:amd64 (2.40-2ubuntu3) ...^M
^M
Configuration file '/etc/gprofng.rc'^M
 ==> File on system created by you or by a script.^M
 ==> File also in package provided by package maintainer.^M
   What would you like to do about it ? Your options are:^M
    Y or I : install the package maintainer's version^M
    N or O : keep your currently-installed version^M
      D : show the differences between the versions^M
      Z : start a shell to examine the situation^M
 The default action is to keep your current version.^M
*** gprofng.rc (Y/I/N/O/D/Z) [default=N] ? d^M
^[[?1h^[=^M--- /etc/gprofng.rc 2022-12-01 03:11:36.000000000 -0800^[[m^M
+++ /etc/gprofng.rc.dpkg-new 2023-03-05 00:47:46.000000000 -0800^[[m^M
@@ -1,4 +1,4 @@^[[m^M
-# Copyright (C) 2021 Free Software Foundation, Inc.^[[m^M
+# Copyright (C) 2021-2023 Free Software Foundation, Inc.^[[m^M
 #^[[m^M
 # This file is free software; you can redistribute it and/or modify^[[m^M
 # it under the terms of the GNU General Public License as published by^[[m^M
^M^[[K^[[?1l^[>^M
Configuration file '/etc/gprofng.rc'^M
 ==> File on system created by you or by a script.^M
 ==> File also in package provided by package maintainer.^M
   What would you like to do about it ? Your options are:^M
    Y or I : install the package maintainer's version^M
    N or O : keep your currently-installed version^M
      D : show the differences between the versions^M
      Z : start a shell to examine the situation^M
 The default action is to keep your current version.^M
*** gprofng.rc (Y/I/N/O/D/Z) [default=N] ? i^M
Installing new version of config file /etc/gprofng.rc ...^M

Revision history for this message
Brian Murray (brian-murray) wrote :

I also tried this in a chroot and encountered the same issue.

tags: added: cuqa-manual-testing
tags: added: rls-ll-incoming
Changed in binutils (Ubuntu Lunar):
assignee: nobody → Nick Rosbrook (enr0n)
importance: Undecided → High
Revision history for this message
Shengjing Zhu (zhsj) wrote :

/etc/gprofng.rc is not conffile in kinetic...

Changed in binutils (Ubuntu Lunar):
milestone: none → ubuntu-23.04
Revision history for this message
Dave Jones (waveform) wrote :

Just ran into this on a test upgrade of the raspi desktop image. The card was originally flashed with kinetic and I noted /etc/gprofng.rc was *not* present initially (@zhsj is correct this doesn't *ship* with kinetic), but appeared after the initial upgrade required before do-release-upgrade (in other words /etc/gprofng.rc is introduced by the version of binutils-common in kinetic-updates).

The /etc/gprofng.rc file was unmodified before proceeding to do-release-upgrade, yet I was prompted to merge changes during the upgrade (which was otherwise uneventful), despite there being no local changes to the file, and the only diff being that shown in the description above (a change in the copyright notice in the header).

Some issue in the configuration merge mechanism, perhaps? Or maybe something iffy being done to the config file in the binutils-common maintscripts (if any)?

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

We think the problem is that in kinetic, binutils did not declare /etc/gprofng.rc as a conffile (although it was shipped), but in Lunar debian/binutils-common.conffiles was added. This means that dpkg thinks the existing /etc/gprofng.rc was created by the user.

I am waiting on a PPA build to test a fix.

Changed in binutils (Ubuntu Lunar):
status: New → Triaged
Revision history for this message
Dave Jones (waveform) wrote :

@enr0n ah, that makes sense (and apologies to @zhsj; I suspect I misinterpreted comment 2!)

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

I tested the attached patch using my PPA https://launchpad.net/~enr0n/+archive/ubuntu/lp2015778/+packages, and I did not get the conffile prompt during upgrade.

root@kinetic:~# apt-cache policy binutils-common
binutils-common:
  Installed: 2.39-3ubuntu1.1
  Candidate: 2.39-3ubuntu1.1
  Version table:
 *** 2.39-3ubuntu1.1 500
        500 http://archive.ubuntu.com/ubuntu kinetic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu kinetic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.39-3ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
root@kinetic:~# do-release-upgrade -d --allow-third-party
[ ... ]
root@kinetic:~# head /etc/gprofng.rc
# Copyright (C) 2021-2023 Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
root@kinetic:~# apt-cache policy binutils-common
binutils-common:
  Installed: 2.40-2ubuntu4~ppa2
  Candidate: 2.40-2ubuntu4~ppa2
  Version table:
 *** 2.40-2ubuntu4~ppa2 500
        500 https://ppa.launchpadcontent.net/enr0n/lp2015778/ubuntu lunar/main amd64 Packages
        100 /var/lib/dpkg/status
     2.40-2ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu lunar/main amd64 Packages

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

I have changed the patch to hardcode the expected md5sum instead.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "binutils_2.40-2ubuntu4.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

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

This bug was fixed in the package binutils - 2.40-2ubuntu4

---------------
binutils (2.40-2ubuntu4) lunar; urgency=medium

  * debian/binutils-common.preinst: remove /etc/gprofng.rc if it has not been
    modified to avoid unnecessary conffile prompt on upgrade (LP: #2015778)

 -- Nick Rosbrook <email address hidden> Thu, 13 Apr 2023 16:38:40 -0400

Changed in binutils (Ubuntu Lunar):
status: Triaged → Fix Released
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.