← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 2004279] Re: preinst conffile prompt avoidance restores wrong conffile for later versions

 

This bug was fixed in the package ubuntu-advantage-tools -
27.13.3~18.04.1

---------------
ubuntu-advantage-tools (27.13.3~18.04.1) bionic; urgency=medium

  * Backport new upstream release: (LP: #2004130 and LP: #2004279) to
    bionic

ubuntu-advantage-tools (27.13.3~23.04.1) lunar; urgency=medium

  * d/ubuntu-advantage-tools.preinst: (LP: #2004279)
    - correct second set of md5sums to continue avoiding a dpkg conf prompt
      if the only change to the original config file was to the apt_news flag
    - restore correct default uaclient.conf when upgrading from 27.13.X and
      the only conf change is apt_news
  * esm-cache.service:
    - Catch errors when esm.ubuntu.com is unreachable to avoid causing crash
      reports and degraded systemd status from this non-critical service
      (LP: #2004130)

 -- Grant Orndorff <grant.orndorff@xxxxxxxxxxxxx>  Tue, 31 Jan 2023
10:07:56 -0500

** Changed in: ubuntu-advantage-tools (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/2004279

Title:
  preinst conffile prompt avoidance restores wrong conffile for later
  versions

Status in ubuntu-advantage-tools package in Ubuntu:
  Fix Released
Status in ubuntu-advantage-tools source package in Xenial:
  Fix Released
Status in ubuntu-advantage-tools source package in Bionic:
  Fix Released
Status in ubuntu-advantage-tools source package in Focal:
  Fix Released
Status in ubuntu-advantage-tools source package in Jammy:
  Fix Released
Status in ubuntu-advantage-tools source package in Kinetic:
  Fix Released
Status in ubuntu-advantage-tools source package in Lunar:
  Fix Released

Bug description:
  [Impact]
  Users who upgrade from 27.13.X to the next version (27.13.3) could experience one of two things:

  If they had run `pro config set apt_news=false` then our preinst code
  to handle that conffile change will not do anything because the md5sum
  in `preinst` is incomplete. This is okay because we haven't changed
  the default conffile in 27.13.3, but we should still fix it as it
  could affect future versions.

  If they had run `pro config set apt_news=true` then our preinst code
  would restore a non-default conffile, so the user would still have an
  edited conffile even after the preinst code runs. This is also okay
  for now because we haven't changed the default conffile in 27.13.3,
  but we should still fix it as it could affect future versions.

  [Test Case]
  Ensure the following upgrade paths do not cause conffile prompts:

  27.11.3 -> 27.13.3 and debsums -e ubuntu-advantage-tools is OK
  27.11.3 with pro config set apt_news=false -> 27.13.3
  27.11.3 with pro config set apt_news=true -> 27.13.3 and debsums -e ubuntu-advantage-tools is OK

  27.12 -> 27.13.3 and debsums -e ubuntu-advantage-tools is OK
  27.12 with pro config set apt_news=false -> 27.13.3
  27.12 with pro config set apt_news=true -> 27.13.3 and debsums -e ubuntu-advantage-tools is OK

  27.13.1 -> 27.13.3 and debsums -e ubuntu-advantage-tools is OK
  27.13.1 with pro config set apt_news=false -> 27.13.3
  27.13.1 with pro config set apt_news=true -> 27.13.3 and debsums -e ubuntu-advantage-tools is OK

  27.13.2 -> 27.13.3 and debsums -e ubuntu-advantage-tools is OK
  27.13.2 with pro config set apt_news=false -> 27.13.3
  27.13.2 with pro config set apt_news=true -> 27.13.3 and debsums -e ubuntu-advantage-tools is OK

  [Regression Potential]
  We haven't done the proper fix for #2003977 yet, so if we didn't properly update the preinst hack to avoid prompts, that bug may reoccur. As part of this release we are ensuring the checksums in preinst are accurate and will still properly gaurd against this bug for upgrades from all applicable versions: 27.11.3, 27.12, 27.13.1, 27.13.2. Testing these upgrade paths is a part of the verification for this SRU.

  [Discussion]
  This is an extension of the temporary fix for #2003977 - it is not a permanent solution. We will introduce a permanent solution in our next release: 27.13.4. The permanent solution is being tracked in #2004280

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2004279/+subscriptions