← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 2068744] Re: Launching ua status → An unexpected error occurred: list index out of range

 

This bug was fixed in the package ubuntu-advantage-tools - 33.2~18.04

---------------
ubuntu-advantage-tools (33.2~18.04) bionic; urgency=medium

  * Backport 33.2 to bionic (LP: #2069237)

ubuntu-advantage-tools (33.2) oracular; urgency=medium

  * d/apparmor: add apt-news access to package information on the system
    (LP: #2072489) (GH: #3193)

ubuntu-advantage-tools (33.1) oracular; urgency=medium

  * New upstream release 33.1: (LP: #2060769)
    - system:
      + always pass C.UTF8 as the language when calling a subprocess
      + ignore utf-8 decode errors on subprocess output

ubuntu-advantage-tools (33) oracular; urgency=medium

  * d/apparmor: adjust the esm_cache apparmor profile to allow reading of dpkg
    data directory (LP: #2067810) (GH: #3137)
  * New upstream release 33 (LP: #2069237)
    - apt: use Python bindings instead of apt CLI to query for installed
      packages (LP: #2060769) (LP: #2068744)
    - beta: drop support for beta services
    - contracts: add support for contracts which target a specific series
    - fips: change enable functionality to ensure all packages with a FIPS
      candidate are upgraded to the FIPS version (GH: #2667)
    - fix:
      + add the current_status field to the plan api return object
      + change recommended attach method to magic attach (GH: #3040)
    - livepatch: prefer the term 'coverage' instead of 'support' in messaging
      (GH: #3063)
    - realtime:
      + auto-select the raspi variant when appropriate
      + inform the user when auto-selecting a variant

 -- Lucas Moura <lucas.moura@xxxxxxxxxxxxx>  Thu, 18 Jul 2024 11:20:12
-0400

** 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/2068744

Title:
  Launching ua status → An unexpected error occurred: list index out of
  range

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 Noble:
  Fix Released

Bug description:
  [ Impact ]

  If `apt` is masked by other helper tools, such as `nala`, as seen in
  the original description, `apt list --installed` will return data in a
  different format. This will cause the Pro Client to fail to parse the
  data, and break.

  The Pro Client should not be relying on CLI output when there are
  Python bindings available to perform the same task - and python3-apt
  provides ways to list installed packages.

  The fix to this bug is to rely on the programmatic integration with
  APT instead of calling the CLI.

  [ Test Plan ]

  Listing installed packages is part of the regular operation of the Pro
  Client in many scenarios covered by the integration / acceptance
  tests.

  For this particular issue:
  - Launch a container for the release to be tested
  - install nala
  - alias `apt` to `nala` in the system (or better, link the nala binary to /usr/bin/apt)
  - alternatively, where `nala` is not available, backup /usr/bin/apt and make it a script that exits 1
  - see it fail
  - install the package from -proposed (use the backed up apt binary if needed)
  - see it does not fail anymore

  [ Where problems could occur ]

  Switching from the CLI call to python3-apt brings the risk of wrong
  implementation of the integration, which would lead to a different
  package list to be returned by python3-apt. The regression potential
  is mitigated by extensive testing - unit, integration and acceptance
  tests rely on this functionality.

  [ Original description ]

  This is in 22.04

  ❯ ua status
  An unexpected error occurred: list index out of range
  For more details, see the log: /home/marco/.cache/ubuntu-pro/ubuntu-pro.log
  If you think this is a bug, please run: ubuntu-bug ubuntu-advantage-tools

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: ubuntu-advantage-tools 31.2.3~22.04
  ProcVersionSignature: Ubuntu 6.8.0-35.35-generic 6.8.4
  Uname: Linux 6.8.0-35-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.5
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Jun  7 17:42:12 2024
  InstallationDate: Installed on 2010-07-10 (5081 days ago)
  InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
  PackageArchitecture: all
  RebootRequiredPkgs: Error: path contained symlinks.
  SourcePackage: ubuntu-advantage-tools
  UpgradeStatus: Upgraded to jammy on 2020-06-14 (1453 days ago)
  cloud-id.txt-error: Invalid command specified 'cloud-id'.
  jobs-status.json: {"metering": {"last_run": "2024-06-07T15:40:15.416242+00:00", "next_run": "2024-06-07T19:40:15.416242+00:00"}, "update_contract_info": null, "update_messaging": {"last_run": "2024-06-07T15:40:15.416242+00:00", "next_run": "2024-06-07T21:40:15.416242+00:00"}}
  uaclient.conf:
   contract_url: https://contracts.canonical.com
   log_level: debug

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