package ubuntu-advantage-tools 27.1~16.04.1 - ModuleNotFoundError: No module named 'uaclient' - maybe dup 1930121

Bug #1934077 reported by Kishan Kr Jaiswal
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Extra debug information will be added to the bug report automatically.
Please describe the bug in a few words, for example, "weather applet crashes on logout":

Summary: 
Check again
Do any of the following bugs describe the bug you're trying to report?

​​
#1927348 package ubuntu-advantage-tools 27.0~16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Incomplete (2 comments) last updated 2021-05-07 view this bug
​​
#1927905 package ubuntu-advantage-tools 27.0~16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Confirmed (4 comments) last updated 2021-05-17 view this bug
When i start the system i am getting this error.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: ubuntu-advantage-tools 27.0~16.04.1
ProcVersionSignature: Ubuntu 4.15.0-142.146~16.04.1-generic 4.15.18
Uname: Linux 4.15.0-142-generic x86_64

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: ubuntu-advantage-tools 27.1~16.04.1
ProcVersionSignature: Ubuntu 4.15.0-142.146~16.04.1-generic 4.15.18
Uname: Linux 4.15.0-142-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.30
Architecture: amd64
Date: Wed Jun 30 12:09:50 2021
DpkgHistoryLog:
 Start-Date: 2021-06-30 12:08:45
 Commandline: apt install alien
 Requested-By: kishan (1000)
 Install: autotools-dev:amd64 (20150820.1, automatic), librpmsign3:amd64 (4.12.0.1+dfsg1-3build3, automatic), rpm2cpio:amd64 (4.12.0.1+dfsg1-3build3, automatic), libmail-sendmail-perl:amd64 (0.79.16-1, automatic), librpmbuild3:amd64 (4.12.0.1+dfsg1-3build3, automatic), alien:amd64 (8.95), debugedit:amd64 (4.12.0.1+dfsg1-3build3, automatic), dh-strip-nondeterminism:amd64 (0.015-1, automatic), libfile-stripnondeterminism-perl:amd64 (0.015-1, automatic), librpmio3:amd64 (4.12.0.1+dfsg1-3build3, automatic), po-debconf:amd64 (1.0.19, automatic), rpm-common:amd64 (4.12.0.1+dfsg1-3build3, automatic), rpm:amd64 (4.12.0.1+dfsg1-3build3, automatic), librpm3:amd64 (4.12.0.1+dfsg1-3build3, automatic), debhelper:amd64 (9.20160115ubuntu3, automatic), libsys-hostname-long-perl:amd64 (1.5-1, automatic)
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2020-07-09 (355 days ago)
InstallationMedia: Ubuntu 16.04.6 LTS "Xenial Xerus" - Release amd64 (20190227)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.7
 apt 1.2.35
SourcePackage: ubuntu-advantage-tools
Title: package ubuntu-advantage-tools 27.1~16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Kishan Kr Jaiswal (kishan0904) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

This bug still has the template data that is supposed to be read and updated when filing :-/
But from the log I see this is one of this kind

Setting up ubuntu-advantage-tools (27.1~16.04.1) ...
Traceback (most recent call last):
  File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'uaclient'
dpkg: error processing package ubuntu-advantage-tools (--configure):
 subprocess installed post-installation script returned error exit status 1

I think it is time to dup them together to find the (hopefully common) root cause to those

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Chances are (https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1930121/comments/3) that this is due to a non-default python on the system.

If you could check and report your python setup that could help.
If you have a non standard python please make this a duplicate to bug 1930121 and then chime-in/discuss there for a hopefully common solution.

summary: - package ubuntu-advantage-tools 27.1~16.04.1 failed to install/upgrade:
- subprocess installed post-installation script returned error exit status
- 1
+ package ubuntu-advantage-tools 27.1~16.04.1 - ModuleNotFoundError: No
+ module named 'uaclient' - maybe dup 1930121
Chad Smith (chad.smith)
Changed in ubuntu-advantage-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Chad Smith (chad.smith) wrote :

Thanks Christian for fielding this bug and Kishan for filing it. I've marked incomplete as we are looking for Kishan's confirmation that python on this images/system was installed in a non-standard/custom location. We only expect this type of error if python3 is a custom-install instead of from the python3* debpackages shipped on all Canonical official cloud-images.

If you get a chance to confirm the following either set this bug back to "New" status above or click "mark as duplicate" for bug 1930121 if you confirm it as a non-standard python3 install.
 - Whether the default python3 was manually built and installed in a custom location
 - which python
 - python3 --version
 - dpkg -l | grep python3

Revision history for this message
Chad Smith (chad.smith) wrote :

bug #1927348 turned out to be a duplicate too, removing the locally installed version of python3 got that system working.

Revision history for this message
Andrew Dalcher (adalcher) wrote :

This is for sure caused by the python3 installation. I get the same issue on my machine with a local Python 3.9 installation, which I needed since Ubuntu 16.04 only gets 3.5 from aptitude.

> which python
/usr/bin/python
> which python3
/usr/local/bin/python3
> python3 --version
Python 3.9.1
> dpkg -l | grep python
See attached grep.txt

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntu-advantage-tools (Ubuntu) because there has been no activity for 60 days.]

Changed in ubuntu-advantage-tools (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Grant Orndorff (orndorffgrant) wrote :

I'm going to mark this 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.