package ubuntu-advantage-tools 27.2.2~18.04.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

Bug #1946532 reported by Jon Radel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Doing a dist-upgrade from 18.04 to 20.04:

Errors were encountered while processing:
 ubuntu-advantage-tools
Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code (1)

*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (294.9 KB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel
Please choose (S/V/K/I/C): s

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
........./usr/lib/python3/dist-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.26.2) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
..

*** Uploading problem information

The collected information is being sent to the bug tracking system.
This might take a few minutes.
99%

*** To continue, you must visit the following URL:

  https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+filebug/5979f17e-2883-11ec-a1ce-d485646cd9a4?field.title=package+ubuntu-advantage-tools+27.2.2%7E18.04.1+failed+to+install%2Fupgrade%3A+installed+ubuntu-advantage-tools+package+post-installation+script+subprocess+returned+error+exit+status+1

You can launch a browser now, or copy this URL into a browser on another computer.

Choices:
  1: Launch a browser now
  C: Cancel
Please choose (1/C):

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: ubuntu-advantage-tools 27.2.2~18.04.1
ProcVersionSignature: Ubuntu 4.15.0-159.167-generic 4.15.18
Uname: Linux 4.15.0-159-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.26
Architecture: amd64
Date: Fri Oct 8 17:59:57 2021
ErrorMessage: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
Python3Details: /opt/anaconda3/bin/python3.7, Python 3.7.6, unpackaged
PythonDetails: /opt/anaconda3/bin/python3.7, Python 3.7.6, unpackaged
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2.3
 apt 1.6.14
SourcePackage: ubuntu-advantage-tools
Title: package ubuntu-advantage-tools 27.2.2~18.04.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to bionic on 2021-10-08 (0 days ago)

Revision history for this message
Jon Radel (jtradel) wrote :
Revision history for this message
Grant Orndorff (orndorffgrant) wrote :

Thank you for the bug report!

This appears to be a duplicate of bug 1930121.

For now, the likely quick fix is to set PYTHONPATH=/usr/lib/python3/dist-packages

We will release a proper fix in ubuntu-advantage-tools in a coming release.

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.