Activity log for bug #2021988

Date Who What changed Old value New value Message
2023-05-31 14:45:39 John Doe bug added bug
2023-06-02 18:33:08 Grant Orndorff information type Private Public
2023-06-02 18:33:16 Grant Orndorff ubuntu-advantage-tools (Ubuntu): status New Triaged
2023-06-02 18:33:20 Grant Orndorff ubuntu-advantage-tools (Ubuntu): importance Undecided Low
2023-06-16 16:34:00 Apport retracing service tags amd64 apport-package lunar need-amd64-retrace amd64 apport-package lunar
2023-08-15 13:34:13 Grant Orndorff ubuntu-advantage-tools (Ubuntu): assignee Grant Orndorff (orndorffgrant)
2024-01-10 20:41:17 Grant Orndorff 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 [ 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
2024-02-15 15:44:31 Ubuntu Archive Robot bug added subscriber Paride Legovini
2024-02-19 00:51:22 Launchpad Janitor ubuntu-advantage-tools (Ubuntu): status Triaged Fix Released
2024-02-21 12:55:31 Robie Basak ubuntu-advantage-tools (Ubuntu Mantic): status New Fix Committed
2024-02-21 12:55:31 Robie Basak bug added subscriber Ubuntu Stable Release Updates Team
2024-02-21 12:55:39 Robie Basak bug added subscriber SRU Verification
2024-02-21 12:55:41 Robie Basak tags amd64 apport-package lunar amd64 apport-package lunar verification-needed verification-needed-mantic
2024-02-21 12:56:41 Robie Basak ubuntu-advantage-tools (Ubuntu Jammy): status New Fix Committed
2024-02-21 12:56:43 Robie Basak tags amd64 apport-package lunar verification-needed verification-needed-mantic amd64 apport-package lunar verification-needed verification-needed-jammy verification-needed-mantic
2024-02-21 12:57:15 Robie Basak ubuntu-advantage-tools (Ubuntu Focal): status New Fix Committed
2024-02-21 12:57:18 Robie Basak tags amd64 apport-package lunar verification-needed verification-needed-jammy verification-needed-mantic amd64 apport-package lunar verification-needed verification-needed-focal verification-needed-jammy verification-needed-mantic
2024-02-21 12:57:52 Robie Basak ubuntu-advantage-tools (Ubuntu Bionic): status New Fix Committed
2024-02-21 12:57:55 Robie Basak tags amd64 apport-package lunar verification-needed verification-needed-focal verification-needed-jammy verification-needed-mantic amd64 apport-package lunar verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-mantic
2024-02-21 12:58:34 Robie Basak ubuntu-advantage-tools (Ubuntu Xenial): status New Fix Committed
2024-02-21 12:58:37 Robie Basak tags amd64 apport-package lunar verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-mantic amd64 apport-package lunar verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-mantic verification-needed-xenial
2024-03-08 22:22:56 Grant Orndorff attachment added 2021988.tar.gz https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2021988/+attachment/5754199/+files/2021988.tar.gz
2024-03-08 22:23:15 Grant Orndorff tags amd64 apport-package lunar verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-mantic verification-needed-xenial amd64 apport-package lunar verification-done verification-done-bionic verification-done-focal verification-done-jammy verification-done-mantic verification-done-xenial
2024-03-12 16:19:43 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Mantic): status Fix Committed Fix Released
2024-03-12 16:19:56 Andreas Hasenack removed subscriber Ubuntu Stable Release Updates Team
2024-03-12 16:20:24 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Jammy): status Fix Committed Fix Released
2024-03-12 16:20:43 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Focal): status Fix Committed Fix Released
2024-03-12 16:21:06 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Bionic): status Fix Committed Fix Released
2024-03-12 16:21:42 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Xenial): status Fix Committed Fix Released