← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 2004018] Re: hide upgrade notifications on unsupported arches

 

This bug was fixed in the package ubuntu-advantage-tools - 27.14.4~20.04

---------------
ubuntu-advantage-tools (27.14.4~20.04) focal; urgency=medium

  * Backport new upstream release: (LP: #2011477) to focal

ubuntu-advantage-tools (27.14.4) lunar; urgency=medium

  * timer: disable update_contract_info job (LP: #2015302)
  * livepatch: prevent livepatch from auto-enabling and subsequently failing
    on non-amd64 systems (LP: #2015241)

ubuntu-advantage-tools (27.14.3) lunar; urgency=medium

  * livepatch: prevent livepatch from auto-enabling and subsequently failing
    on interim releases (LP: #2013409)

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

  * status:
    - always use dpkg instead of lscpu for fetching architecture
      information (LP: #2012735)

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

  * New upstream release 27.14.1
    - apt: fix a configuration leak in the apt.get_pkg_candidate_version
      function (LP: #2012642)

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

  * d/ubuntu-advantage-tools.{postinst,postrm,preinst}:
    - migrate certain settings out of uaclient.conf to a new file managed by
      the pro config subcommand (LP: #2004280)
  * d/ubuntu-advantage-tools.postinst:
    - refactor PREVIOUS_PKG_VER as a global variable
    - simplify how we add notices
  * New upstream release 27.14 (LP: #2011477)
    - api: new u.unattended_upgrades.status.v1 endpoint for querying status of
      unattended upgrades
    - apt:
      + remove legacy apt-hook
      + deliver json apt-hook for interim releases
      + fix cloud identification logic in json apt-hook
      + make all calls to esm-cache isolated from system configuration
        (LP: #2008280)
      + only set up the esm cache on supported systems (LP: #2004018)
    - fix:
      + format the output to be more readable (LP: #1926182)
      + add option to attach during a fix without a token
      + verify if fixed version can be installed before trying (LP: #2006705)
    - livepatch: show warning if current kernel is not supported
    - locks: alert user about corrupted lock files (LP: #1996931)
    - logging: logs are now formatted as jsonlines
    - motd: remove esm-apps announcement
    - notices: new representation on disk as separate files (LP: #1987738)
    - realtime: remove ubuntu-realtime package on disablement
    - status:
      + removed contract info update check network call
      + no longer includes warnings about notices when non-root (LP: #2006138)
      + unattached status sends virt type to contract server for better
        resource availability calculation
    - timer jobs: add daily job to check for contract updates
    - yaml: always import distro-provided pyyaml (LP: #2007234, LP: #2007241)

 -- Renan Rodrigo <renanrodrigo@xxxxxxxxxxxxx>  Thu, 06 Apr 2023
10:48:25 -0300

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

Title:
  hide upgrade notifications on unsupported arches

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

Bug description:
  [Impact]
  Users of unsupported architectures (such as armhf) could see the messages about updates available in Ubuntu Pro, even though they aren't really available to that machine.

  The fix is to check the supported architectures of esm before
  configuring the esm-apt-cache. The end result is that messages don't
  get displayed on unsupported systems

  [Test Case]
  On a fresh armhf container (or other unsupported architecture):
  ```
  /usr/bin/python3 /usr/lib/ubuntu-advantage/esm_cache.py
  ls /var/lib/ubuntu-advantage/apt-esm/etc/apt/sources.list.d
  ```
  That directory should not exist or not have any contents if the fix worked. (That means that apt won't attempt to download any potential esm updates.)

  Machines which had already downloaded the sources lists should have those removed.
  On a fresh armhf container (or other unsupported architecture):
  - Running latest released u-a-t:
  ```
  /usr/bin/python3 /usr/lib/ubuntu-advantage/esm_cache.py
  ls /var/lib/ubuntu-advantage/apt-esm/etc/apt/sources.list.d
  ```
  The directory will contain the sources list files for esm-apps at least.

  - Upgrade to u-a-t 27.14:
  ```
  /usr/bin/python3 /usr/lib/ubuntu-advantage/esm_cache.py
  ls /var/lib/ubuntu-advantage/apt-esm/etc/apt/sources.list.d
  ```
  That directory should not exist or not have any contents if the fix worked.

  If you don't have a real or virtual armhf system, you can trick pro-client by doing something like the following:
  DO NOT do this on a real machine you care about - only do it in a throwaway container/VM
  ```
  echo -e '#!/usr/bin/bash\necho armhf' | tee /usr/bin/dpkg
  ```

  [Regression Potential]
  The fix reduces the number of machines that will get messages. If we made a mistake, it may mean that machines that should get messages won't.

  [Discussion]
  This was implemented in a more generic way that just looking at architectures, so it will cover other situations like unsupported releases or kernels if those ever apply.

  [Original Description]

  a user that is not running amd64 or i386 currently gets the
  notification for ESM security packages ... only after they signed up
  for pro they get an error message that their architecture is not
  supported.

  We should either hide the esm update notification completely on such
  architectures (arm64/aarch64 in this case) or make it clear in the
  initial message that only x86 architectures are supported.

  the related forum post can be found at:

  https://discourse.ubuntu.com/t/why-is-extended-security-maintenance-
  needed-for-apps-in-ubuntu-20-04-x-lts-in-2021/25871/28

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