package ubuntu-advantage-tools 28.1~23.04 failed to install/upgrade: installed ubuntu-advantage-tools package pre-removal script subprocess returned error exit status 1

Bug #2028164 reported by Seyed Mohammad Sajadi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

Unfortunately, when I was changing from version 22.10 to version 23.04, the image turned off, but the system was on. I had to restart the system manually, but when it came up, the installation continued, but it gave a message that there was a problem.

ProblemType: Package
DistroRelease: Ubuntu 23.04
Package: ubuntu-advantage-tools 28.1~23.04
ProcVersionSignature: Ubuntu 6.2.0-25.25-generic 6.2.13
Uname: Linux 6.2.0-25-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Wed Jul 19 04:53:24 2023
ErrorMessage: installed ubuntu-advantage-tools package pre-removal script subprocess returned error exit status 1
InstallationDate: Installed on 2023-05-21 (58 days ago)
InstallationMedia: Ubuntu 20.04.6 LTS "Focal Fossa" - Release amd64 (20230316)
Python3Details: /usr/bin/python3.11, Python 3.11.2, python3-minimal, 3.11.2-1
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.21ubuntu1
 apt 2.6.0
SourcePackage: ubuntu-advantage-tools
Title: package ubuntu-advantage-tools 28.1~23.04 failed to install/upgrade: installed ubuntu-advantage-tools package pre-removal script subprocess returned error exit status 1
UpgradeStatus: Upgraded to lunar on 2023-07-17 (1 days ago)
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
Seyed Mohammad Sajadi (smsajadi) wrote :
Revision history for this message
Lucas Albuquerque Medeiros de Moura (lamoura) wrote :

Hi Seyed,

Thanks for reporting this. Even though this is an unusual scenario as you described, we still believe the package should try to be more resilient to these failures. We will try to adapt our prerm script to not rely on the python3-apt package anymore.

Changed in ubuntu-advantage-tools (Ubuntu):
status: New → Confirmed
status: Confirmed → Triaged
information type: Private → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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