← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 2004057] Re: The pre-update hook systemd services fail when not executed by the root user

 

This bug was fixed in the package ubuntu-advantage-tools -
27.13.2~22.04.1

---------------
ubuntu-advantage-tools (27.13.2~22.04.1) jammy; urgency=medium

  * Backport new upstream release: (LP: #2003977) to jammy

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

  * d/ubuntu-advantage-tools.{postinst,postrm,preinst}:
    - avoid a dpkg conf prompt if the only change to the original config file
      was to the apt_news flag (LP: #2003977)
  * apt-hook:
    - only run the pro client pre-update hook services when the apt update is
      executed as root user (LP: #2004057)

 -- Renan Rodrigo <renanrodrigo@xxxxxxxxxxxxx>  Fri, 27 Jan 2023
20:14:10 -0300

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

** Changed in: ubuntu-advantage-tools (Ubuntu Focal)
       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/2004057

Title:
  The pre-update hook systemd services fail when not executed by the
  root user

Status in ubuntu-advantage-tools package in Ubuntu:
  New
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:
  New

Bug description:
  [Impact]
  Although calls to apt update are always executed as root from the command line, in some scenarios a user may call 'update' on a Cache as a non-root user. Even being a corner case, some test suites for python-apt did run into this problem, for instance.

  For what we need (esm-caches and apt-news), only the root calls should be enough.
  Being defensive here avoids errors in undesired scenarios.

  [Test Case]
  There is an automated test script (with a python snippet) under sru/release-27.13.2/ to make sure this is covered.

  [Regression Potential]
  No visible regression potential, as the check for root user will just ensure default behavior in all use cases. The change is only making the code more defensive, and will not cause impact in any other package by skipping the u-a-t updates.

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