This bug was fixed in the package ubuntu-advantage-tools - 31.2~23.10 --------------- ubuntu-advantage-tools (31.2~23.10) mantic; urgency=medium
* Backport new upstream release (LP: #2048921) ubuntu-advantage-tools (31.2) noble; urgency=medium * properly rename logrotate conffile to avoid duplicate confiles, keep user changes and avoid unnecessary prompts (LP: #2055046) * use mv_conffile on all ubuntu-advantage-tools conffiles to avoid "obsolete" dpkg conffile statuses * fix regression in api u.pro.attach.auto.should_auto_attach.v1 so that it works with the new package names ubuntu-advantage-tools (31.1) noble; urgency=medium * fix unit test that failed on newer version of python ubuntu-advantage-tools (31) noble; urgency=medium * d/*: - rename ubuntu-advantage-tools to ubuntu-pro-client - rename ubuntu-advantage-pro to ubuntu-pro-image-auto-attach * d/apparmor: - introduce new ubuntu_pro_apt_news apparmor policy * d/control: - update descriptions and homepages - update ubuntu-pro-client-l10n to Depend on same binary version of ubuntu-pro-client * d/rules: - install ubuntu_pro_apt_news apparmor policy * d/ubuntu-pro-client.prerm: - removed dependency on python3 by reimplementing in sh (LP: #2021988) * apport: - collect logs related to ubuntu_pro_apt_news apparmor policy * release-upgrades.d/ubuntu-advantage-upgrades.cfg: - convert APT list files to deb822 files when upgrading to noble * systemd/apt-news.service: - add apparmor profile and capability restrictions * systemd/ubuntu-advantage.service: - avoid deadlock when started during cloud-config.service (LP: #2050022) * New upstream release 31 (LP: #2048921) - api: + u.pro.attach.auto.full_auto_attach.v1: new cloud_override param + u.pro.status.enabled_services.v1: * include services in "warning" state * include "usg" + u.pro.security.fix.*.plan.v1: export common objects from endpoint modules (GH: #2714) - cli: + add autocomplete for api subcommand + autocomplete multiple services for enable/disable subcommands + if lock is held, cli will retry over the course of a few seconds - collect-logs: + include logs related to ubuntu_pro_apt_news apparmor policy + include logs of apt-news.service + include logs of esm-cache.service - enable: + use deb822 apt source file format when on noble or later - fix: + avoid insinuating that CVEs were found on the machine (GH: #1522) + ignore LSNs when considering related USNs + pick CVE description based on what packages are installed - landscape: + don't disable landscape on ubuntu releases where it cannot be enabled (GH: #2743) + no longer assume landscape-client gets removed on disable (GH: #2840) + leave client.conf in place instead of renaming + require service to be running to consider "enabled" + new explanatory message when disabling - motd: properly pluralize messages about updates (GH: #1579) - status: show warning when canonical-livepatch command fails (LP: #2019997) - timer jobs: jobs-status.json is now world readable (GH: #2601) ubuntu-advantage-tools (30.1) noble; urgency=medium * fix UnboundLocalError in update-check error handling (LP: #2043836) -- Grant Orndorff <grant.orndo...@canonical.com> Thu, 29 Feb 2024 09:03:11 -0500 ** Changed in: ubuntu-advantage-tools (Ubuntu Mantic) 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/2021988 Title: package ubuntu-advantage-tools 27.14.4 failed to install/upgrade: le sous-processus paquet ubuntu-advantage-tools script pre-removal installé a renvoyé un état de sortie d'erreur 1 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 Mantic: Fix Released Bug description: [ Impact ] If somehow the prerm script ran while the Depends of u-a-t weren't installed, then it would crash. More generally, the prerm script is unnecessarily bloated by using python and importing many modules it doesn't use. The fix reimplements the python function from the old prerm in shell. This avoids running python at all. [ Test Plan ] In a lxd container: 1. interfere with the python3-apt installation somehow (e.g. `rm -rf /usr/lib/python3/dist-packages/apt`) 2. execute the u-a-t.prerm script `apt remove ubuntu-advantage-tools` Without the fix, you'll see an error. [ Where problems could occur ] Uninstalling ubuntu-advantage-tools is only supported in some scenarios, and should cleanup any extra APT sources that it configured when it is removed. That is the purpose of the prerm script. If the reimplementation in shell is wrong, then APT sources files will get leftover upon removal. The shell implementation also has a hardcoded list of services to try to remove list files for. If this becomes out of date, then some list files may get left behind [ Other Info ] The initial case that caused this bug to be reported was removing python3 from the system. I couldn't reproduce the behavior by trying it myself, and that isn't really a supported operation anyway. The bug was only kept open to represent the possibility of making the prerm script have less dependencies and be leaner. [Original Description] package ubuntu-advantage-tools 27.14.4 failed to install/upgrade: le sous-processus paquet ubuntu-advantage-tools script pre-removal installé a renvoyé un état de sortie d'erreur 1 ProblemType: Package DistroRelease: Ubuntu 23.04 Package: ubuntu-advantage-tools 27.14.4 ProcVersionSignature: Ubuntu 5.19.0-21.21-generic 5.19.7 Uname: Linux 5.19.0-21-generic x86_64 ApportVersion: 2.26.1-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: unknown Date: Tue May 30 16:01:59 2023 ErrorMessage: le sous-processus paquet ubuntu-advantage-tools script pre-removal installé a renvoyé un état de sortie d'erreur 1 InstallationDate: Installed on 2023-02-25 (95 days ago) InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Alpha amd64 (20230216) Python3Details: /usr/bin/python3.11, Python 3.11.2, python3-minimal, 3.11.2-1 PythonDetails: N/A RebootRequiredPkgs: Error: path contained symlinks. RelatedPackageVersions: dpkg 1.21.21ubuntu1 apt 2.6.0 SourcePackage: ubuntu-advantage-tools Title: package ubuntu-advantage-tools 27.14.4 failed to install/upgrade: le sous-processus paquet ubuntu-advantage-tools script pre-removal installé a renvoyé un état de sortie d'erreur 1 UpgradeStatus: No upgrade log present (probably fresh install) cloud-id.txt-error: Invalid command specified 'cloud-id'. livepatch-status.txt-error: Invalid command specified '/snap/bin/canonical-livepatch status'. 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/2021988/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~group.of.nepali.translators Post to : group.of.nepali.translators@lists.launchpad.net Unsubscribe : https://launchpad.net/~group.of.nepali.translators More help : https://help.launchpad.net/ListHelp