https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools

Bug #1946034 reported by Joseph O'Connor
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

We recently encountered an issue with our deployment pipeline when installing Ubuntu 18.04.

"ubuntu-minimal" now depends on ubuntu-advantage-tools, but that package fails install with:
ModuleNotFoundError: No module named 'uaclient'

I added OS packages 'python-opcua' and 'python3-opcua' and the error changed to:
No module named 'uaclient.entitlements'

I'm wondering why the dependencies can't be resolved at install time through APT per usual. The setup consistently exits with a '1', which fails our build pipeline. Hopefully that's not the default behavior. More info in the comment below

Revision history for this message
Joseph O'Connor (geopython1916) wrote :
Download full text (3.4 KiB)

Traceback (most recent call last):
  File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'uaclient'
dpkg: error processing package ubuntu-advantage-tools (--configure):
 installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
joecoc1916@joe-DellOptiPlex-9010:/usr/bin$ sudo apt remove emacs25
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  emacs25-lucid
Suggested packages:
  emacs25-common-non-dfsg
The following packages will be REMOVED:
  emacs25
The following NEW packages will be installed:
  emacs25-lucid
0 upgraded, 1 newly installed, 1 to remove and 34 not upgraded.
1 not fully installed or removed.
Need to get 3,476 kB of archives.
After this operation, 12.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 emacs25-lucid amd64 25.2+1-6 [3,476 kB]
Fetched 3,476 kB in 1s (2,834 kB/s)
dpkg: emacs25: dependency problems, but removing anyway as you requested:
 emacs depends on emacs25 | emacs25-lucid | emacs25-nox; however:
  Package emacs25 is to be removed.
  Package emacs25-lucid is not installed.
  Package emacs25-nox is not installed.

(Reading database ... 391577 files and directories currently installed.)
Removing emacs25 (25.2+1-6) ...
Remove dictionaries-common for emacs25
remove/dictionaries-common: Purging byte-compiled files for flavour emacs25
Remove git for emacs25
remove/git: Handling removal of emacsen flavor emacs25
Remove emacsen-common for emacs25
emacsen-common: Handling removal of emacsen flavor emacs25
Remove cmake-data for emacs25
remove/cmake-data: Purging byte-compiled files for emacs25
Selecting previously unselected package emacs25-lucid.
(Reading database ... 391567 files and directories currently installed.)
Preparing to unpack .../emacs25-lucid_25.2+1-6_amd64.deb ...
Unpacking emacs25-lucid (25.2+1-6) ...
Setting up ubuntu-advantage-tools (27.2.2~18.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):
 installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
Setting up emacs25-lucid (25.2+1-6) ...
update-alternatives: using /usr/bin/emacs25-lucid to provide /usr/bin/emacs (emacs) in auto mode
Install emacsen-common for emacs25
emacsen-common: Handling install of emacsen flavor emacs25
Install git for emacs25
install/git: Handling install of emacsen flavor emacs25
install/git: Byte-compiling for emacs25
+ emacs25 -batch -q -no-site-file -f batch-byte-compile git.el git-blame.el
Install cmake-data for emacs25
install/cmake-data: Byte-compiling for emacs25
Install dictionaries-common for emacs25
install/dictionaries-common: Byte-compiling for emacsen flavour emacs25
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Pr...

Read more...

Revision history for this message
Joseph O'Connor (geopython1916) wrote :

Been trying to install Ubuntu-advantage-tools package installed, though various solutions. Non has worked so far. Hope this report gets someone somewhere.

Joseph O

Revision history for this message
Paride Legovini (paride) wrote :

Hello and thanks for this bug report. I tried to reproduce the problem from a clean Bionic system, but ubuntu-advantage-tools installed just fine. The container image I used came with ubuntu-advantage-tools preinstalled, but I purged it, together with ubuntu-minimal, and reinstalled it. Log excerpt:

root@paride-b:~# apt install ubuntu-advantage-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  distro-info
Suggested packages:
  shunit2
The following NEW packages will be installed:
  distro-info ubuntu-advantage-tools
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 706 kB of archives.
After this operation, 2941 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 distro-info amd64 0.18ubuntu0.18.04.1 [19.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 ubuntu-advantage-tools amd64 27.2.2~18.04.1 [686 kB]
Fetched 706 kB in 0s (2295 kB/s)
Preconfiguring packages ...
Selecting previously unselected package distro-info.
(Reading database ... 28863 files and directories currently installed.)
Preparing to unpack .../distro-info_0.18ubuntu0.18.04.1_amd64.deb ...
Unpacking distro-info (0.18ubuntu0.18.04.1) ...
Selecting previously unselected package ubuntu-advantage-tools.
Preparing to unpack .../ubuntu-advantage-tools_27.2.2~18.04.1_amd64.deb ...
Unpacking ubuntu-advantage-tools (27.2.2~18.04.1) ...
Setting up distro-info (0.18ubuntu0.18.04.1) ...
Setting up ubuntu-advantage-tools (27.2.2~18.04.1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/ua-reboot-cmds.service → /lib/systemd/system/ua-reboot-cmds.service.
Created symlink /etc/systemd/system/timers.target.wants/ua-messaging.timer → /lib/systemd/system/ua-messaging.timer.
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
root@paride-b:~#

Could you please share more details on how your deployment pipeline works? What's the image you are starting with? Please share any detail that can help up set up a reproducer. Thanks!

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

Hello Joseph and Paride,

This looks like it might be a variation on bug 1930121

Do you have a non-standard python installation? (not installed via apt)

If so, then the quick fix is hopefully to just set PYTHONPATH=/usr/lib/python3/dist-packages. To test, try running
PYTHONPATH=/usr/lib/python3/dist-packages python3
and then try to `import uaclient` in the python shell.

'python-opcua' and 'python3-opcua' are unrelated. There is an unfortunate module naming collision between those packages and ubuntu-advantage-tools :(

Revision history for this message
Joseph O'Connor (geopython1916) wrote : Re: [Bug 1946034] Re: https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools

Grant
The answer for myself is very likely yes... I will try your solution and
fill you in on the results.

Joseph O

On Tue, Oct 5, 2021 at 7:55 AM Grant Orndorff <email address hidden>
wrote:

> Hello Joseph and Paride,
>
> This looks like it might be a variation on bug 1930121
>
> Do you have a non-standard python installation? (not installed via apt)
>
> If so, then the quick fix is hopefully to just set
> PYTHONPATH=/usr/lib/python3/dist-packages. To test, try running
> PYTHONPATH=/usr/lib/python3/dist-packages python3
> and then try to `import uaclient` in the python shell.
>
> 'python-opcua' and 'python3-opcua' are unrelated. There is an
> unfortunate module naming collision between those packages and ubuntu-
> advantage-tools :(
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1946034
>
> Title:
> https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools
>
> Status in ubuntu-advantage-tools package in Ubuntu:
> Incomplete
>
> Bug description:
> We recently encountered an issue with our deployment pipeline when
> installing Ubuntu 18.04.
>
> "ubuntu-minimal" now depends on ubuntu-advantage-tools, but that package
> fails install with:
> ModuleNotFoundError: No module named 'uaclient'
>
> I added OS packages 'python-opcua' and 'python3-opcua' and the error
> changed to:
> No module named 'uaclient.entitlements'
>
> I'm wondering why the dependencies can't be resolved at install time
> through APT per usual. The setup consistently exits with a '1', which
> fails our build pipeline. Hopefully that's not the default behavior.
> More info in the comment below
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1946034/+subscriptions
>
>

Revision history for this message
Joseph O'Connor (geopython1916) wrote :

Grant:

Your fix seems to work.... I'll do a bit more testing and let you know
ALLS WELL!!

Joseph O

On Tue, Oct 5, 2021 at 7:55 AM Grant Orndorff <email address hidden>
wrote:

> Hello Joseph and Paride,
>
> This looks like it might be a variation on bug 1930121
>
> Do you have a non-standard python installation? (not installed via apt)
>
> If so, then the quick fix is hopefully to just set
> PYTHONPATH=/usr/lib/python3/dist-packages. To test, try running
> PYTHONPATH=/usr/lib/python3/dist-packages python3
> and then try to `import uaclient` in the python shell.
>
> 'python-opcua' and 'python3-opcua' are unrelated. There is an
> unfortunate module naming collision between those packages and ubuntu-
> advantage-tools :(
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1946034
>
> Title:
> https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools
>
> Status in ubuntu-advantage-tools package in Ubuntu:
> Incomplete
>
> Bug description:
> We recently encountered an issue with our deployment pipeline when
> installing Ubuntu 18.04.
>
> "ubuntu-minimal" now depends on ubuntu-advantage-tools, but that package
> fails install with:
> ModuleNotFoundError: No module named 'uaclient'
>
> I added OS packages 'python-opcua' and 'python3-opcua' and the error
> changed to:
> No module named 'uaclient.entitlements'
>
> I'm wondering why the dependencies can't be resolved at install time
> through APT per usual. The setup consistently exits with a '1', which
> fails our build pipeline. Hopefully that's not the default behavior.
> More info in the comment below
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1946034/+subscriptions
>
>

Revision history for this message
Joseph O'Connor (geopython1916) wrote :

Grant:

Your solution installed ubuntu-advantage, the original issue was executing
*clipgrab* for ubuntu 18.04. On Ubuntu 20.04 then worked pretty well for
clipgrab. On 18.04 seem to generate a Root Certs error with an equifax.
I'll work on that. And also send you the feedback I got frum Ubuntu 18.04.

Adding Equifax CA certificate
> [21278:21304:1006/144255.295266:ERROR:nss_util.cc(808)] After loading Root
> Certs, loaded==false: NSS error code: -8018
> js: Refused to display '
> https://accounts.google.com/ServiceLogin?service=youtube&uilel=3&passive=true&continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26app%3Ddesktop%26hl%3Den%26next%3D%252Fsignin_passive%26feature%3Dpassive&hl=en'
> in a frame because it set 'X-Frame-Options' to 'DENY'.
> "'Sans Serif', sans-serif"
> Segmentation fault (core dumped)
> joecoc1916@joe-DellOptiPlex-9010:~$
>

If the "Segmentation fault (core dumped)" could help you. I'll forward
that to you. Let me know.

I'll try to address the Equifax root certificate issue on my own.

Joseph O

On Wed, Oct 6, 2021 at 2:30 PM Josepj O'Connor <email address hidden>
wrote:

> Grant:
>
> Your fix seems to work.... I'll do a bit more testing and let you know
> ALLS WELL!!
>
> Joseph O
>
> On Tue, Oct 5, 2021 at 7:55 AM Grant Orndorff <email address hidden>
> wrote:
>
>> Hello Joseph and Paride,
>>
>> This looks like it might be a variation on bug 1930121
>>
>> Do you have a non-standard python installation? (not installed via apt)
>>
>> If so, then the quick fix is hopefully to just set
>> PYTHONPATH=/usr/lib/python3/dist-packages. To test, try running
>> PYTHONPATH=/usr/lib/python3/dist-packages python3
>> and then try to `import uaclient` in the python shell.
>>
>> 'python-opcua' and 'python3-opcua' are unrelated. There is an
>> unfortunate module naming collision between those packages and ubuntu-
>> advantage-tools :(
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1946034
>>
>> Title:
>> https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools
>>
>> Status in ubuntu-advantage-tools package in Ubuntu:
>> Incomplete
>>
>> Bug description:
>> We recently encountered an issue with our deployment pipeline when
>> installing Ubuntu 18.04.
>>
>> "ubuntu-minimal" now depends on ubuntu-advantage-tools, but that
>> package fails install with:
>> ModuleNotFoundError: No module named 'uaclient'
>>
>> I added OS packages 'python-opcua' and 'python3-opcua' and the error
>> changed to:
>> No module named 'uaclient.entitlements'
>>
>> I'm wondering why the dependencies can't be resolved at install time
>> through APT per usual. The setup consistently exits with a '1', which
>> fails our build pipeline. Hopefully that's not the default behavior.
>> More info in the comment below
>>
>> To manage notifications about this bug go to:
>>
>> https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1946034/+subscriptions
>>
>>

Revision history for this message
Joseph O'Connor (geopython1916) wrote :
Download full text (3.5 KiB)

Most of what I'm reading is pointing to the fact I have bad credit. Oh
well. That's true. :) I always felt if someone gives me credit, they
deserve to be BURNED !! Was never very tolerant to BULL SIT offerings
:-)) I pay back my friends now. Not much more than that.

You're a friend. Thank you for working with me...

Joseph O

On Wed, Oct 6, 2021 at 3:04 PM Josepj O'Connor <email address hidden>
wrote:

> Grant:
>
> Your solution installed ubuntu-advantage, the original issue was executing
> *clipgrab* for ubuntu 18.04. On Ubuntu 20.04 then worked pretty well for
> clipgrab. On 18.04 seem to generate a Root Certs error with an equifax.
> I'll work on that. And also send you the feedback I got frum Ubuntu 18.04.
>
>
> Adding Equifax CA certificate
>> [21278:21304:1006/144255.295266:ERROR:nss_util.cc(808)] After loading
>> Root Certs, loaded==false: NSS error code: -8018
>> js: Refused to display '
>> https://accounts.google.com/ServiceLogin?service=youtube&uilel=3&passive=true&continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26app%3Ddesktop%26hl%3Den%26next%3D%252Fsignin_passive%26feature%3Dpassive&hl=en'
>> in a frame because it set 'X-Frame-Options' to 'DENY'.
>> "'Sans Serif', sans-serif"
>> Segmentation fault (core dumped)
>> joecoc1916@joe-DellOptiPlex-9010:~$
>>
>
>
> If the "Segmentation fault (core dumped)" could help you. I'll forward
> that to you. Let me know.
>
> I'll try to address the Equifax root certificate issue on my own.
>
> Joseph O
>
> On Wed, Oct 6, 2021 at 2:30 PM Josepj O'Connor <email address hidden>
> wrote:
>
>> Grant:
>>
>> Your fix seems to work.... I'll do a bit more testing and let you know
>> ALLS WELL!!
>>
>> Joseph O
>>
>> On Tue, Oct 5, 2021 at 7:55 AM Grant Orndorff <email address hidden>
>> wrote:
>>
>>> Hello Joseph and Paride,
>>>
>>> This looks like it might be a variation on bug 1930121
>>>
>>> Do you have a non-standard python installation? (not installed via apt)
>>>
>>> If so, then the quick fix is hopefully to just set
>>> PYTHONPATH=/usr/lib/python3/dist-packages. To test, try running
>>> PYTHONPATH=/usr/lib/python3/dist-packages python3
>>> and then try to `import uaclient` in the python shell.
>>>
>>> 'python-opcua' and 'python3-opcua' are unrelated. There is an
>>> unfortunate module naming collision between those packages and ubuntu-
>>> advantage-tools :(
>>>
>>> --
>>> You received this bug notification because you are subscribed to the bug
>>> report.
>>> https://bugs.launchpad.net/bugs/1946034
>>>
>>> Title:
>>> https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools
>>>
>>> Status in ubuntu-advantage-tools package in Ubuntu:
>>> Incomplete
>>>
>>> Bug description:
>>> We recently encountered an issue with our deployment pipeline when
>>> installing Ubuntu 18.04.
>>>
>>> "ubuntu-minimal" now depends on ubuntu-advantage-tools, but that
>>> package fails install with:
>>> ModuleNotFoundError: No module named 'uaclient'
>>>
>>> I added OS packages 'python-opcua' and 'python3-opcua' and the error
>>> changed to:
>>> No module named 'uaclient.entitlements'
>>>
>>> I'm wondering why the dependencies can't be resolved at ...

Read more...

Revision history for this message
Joseph O'Connor (geopython1916) wrote : Fwd: [Bug 1946034] Re: https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools
Download full text (3.7 KiB)

From: Josepj O'Connor <email address hidden>
Date: Wed, Oct 6, 2021 at 4:23 PM
Subject: Re: [Bug 1946034] Re:
https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools
To: Bug 1946034 <email address hidden>

Most of what I'm reading is pointing to the fact I have bad credit. Oh
well. That's true. :) I always felt if someone gives me credit, they
deserve to be BURNED !! Was never very tolerant to BULL SIT offerings
:-)) I pay back my friends now. Not much more than that.

You're a friend. Thank you for working with me...

Joseph O

On Wed, Oct 6, 2021 at 3:04 PM Josepj O'Connor <email address hidden>
wrote:

> Grant:
>
> Your solution installed ubuntu-advantage, the original issue was executing
> *clipgrab* for ubuntu 18.04. On Ubuntu 20.04 then worked pretty well for
> clipgrab. On 18.04 seem to generate a Root Certs error with an equifax.
> I'll work on that. And also send you the feedback I got frum Ubuntu 18.04.
>
>
> Adding Equifax CA certificate
>> [21278:21304:1006/144255.295266:ERROR:nss_util.cc(808)] After loading
>> Root Certs, loaded==false: NSS error code: -8018
>> js: Refused to display '
>> https://accounts.google.com/ServiceLogin?service=youtube&uilel=3&passive=true&continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26app%3Ddesktop%26hl%3Den%26next%3D%252Fsignin_passive%26feature%3Dpassive&hl=en'
>> in a frame because it set 'X-Frame-Options' to 'DENY'.
>> "'Sans Serif', sans-serif"
>> Segmentation fault (core dumped)
>> joecoc1916@joe-DellOptiPlex-9010:~$
>>
>
>
> If the "Segmentation fault (core dumped)" could help you. I'll forward
> that to you. Let me know.
>
> I'll try to address the Equifax root certificate issue on my own.
>
> Joseph O
>
> On Wed, Oct 6, 2021 at 2:30 PM Josepj O'Connor <email address hidden>
> wrote:
>
>> Grant:
>>
>> Your fix seems to work.... I'll do a bit more testing and let you know
>> ALLS WELL!!
>>
>> Joseph O
>>
>> On Tue, Oct 5, 2021 at 7:55 AM Grant Orndorff <email address hidden>
>> wrote:
>>
>>> Hello Joseph and Paride,
>>>
>>> This looks like it might be a variation on bug 1930121
>>>
>>> Do you have a non-standard python installation? (not installed via apt)
>>>
>>> If so, then the quick fix is hopefully to just set
>>> PYTHONPATH=/usr/lib/python3/dist-packages. To test, try running
>>> PYTHONPATH=/usr/lib/python3/dist-packages python3
>>> and then try to `import uaclient` in the python shell.
>>>
>>> 'python-opcua' and 'python3-opcua' are unrelated. There is an
>>> unfortunate module naming collision between those packages and ubuntu-
>>> advantage-tools :(
>>>
>>> --
>>> You received this bug notification because you are subscribed to the bug
>>> report.
>>> https://bugs.launchpad.net/bugs/1946034
>>>
>>> Title:
>>> https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools
>>>
>>> Status in ubuntu-advantage-tools package in Ubuntu:
>>> Incomplete
>>>
>>> Bug description:
>>> We recently encountered an issue with our deployment pipeline when
>>> installing Ubuntu 18.04.
>>>
>>> "ubuntu-minimal" now depends on ubuntu-advantage-tools, but that
>>> package fails install with:
>>> ModuleNotFoundError: No module name...

Read more...

Revision history for this message
Joseph O'Connor (geopython1916) wrote : Re: [Bug 1946034] Re: https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools

Thanks, I'll check it out.

On Fri, Oct 15, 2021, 4:25 PM Grant Orndorff <email address hidden>
wrote:

> *** This bug is a duplicate of bug 1930121 ***
> https://bugs.launchpad.net/bugs/1930121
>
> ** This bug has been marked a duplicate of bug 1930121
> package ubuntu-advantage-tools 27.0.2~18.04.1 - ModuleNotFoundError: No
> module named 'uaclient'
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1946034
>
> Title:
> https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools
>
> Status in ubuntu-advantage-tools package in Ubuntu:
> Incomplete
>
> Bug description:
> We recently encountered an issue with our deployment pipeline when
> installing Ubuntu 18.04.
>
> "ubuntu-minimal" now depends on ubuntu-advantage-tools, but that package
> fails install with:
> ModuleNotFoundError: No module named 'uaclient'
>
> I added OS packages 'python-opcua' and 'python3-opcua' and the error
> changed to:
> No module named 'uaclient.entitlements'
>
> I'm wondering why the dependencies can't be resolved at install time
> through APT per usual. The setup consistently exits with a '1', which
> fails our build pipeline. Hopefully that's not the default behavior.
> More info in the comment below
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1946034/+subscriptions
>
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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