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

Bug #2021988 reported by John Doe
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
Triaged
Low
Grant Orndorff

Bug 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

Revision history for this message
John Doe (judemont) wrote :
Revision history for this message
Grant Orndorff (orndorffgrant) wrote :

Thank you for the bug report judemont!

It looks like when removing python3 the order of removal of all of the reverse-dependencies put python3-apt to be removed before ubuntu-advantage-tools. That is surprising because python3-apt is a dependency of ubuntu-advantage-tools. There is a warning in the output about this at the time it removes python3-apt.

Then when it gets to removing ubuntu-advantage-tools, python3-apt is gone, so the prerm script that depends on python3-apt fails.

I don't think removing python3 in this way is generally supported on an Ubuntu system, but there is also no reason that ubuntu-advantage-tools prerm needs to use python3-apt, so this bug can represent that unnecessary dependency. We can modify the prerm script to not try to import apt.

Please let me know if I'm missing anything in this analysis :)

information type: Private → Public
Changed in ubuntu-advantage-tools (Ubuntu):
status: New → Triaged
importance: Undecided → Low
tags: removed: need-amd64-retrace
Changed in ubuntu-advantage-tools (Ubuntu):
assignee: nobody → Grant Orndorff (orndorffgrant)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.