Ubuntu advantage tools error

Sat down at work to do a routine apt update && apt upgrade and encountered some issue with ubuntu-advantage-tools. I'm not sure what this package is for, but it came in with Ubuntu 20.04.2 ...

Sat down at work to do a routine apt update && apt upgrade and encountered some issue with ubuntu-advantage-tools.

I’m not sure what this package is for, but it came in with Ubuntu 20.04.2 LTS (GNU/Linux 5.4.72-microsoft-standard-WSL2 x86_64).

I’ve tried the usual apt purge and tried to install again, but it still doesn’t succeed.

$ sudo apt install ubuntu-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  ubuntu-advantage-tools
The following NEW packages will be installed:
  ubuntu-advantage-tools ubuntu-minimal
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/847 kB of archives.
After this operation, 3233 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package ubuntu-advantage-tools.
(Reading database ... 58786 files and directories currently installed.)
Preparing to unpack .../ubuntu-advantage-tools_27.2.1~20.04.1_amd64.deb ...
Unpacking ubuntu-advantage-tools (27.2.1~20.04.1) ...
Selecting previously unselected package ubuntu-minimal.
Preparing to unpack .../ubuntu-minimal_1.450.2_amd64.deb ...
Unpacking ubuntu-minimal (1.450.2) ...
Setting up ubuntu-advantage-tools (27.2.1~20.04.1) ...
ERROR: File not found '/run/cloud-init/instance-data.json'. Provide a path to instance data json file using --instance-data
dpkg: error processing package ubuntu-advantage-tools (--configure):
 installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of ubuntu-minimal:
 ubuntu-minimal depends on ubuntu-advantage-tools; however:
  Package ubuntu-advantage-tools is not configured yet.

dpkg: error processing package ubuntu-minimal (--configure):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 ubuntu-advantage-tools
 ubuntu-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

I just show the example of installing ubuntu-minimal because this was (i think) the only thing depending on ubuntu-advantage-tools, and removing ubuntu-advantage-tools also removed ubuntu-minimal.

I can re-create my Ubuntu WSL thing but its kind of a PITA. I’m not getting commercial support from Canonical, do I need to worry about this package being borky? More worried about that ubuntu-minimal metapackage being broken, actually.

Thanks!

I did end up ‘resetting’ my WSL Ubuntu install, did an initial «apt update && apt full-upgrade -y && apt autoremove -y» and the error came back. Maybe Ubuntu has a buggy package right now?

[... bunch of other apt output here ...]

Setting up ubuntu-advantage-tools (27.2.1~20.04.1) ...
Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ...
ERROR: File not found '/run/cloud-init/instance-data.json'. Provide a path to instance data json file using --instance-data
dpkg: error processing package ubuntu-advantage-tools (--configure):
 installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

[... bunch of other apt output here ...]

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

Содержание

  1. ModuleNotFoundError: No module named ‘uaclient.entitlements’ dpkg: error processing package ubuntu-advantage-tools (—configure):
  2. 5 Answers 5
  3. ubuntu-advantage-tools upgrade fails configure
  4. Bug Description
  5. Linux Mint Forums
  6. Ubuntu Advantage Tools preventing update from Mint 17.3 to 18
  7. Ubuntu Advantage Tools preventing update from Mint 17.3 to 18
  8. Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18
  9. Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18
  10. Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18
  11. Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18
  12. Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18

ModuleNotFoundError: No module named ‘uaclient.entitlements’ dpkg: error processing package ubuntu-advantage-tools (—configure):

Whenever i try sudo apt-get upgrade or try to install any other package i get the above error. Is there any way to solve it?? Using ubuntu 16.04

5 Answers 5

You should install opcua and opcua-client with default python command:

I have the same problem and try to solve then it work for me.

  • OS: ubuntu 18.04 LTS
  • python version: 3.6.9(system default) , manual install 3.8.7

System python path have been link to python 3.8 when I install python 3.8, so any process use python will call python 3.8 and use pip3.8 site-packages, not use system dist-packages(python 3.6). But python 3.8 uaclinet(install by pip) is different from uaclinet in dist-packages(ubuntu-advantage-tools provide). then I use apt upgrade

So, I copy the uaclinet(in dist-packages) to python 3.8 site-packages and run upgrade again, then it works( maybe has compatibility problems )

I think if your use system python , you can use comment by Jan Wilamowski ,

This problem appeared for me after upgrading to Ubuntu 18.04 from 16.04.

I updated opcua and opcua-client as suggested with python -m pip install, and also with pip3 install, to get it updated in python3 packages, and the problem remained.
I have system python3 installed in /usr/bin/python3 (version 3.6), and another version in /usr/local/bin/python3 (version 3.8) which is the default python3. I’m not sure why, but the uaclient.entitlements module can be loaded properly with /usr/bin/python3, but not with /usr/local/bin/python3

Instead of changing the location of the uaclient package, the following worked for me:

I used update-alternatives to choose which python3 will be used by default, either system python3 which is /usr/bin/python3.6, or the updated python3 which is installed in /usr/local/bin/python3.8 as described here: https://unix.stackexchange.com/questions/410579/change-the-python3-default-version-in-ubuntu

Then, choose /usr/bin/python3.6 as the default by running:

A symlink is created as /etc/alternatives/python3 that points to the chosen default python3.

Since the way I set the alternatives results in /usr/local/bin/python3.8 as the automatic default python3, the symlink /usr/bin/python3 -> python3.6 is removed. But this symlink is still needed for dependencies/functions that use system python through /usr/bin/python3, so I added back the sym link:

Источник

Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)

Bug Description

We are running on Ubuntu 20.04 and having issue when updating the OS packages. Specifically, the ubuntu- advantage- tools is failing to configure. This just started recently.

Initially the server had no issue — advantage tools were installed and configured:
root@testserver> dpkg —list | grep advantage
ii ubuntu- advantage- tools 27.1

20.04.1 amd64 management tools for Ubuntu Advantage

I ran apt update followed by upgrade and ‘ubuntu- advantage- tools’ failed to configure:

root@testserver> sudo apt-get update
Hit:1 http:// archive. ubuntu. com/ubuntu focal InRelease
Get:2 http:// archive. ubuntu. com/ubuntu focal-updates InRelease [114 kB]
Get:3 http:// archive. ubuntu. com/ubuntu focal-backports InRelease [101 kB]
Get:4 http:// archive. ubuntu. com/ubuntu focal-security InRelease [114 kB]
Fetched 328 kB in 9s (38.3 kB/s)
Reading package lists. Done

root@testserver> sudo apt-get upgrade
Reading package lists. Done
Building dependency tree
Reading state information. Done
Calculating upgrade. Done
The following packages have been kept back:
linux-generic linux-headers- generic linux-image-generic
The following packages will be upgraded:
curl libcurl3-gnutls libcurl4 libglib2.0-0 libglib2.0-bin libglib2.0-data libnss-systemd libpam-systemd libsystemd0 libudev1 networkd-dispatcher systemd
systemd-sysv ubuntu- advantage- tools udev
15 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
10 standard security updates
Need to get 8,664 kB of archives.
After this operation, 54.3 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 libnss-systemd amd64 245.4-4ubuntu3.11 [96.1 kB]
Get:2 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 udev amd64 245.4-4ubuntu3.11 [1,365 kB]
Get:3 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 libudev1 amd64 245.4-4ubuntu3.11 [78.4 kB]
Get:4 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 systemd-sysv amd64 245.4-4ubuntu3.11 [10.3 kB]
Get:5 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 libpam-systemd amd64 245.4-4ubuntu3.11 [186 kB]
Get:6 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 systemd amd64 245.4-4ubuntu3.11 [3,807 kB]
Get:7 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 libsystemd0 amd64 245.4-4ubuntu3.11 [270 kB]
Get:8 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 libglib2.0-data all 2.64.6- 1

ubuntu20. 04.4 [6,052 B]
Get:9 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 libglib2.0-bin amd64 2.64.6- 1

ubuntu20. 04.4 [72.6 kB]
Get:10 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 libglib2.0-0 amd64 2.64.6- 1

ubuntu20. 04.4 [1,287 kB]
Get:11 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 networkd-dispatcher all 2.1-2

ubuntu20.04.1 [14.6 kB]
Get:12 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 ubuntu- advantage- tools amd64 27.2.1

20.04.1 [844 kB]
Get:13 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.6 [161 kB]
Get:14 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.6 [234 kB]
Get:15 http:// archive. ubuntu. com/ubuntu focal-updates/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.6 [231 kB]
Fetched 8,664 kB in 0s (77.5 MB/s)
Preconfiguring packages .
Can’t exec «/tmp/ubuntu- advantage- tools.config. 9EJyW7» : Permission denied at /usr/share/ perl/5. 30/IPC/ Open3.pm line 281.
open2: exec of /tmp/ubuntu- advantage- tools.config. 9EJyW7 configure 27.1

20.04.1 failed: Permission denied at /usr/share/ perl5/Debconf/ ConfModule. pm line 59.
(Reading database . 111472 files and directories currently installed.)
Preparing to unpack . /libnss- systemd_ 245.4-4ubuntu3. 11_amd64. deb .
Unpacking libnss- systemd: amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) .
Preparing to unpack . /udev_ 245.4-4ubuntu3. 11_amd64. deb .
Unpacking udev (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) .
Preparing to unpack . /libudev1_ 245.4-4ubuntu3. 11_amd64. deb .
Unpacking libudev1:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) .
Setting up libudev1:amd64 (245.4-4ubuntu3.11) .
(Reading database . 111472 files and directories currently installed.)
Preparing to unpack . /systemd- sysv_245. 4-4ubuntu3. 11_amd64. deb .
Unpacking systemd-sysv (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) .
Preparing to unpack . /libpam- systemd_ 245.4-4ubuntu3. 11_amd64. deb .
Unpacking libpam- systemd: amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) .
Preparing to unpack . /systemd_ 245.4-4ubuntu3. 11_amd64. deb .
Unpacking systemd (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) .
Preparing to unpack . /libsystemd0 _245.4- 4ubuntu3. 11_amd64. deb .
Unpacking libsystemd0:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) .
Setting up libsystemd0:amd64 (245.4-4ubuntu3.11) .
(Reading database . 111473 files and directories currently installed.)
Preparing to unpack . /0-libglib2. 0-data_ 2.64.6- 1

ubuntu20. 04.4_all. deb .
Unpacking libglib2.0-data (2.64.6- 1

ubuntu20. 04.4) over (2.64.6- 1

ubuntu20. 04.3) .
Preparing to unpack . /1-libglib2. 0-bin_2. 64.6-1

ubuntu20. 04.4_amd64. deb .
Unpacking libglib2.0-bin (2.64.6- 1

ubuntu20. 04.4) over (2.64.6- 1

ubuntu20. 04.3) .
Preparing to unpack . /2-libglib2. 0-0_2.64. 6-1

ubuntu20. 04.4_amd64. deb .
Unpacking libglib2.0-0:amd64 (2.64.6- 1

ubuntu20. 04.4) over (2.64.6- 1

ubuntu20. 04.3) .
Preparing to unpack . /3-networkd- dispatcher_ 2.1-2

ubuntu20. 04.1_all. deb .
Unpacking networkd-dispatcher (2.1-2

ubuntu20. 04.1) over (2.0.1-1) .
Preparing to unpack . /4-ubuntu- advantage- tools_27. 2.1

20. 04.1_amd64. deb .
Unpacking ubuntu- advantage- tools (27.2.1

20.04.1) .
Preparing to unpack . /5-curl_ 7.68.0- 1ubuntu2. 6_amd64. deb .
Unpacking curl (7.68.0-1ubuntu2.6) over (7.68.0-1ubuntu2.5) .
Preparing to unpack . /6-libcurl4_ 7.68.0- 1ubuntu2. 6_amd64. deb .
Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.6) over (7.68.0-1ubuntu2.5) .
Preparing to unpack . /7-libcurl3- gnutls_ 7.68.0- 1ubuntu2. 6_amd64. deb .
Unpacking libcurl3- gnutls: amd64 (7.68.0-1ubuntu2.6) over (7.68.0-1ubuntu2.5) .
Setting up networkd-dispatcher (2.1-2

ubuntu20. 04.1) .
Setting up libglib2.0-0:amd64 (2.64.6- 1

ubuntu20. 04.4) .
Setting up libcurl3- gnutls: amd64 (7.68.0-1ubuntu2.6) .
Setting up systemd (245.4-4ubuntu3.11) .
Installing new version of config file /etc/dhcp/ dhclient- enter-hooks. d/resolved .
Setting up libglib2.0-data (2.64.6- 1

ubuntu20. 04.4) .
Setting up udev (245.4-4ubuntu3.11) .
update-initramfs: deferring update (trigger activated)
Setting up libcurl4:amd64 (7.68.0-1ubuntu2.6) .
Setting up curl (7.68.0-1ubuntu2.6) .
Setting up ubuntu- advantage- tools (27.2.1

20.04.1) .
Installing new version of config file /etc/apt/ apt.conf. d/20apt- esm-hook. conf .
Installing new version of config file /etc/ubuntu- advantage/ uaclient. conf .
ERROR: File not found ‘/run/cloud- init/instance- data.json’ . Provide a path to instance data json file using —instance-data
dpkg: error processing package ubuntu- advantage- tools (—configure):
installed ubuntu- advantage- tools package post-installation script subprocess returned error exit status 1
Setting up systemd-sysv (245.4-4ubuntu3.11) .
Setting up libglib2.0-bin (2.64.6- 1

ubuntu20. 04.4) .
Setting up libnss- systemd: amd64 (245.4-4ubuntu3.11) .
Setting up libpam- systemd: amd64 (245.4-4ubuntu3.11) .

pam-auth-update: Local modifications to /etc/pam. d/common- *, not updating.
pam-auth-update: Run pam-auth-update —force to override.

Processing triggers for man-db (2.9.1-1) .
Processing triggers for dbus (1.12.16- 2ubuntu2. 1) .
Processing triggers for libc-bin (2.31-0ubuntu9.2) .
Processing triggers for initramfs-tools (0.136ubuntu6.6) .
update-initramfs: Generating /boot/initrd. img-5.4. 0-77-generic
Errors were encountered while processing:
ubuntu- advantage- tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@testserver> dpkg —list | grep advantage
iF ubuntu- advantage- tools 27.2.1

20.04.1 amd64 management tools for Ubuntu Advantage

The error appears to be introduced in version 27.2.1

Note none of our internal servers have the missing file:
/run/cloud- init/instance- data.json

Can someone please confirm if there is a dependency issue in the new package? I am not sure why the tools package would depend on a cloud-init data file.

I expect the new advantage-tools package to upgrade and configure without issue, especially since it was already installed and configured to begin with.

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

Ubuntu Advantage Tools preventing update from Mint 17.3 to 18

Post by tomliotta » Wed May 19, 2021 10:41 pm

Attempting to update Mint 17.3 to 18 on a Lenovo W510. The presence of ubuntu-advantage-tools is somehow tied to one or more errors that prevent a successful completion. Search results indicate that others have run into the same or similar problems in the past couple years, but I’ve yet to run across a useful resolution.

Running any kind of update gives an error like this:

In my case (and others I’ve seen), a major result is a failed install of Cinnamon, making terminal I/O the only option.

I’d happily remove ubuntu-advantage-tools and install it later if necessary, but the above error always causes the attempted removal to fail.

Any suggested fix must use only terminal commands and probably can’t rely on apt-get . One suggested fix involved updating PYTHONPATH, but included no hint how to do so from a command line. If output is needed to be posted, hints on how would also be useful. Everything seems to work outside of Cinnamon, so networking should make it possible to send data to one of my other systems.

Lenovo W520 ThinkPad,Core i7, 16GB, 250GB HDD (LM18 Cinnamon 64-bit)
and numerous others.

Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18

Post by all41 » Fri May 21, 2021 9:06 am

Attempting to update Mint 17.3 to 18 on a Lenovo W510. The presence of ubuntu-advantage-tools is somehow tied to one or more errors that prevent a successful completion. Search results indicate that others have run into the same or similar problems in the past couple years, but I’ve yet to run across a useful resolution.

Running any kind of update gives an error like this:

In my case (and others I’ve seen), a major result is a failed install of Cinnamon, making terminal I/O the only option.

I’d happily remove ubuntu-advantage-tools and install it later if necessary, but the above error always causes the attempted removal to fail.

Any suggested fix must use only terminal commands and probably can’t rely on apt-get . One suggested fix involved updating PYTHONPATH, but included no hint how to do so from a command line. If output is needed to be posted, hints on how would also be useful. Everything seems to work outside of Cinnamon, so networking should make it possible to send data to one of my other systems.

Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18

Post by tomliotta » Mon May 24, 2021 8:44 am

My intent was to run through the series of supported upgrades to bring the system up to a currently supported level as I’ve done with a few others. The first step is to upgrade to Mint 18. Mint upgrades are mostly easy enough to run with very little attention, and I learn a little bit more about Linux (and Mint) each time. This time, I’m apparently going to learn something significant about using the terminal to review errors.

Hmmm. well, «apparently».

Before my previous post, I’d gone through a half dozen restarts, including a couple full shutdowns. I watched for each error message in order to compose a useful question. But I had to stop after this first paragraph in this post; and while I was doing other things, the laptop power cord was unplugged on the error system. When I got back to it, the battery had discharged, and it had shut itself down.

And when I restarted it, it was running fine. Desktop was fine under Mint 18.

After a couple simple tests, I applied the few updates in the Update Manager. The listed ones seemed updated okay, but it ended with the same error noted above.

Many of the references in various forums to this error seemed to end without resolution, like many other errors I’ve looked at. I suspect that these are errors that often result in people giving up on Linux. I’ll start a new thread specifically for the hanging update error to dig out a fix. It needs to be handled before going forward with upgrades.

Lenovo W520 ThinkPad,Core i7, 16GB, 250GB HDD (LM18 Cinnamon 64-bit)
and numerous others.

Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18

Post by Larry78723 » Mon May 24, 2021 9:49 am

Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18

Post by all41 » Mon May 24, 2021 11:09 am

From where you are now to where you want to be is a bumpy road .
Most agree that in-place upgrades within a release series are usually glitchless,
but release to release updates can be stubborn, and you’re talking 17 to 18, 18 to 19, & 19 to 20

You’re a brave soul @tomliotta—I would definitely dl 20.1 and make sure everything works as expected beforehand.

A fresh install with customizations will take less time—no doubt.

Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18

Post by tomliotta » Fri May 20, 2022 7:48 am

Not necessarily brave. Retired with lots of time and spare equipment.

I tried a few Linux distros before running across and settling on Mint some 7-8 yrs ago starting with Mint 12. My professional background started with IBM mainframes. Eventually moved to IBM midrange before a number of years with Dec, H-P, Reality and then many various PC product lines for a while heavy into OS/2 and WinNT. Unix never was much of a draw for me until MS decided Windows 2000 wasn’t going to be their future and brought out XP. XP seemed «okay», but I couldn’t accept their apparent future direction and vowed to move all of my stuff off of Windows.

That’s when I started checking Linux. Mint convinced me it was possible to survive without Windows for good, even as a Linux novice (but with a lot of general background). I’m still little more than Linux ‘user’ and far from a ‘professional’. But I learn a little more every time I run an upgrade cycle. Learning «a little more» is my main interest, so upgrades are seen as worth my time.

Still a little disturbed by how hit-and-miss upgrades can be. I’m somewhat spoiled by the high quality of upgrades from my professional life, but I also understand how the free market works.

Although I somehow got past the problem of this thread (no clue why it eventually worked), I’ve delayed upgrading from 18.3 to 19. Now I’m just about ready to tackle it again. Hard to convince myself to do it as long as everything just keeps working (including this old Lenovo W520 laptop). But I’m getting hints that some programs need upgrading. I hope to soon see if I have to revive this thread or if the problem no longer shows up.

Lenovo W520 ThinkPad,Core i7, 16GB, 250GB HDD (LM18 Cinnamon 64-bit)
and numerous others.

Источник

We are running on Ubuntu 20.04 and having issue when updating the OS packages. Specifically, the ubuntu-advantage-tools is failing to configure. This just started recently.

Initially the server had no issue — advantage tools were installed and configured:
root@testserver> dpkg —list | grep advantage
ii ubuntu-advantage-tools 27.1~20.04.1 amd64 management tools for Ubuntu Advantage

I ran apt update followed by upgrade and ‘ubuntu-advantage-tools’ failed to configure:

root@testserver> sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Fetched 328 kB in 9s (38.3 kB/s)
Reading package lists… Done

root@testserver> sudo apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
  curl libcurl3-gnutls libcurl4 libglib2.0-0 libglib2.0-bin libglib2.0-data libnss-systemd libpam-systemd libsystemd0 libudev1 networkd-dispatcher systemd
  systemd-sysv ubuntu-advantage-tools udev
15 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
10 standard security updates
Need to get 8,664 kB of archives.
After this operation, 54.3 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libnss-systemd amd64 245.4-4ubuntu3.11 [96.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 udev amd64 245.4-4ubuntu3.11 [1,365 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libudev1 amd64 245.4-4ubuntu3.11 [78.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-sysv amd64 245.4-4ubuntu3.11 [10.3 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-systemd amd64 245.4-4ubuntu3.11 [186 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd amd64 245.4-4ubuntu3.11 [3,807 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsystemd0 amd64 245.4-4ubuntu3.11 [270 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-data all 2.64.6-1~ubuntu20.04.4 [6,052 B]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-bin amd64 2.64.6-1~ubuntu20.04.4 [72.6 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-0 amd64 2.64.6-1~ubuntu20.04.4 [1,287 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 networkd-dispatcher all 2.1-2~ubuntu20.04.1 [14.6 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-advantage-tools amd64 27.2.1~20.04.1 [844 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.6 [161 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.6 [234 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.6 [231 kB]
Fetched 8,664 kB in 0s (77.5 MB/s)
Preconfiguring packages …
Can’t exec «/tmp/ubuntu-advantage-tools.config.9EJyW7»: Permission denied at /usr/share/perl/5.30/IPC/Open3.pm line 281.
open2: exec of /tmp/ubuntu-advantage-tools.config.9EJyW7 configure 27.1~20.04.1 failed: Permission denied at /usr/share/perl5/Debconf/ConfModule.pm line 59.
(Reading database … 111472 files and directories currently installed.)
Preparing to unpack …/libnss-systemd_245.4-4ubuntu3.11_amd64.deb …
Unpacking libnss-systemd:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Preparing to unpack …/udev_245.4-4ubuntu3.11_amd64.deb …
Unpacking udev (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Preparing to unpack …/libudev1_245.4-4ubuntu3.11_amd64.deb …
Unpacking libudev1:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Setting up libudev1:amd64 (245.4-4ubuntu3.11) …
(Reading database … 111472 files and directories currently installed.)
Preparing to unpack …/systemd-sysv_245.4-4ubuntu3.11_amd64.deb …
Unpacking systemd-sysv (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Preparing to unpack …/libpam-systemd_245.4-4ubuntu3.11_amd64.deb …
Unpacking libpam-systemd:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Preparing to unpack …/systemd_245.4-4ubuntu3.11_amd64.deb …
Unpacking systemd (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Preparing to unpack …/libsystemd0_245.4-4ubuntu3.11_amd64.deb …
Unpacking libsystemd0:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Setting up libsystemd0:amd64 (245.4-4ubuntu3.11) …
(Reading database … 111473 files and directories currently installed.)
Preparing to unpack …/0-libglib2.0-data_2.64.6-1~ubuntu20.04.4_all.deb …
Unpacking libglib2.0-data (2.64.6-1~ubuntu20.04.4) over (2.64.6-1~ubuntu20.04.3) …
Preparing to unpack …/1-libglib2.0-bin_2.64.6-1~ubuntu20.04.4_amd64.deb …
Unpacking libglib2.0-bin (2.64.6-1~ubuntu20.04.4) over (2.64.6-1~ubuntu20.04.3) …
Preparing to unpack …/2-libglib2.0-0_2.64.6-1~ubuntu20.04.4_amd64.deb …
Unpacking libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.4) over (2.64.6-1~ubuntu20.04.3) …
Preparing to unpack …/3-networkd-dispatcher_2.1-2~ubuntu20.04.1_all.deb …
Unpacking networkd-dispatcher (2.1-2~ubuntu20.04.1) over (2.0.1-1) …
Preparing to unpack …/4-ubuntu-advantage-tools_27.2.1~20.04.1_amd64.deb …
Unpacking ubuntu-advantage-tools (27.2.1~20.04.1) over (27.1~20.04.1) …
Preparing to unpack …/5-curl_7.68.0-1ubuntu2.6_amd64.deb …
Unpacking curl (7.68.0-1ubuntu2.6) over (7.68.0-1ubuntu2.5) …
Preparing to unpack …/6-libcurl4_7.68.0-1ubuntu2.6_amd64.deb …
Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.6) over (7.68.0-1ubuntu2.5) …
Preparing to unpack …/7-libcurl3-gnutls_7.68.0-1ubuntu2.6_amd64.deb …
Unpacking libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.6) over (7.68.0-1ubuntu2.5) …
Setting up networkd-dispatcher (2.1-2~ubuntu20.04.1) …
Setting up libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.4) …
Setting up libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.6) …
Setting up systemd (245.4-4ubuntu3.11) …
Installing new version of config file /etc/dhcp/dhclient-enter-hooks.d/resolved …
Setting up libglib2.0-data (2.64.6-1~ubuntu20.04.4) …
Setting up udev (245.4-4ubuntu3.11) …
update-initramfs: deferring update (trigger activated)
Setting up libcurl4:amd64 (7.68.0-1ubuntu2.6) …
Setting up curl (7.68.0-1ubuntu2.6) …
Setting up ubuntu-advantage-tools (27.2.1~20.04.1) …
Installing new version of config file /etc/apt/apt.conf.d/20apt-esm-hook.conf …
Installing new version of config file /etc/ubuntu-advantage/uaclient.conf …
ERROR: File not found ‘/run/cloud-init/instance-data.json’. Provide a path to instance data json file using —instance-data
dpkg: error processing package ubuntu-advantage-tools (—configure):
 installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
Setting up systemd-sysv (245.4-4ubuntu3.11) …
Setting up libglib2.0-bin (2.64.6-1~ubuntu20.04.4) …
Setting up libnss-systemd:amd64 (245.4-4ubuntu3.11) …
Setting up libpam-systemd:amd64 (245.4-4ubuntu3.11) …

pam-auth-update: Local modifications to /etc/pam.d/common-*, not updating.
pam-auth-update: Run pam-auth-update —force to override.

Processing triggers for man-db (2.9.1-1) …
Processing triggers for dbus (1.12.16-2ubuntu2.1) …
Processing triggers for libc-bin (2.31-0ubuntu9.2) …
Processing triggers for initramfs-tools (0.136ubuntu6.6) …
update-initramfs: Generating /boot/initrd.img-5.4.0-77-generic
Errors were encountered while processing:
 ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@testserver> dpkg —list | grep advantage
iF ubuntu-advantage-tools 27.2.1~20.04.1 amd64 management tools for Ubuntu Advantage

The error appears to be introduced in version 27.2.1~20.04.1.

Note none of our internal servers have the missing file:
/run/cloud-init/instance-data.json

Can someone please confirm if there is a dependency issue in the new package? I am not sure why the tools package would depend on a cloud-init data file.

I expect the new advantage-tools package to upgrade and configure without issue, especially since it was already installed and configured to begin with.

This problem appeared for me after upgrading to Ubuntu 18.04 from 16.04.

I updated opcua and opcua-client as suggested with python -m pip install, and also with pip3 install, to get it updated in python3 packages, and the problem remained.
I have system python3 installed in /usr/bin/python3 (version 3.6), and another version in /usr/local/bin/python3 (version 3.8) which is the default python3. I’m not sure why, but the uaclient.entitlements module can be loaded properly with /usr/bin/python3, but not with /usr/local/bin/python3

Instead of changing the location of the uaclient package, the following worked for me:

I used update-alternatives to choose which python3 will be used by default, either system python3 which is /usr/bin/python3.6, or the updated python3 which is installed in /usr/local/bin/python3.8 as described here:
https://unix.stackexchange.com/questions/410579/change-the-python3-default-version-in-ubuntu

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1

sudo update-alternatives --install /usr/local/bin/python3 python3 /usr/local/bin/python3.8 2

Then, choose /usr/bin/python3.6 as the default by running:

sudo update-alternatives --config python3

A symlink is created as /etc/alternatives/python3 that points to the chosen default python3.

Since the way I set the alternatives results in /usr/local/bin/python3.8 as the automatic default python3, the symlink /usr/bin/python3 -> python3.6 is removed. But this symlink is still needed for dependencies/functions that use system python through /usr/bin/python3, so I added back the sym link:

sudo ln -s python3.6 /usr/bin/python3

By setting /usr/bin/python3.6 as the default instead of /usr/local/bin/python3.8, then uaclient.entitlements can be loaded properly. This worked for me to install and upgrade packages where this uaclient.entitlements ModuleNotFoundError was occurring. Just have to switch back to using /usr/local/bin/python3.8 when finished installing. But I think now that ubuntu-advantage-tools is configured by getting through this error, there doesn’t seem to be a need to switch to /usr/bin/python3.6 as the default anymore for installing packages.

@zkytony

I am getting the error «

ModuleNotFoundError: No module named 'uaclient.entitlements'

whenever I run apt upgrade or apt install commands. For example,

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up ubuntu-advantage-tools (27.0.2~18.04.1) ...
Traceback (most recent call last):
  File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'uaclient.entitlements'
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)

Everything was fine yesterday until I installed an Ubuntu base upgrade using the GUI software updater.

Before encountering the issue about «uaclient.entitlements», I got a ModuleNotFoundError for the ‘uaclient` module. I resolved that by doing

pip3 install opcua-client

Now I have to resolve this one about «uaclient.entitlements». What should I do?

@blackboxsw

@zkytony thank you for filing this bug. Firstly opcua-client module is a completely unrelated project for what looks like UA TCP communication if I’m not mistaken. So, pip3 installing that module only by happenstance shares the same module name :( as this project. This is definitely not what you want to solve this problem.

It seems the python3 in your environment may not be from python3-minumal which by default has visiblility to a PYTHONPATH which includes /usr/lib/python3/dist-packages/? This directory is where ubuntu-advantage-tools deb package installs its python modules on disk. Is there a custom python3 setup in your environment?

@zkytony

I see, thanks for the info! Wouldn’t have known that opcua-client is unrelated.

Indeed, my python3’s packages seem to go '/usr/local/lib/python3.8/site-packages when I print sys.path. And I do see uaclient under /usr/lib/python3/dist-packages/. I added /usr/lib/python3/dist-packages/ to the PYTHONPATH by

export PYTHONPATH="${PYTHONPATH}:/usr/lib/pythno3/dist-packages/"

And I verified that /usr/lib/pythno3/dist-packages is in the list of paths in sys.path. However, I am still getting the error that ‘uaclient’ is not found

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up ubuntu-advantage-tools (27.0.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
Errors were encountered while processing:
 ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

@lucasmoura

Hi @zkytony just to double check here, looking at the PYTHONPATH command, I see a typo on /usr/lib/pythno3/dist-packages/ part, it should be /usr/lib/python3/dist-packages/. If that is the case, maybe fixing the typo will solve this issue.

@zkytony

Thanks for spotting the typo! For a moment I thought it fixed the issue. But it actually didn’t:

$ echo $PYTHONPATH
:/usr/lib/python3/dist-packages/
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up ubuntu-advantage-tools (27.0.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
Errors were encountered while processing:
 ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

Printing sys.path:

$ python3
Python 3.8.8 (default, Apr  5 2021, 18:15:31) 
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.path)
['', '/home/xxx', '/usr/lib/python3/dist-packages', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/home/xxx/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/site-packages'

@lucasmoura

No problem @zkytony, I have a couple of ideas here:

  • Do you have that path on your system ? /usr/lib/python3/dist-packages ? Maybe it should be /usr/lib/python3.8/dist-packages/
  • I think that just adding /usr/lib/python3.8 should be enough here.

Let me know if neither of those approaches work

@sisrfeng

Firstly opcua-client module is a completely unrelated project
Don’t be confused by this unrelated one:
image

this works:
export PYTHONPATH=/usr/lib/python3/dist-packages

this does not work:
/usr/lib/python3.6/site-packages

@blackboxsw

@orndorffgrant

This should be fixed as of 27.4.1 If you are experiencing this issue, please upgrade your package. If you still experience this issue after upgrading please re-open this issue.

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

tomliotta

Level 2
Level 2
Posts: 65
Joined: Mon Aug 04, 2014 6:59 pm
Location: Gig Harbor, WA, USA

Ubuntu Advantage Tools preventing update from Mint 17.3 to 18

Attempting to update Mint 17.3 to 18 on a Lenovo W510. The presence of ubuntu-advantage-tools is somehow tied to one or more errors that prevent a successful completion. Search results indicate that others have run into the same or similar problems in the past couple years, but I’ve yet to run across a useful resolution.

Running any kind of update gives an error like this:

Code: Select all

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
Errors were encountered while processing:
 ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

In my case (and others I’ve seen), a major result is a failed install of Cinnamon, making terminal I/O the only option.

I’d happily remove ubuntu-advantage-tools and install it later if necessary, but the above error always causes the attempted removal to fail.

Any suggested fix must use only terminal commands and probably can’t rely on apt-get. One suggested fix involved updating PYTHONPATH, but included no hint how to do so from a command line. If output is needed to be posted, hints on how would also be useful. Everything seems to work outside of Cinnamon, so networking should make it possible to send data to one of my other systems.

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Tom

Lenovo W520 ThinkPad,Core i7, 16GB, 250GB HDD (LM18 Cinnamon 64-bit)
and numerous others.

User avatar

all41

Level 18
Level 18
Posts: 8663
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18

Post

by all41 » Fri May 21, 2021 9:06 am

tomliotta wrote: ↑

Wed May 19, 2021 10:41 pm


Attempting to update Mint 17.3 to 18 on a Lenovo W510. The presence of ubuntu-advantage-tools is somehow tied to one or more errors that prevent a successful completion. Search results indicate that others have run into the same or similar problems in the past couple years, but I’ve yet to run across a useful resolution.

Running any kind of update gives an error like this:

Code: Select all

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
Errors were encountered while processing:
 ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

In my case (and others I’ve seen), a major result is a failed install of Cinnamon, making terminal I/O the only option.

I’d happily remove ubuntu-advantage-tools and install it later if necessary, but the above error always causes the attempted removal to fail.

Any suggested fix must use only terminal commands and probably can’t rely on apt-get. One suggested fix involved updating PYTHONPATH, but included no hint how to do so from a command line. If output is needed to be posted, hints on how would also be useful. Everything seems to work outside of Cinnamon, so networking should make it possible to send data to one of my other systems.

You are suggesting an upgrade from a no longer supported os to a newer but also no longer supported os.
Can you download the latest Mint for a try-out on your hardware? That would be much better than trying to upgrade
your current system. You can audition Mint 20.1 without changing anything on your current install.
Let’s discuss a realistic LTS update—this forum will guide you through the reinstall process.
Your system information is needed.
See this link:
http://forums.linuxmint.com/viewtopic.php?f=17&t=83444
especially #5
Cheers

Everything is difficult before it gets easy.

tomliotta

Level 2
Level 2
Posts: 65
Joined: Mon Aug 04, 2014 6:59 pm
Location: Gig Harbor, WA, USA

Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18

Post

by tomliotta » Mon May 24, 2021 8:44 am

My intent was to run through the series of supported upgrades to bring the system up to a currently supported level as I’ve done with a few others. The first step is to upgrade to Mint 18. Mint upgrades are mostly easy enough to run with very little attention, and I learn a little bit more about Linux (and Mint) each time. This time, I’m apparently going to learn something significant about using the terminal to review errors.

Hmmm… well, «apparently».

Before my previous post, I’d gone through a half dozen restarts, including a couple full shutdowns. I watched for each error message in order to compose a useful question. But I had to stop after this first paragraph in this post; and while I was doing other things, the laptop power cord was unplugged on the error system. When I got back to it, the battery had discharged, and it had shut itself down.

And when I restarted it, it was running fine. Desktop was fine under Mint 18.

After a couple simple tests, I applied the few updates in the Update Manager. The listed ones seemed updated okay, but it ended with the same error noted above.

Many of the references in various forums to this error seemed to end without resolution, like many other errors I’ve looked at. I suspect that these are errors that often result in people giving up on Linux. I’ll start a new thread specifically for the hanging update error to dig out a fix. It needs to be handled before going forward with upgrades.

Tom

Lenovo W520 ThinkPad,Core i7, 16GB, 250GB HDD (LM18 Cinnamon 64-bit)
and numerous others.

User avatar

Larry78723

Level 14
Level 14
Posts: 5481
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18

Post

by Larry78723 » Mon May 24, 2021 9:49 am

Most experienced users would recommend backing up your user data and doing a clean install. This is especially true if your ultimate goal is the latest release of Linux Mint since much of the customization (the software you installed after the basic installation of LM17) will not run on the current release.

Image
If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject, it helps other users looking for help, and keeps the forum clean.

User avatar

all41

Level 18
Level 18
Posts: 8663
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18

Post

by all41 » Mon May 24, 2021 11:09 am

tomliotta wrote: ↑

Mon May 24, 2021 8:44 am


My intent was to run through the series of supported upgrades to bring the system up to a currently supported level

From where you are now to where you want to be is a bumpy road .
Most agree that in-place upgrades within a release series are usually glitchless,
but release to release updates can be stubborn, and you’re talking 17 to 18, 18 to 19, & 19 to 20

https://linuxmint-user-guide.readthedoc … nt-20.html
viewtopic.php?f=60&t=277741&hilit

You’re a brave soul @tomliotta—I would definitely dl 20.1 and make sure everything works as expected beforehand.

A fresh install with customizations will take less time—no doubt.

Everything is difficult before it gets easy.

tomliotta

Level 2
Level 2
Posts: 65
Joined: Mon Aug 04, 2014 6:59 pm
Location: Gig Harbor, WA, USA

Re: Ubuntu Advantage Tools preventing update from Mint 17.3 to 18

Post

by tomliotta » Fri May 20, 2022 7:48 am

Not necessarily brave. Retired with lots of time and spare equipment.

I tried a few Linux distros before running across and settling on Mint some 7-8 yrs ago starting with Mint 12. My professional background started with IBM mainframes. Eventually moved to IBM midrange before a number of years with Dec, H-P, Reality and then many various PC product lines for a while heavy into OS/2 and WinNT. Unix never was much of a draw for me until MS decided Windows 2000 wasn’t going to be their future and brought out XP. XP seemed «okay», but I couldn’t accept their apparent future direction and vowed to move all of my stuff off of Windows.

That’s when I started checking Linux. Mint convinced me it was possible to survive without Windows for good, even as a Linux novice (but with a lot of general background). I’m still little more than Linux ‘user’ and far from a ‘professional’. But I learn a little more every time I run an upgrade cycle. Learning «a little more» is my main interest, so upgrades are seen as worth my time.

Still a little disturbed by how hit-and-miss upgrades can be. I’m somewhat spoiled by the high quality of upgrades from my professional life, but I also understand how the free market works.

Although I somehow got past the problem of this thread (no clue why it eventually worked), I’ve delayed upgrading from 18.3 to 19. Now I’m just about ready to tackle it again. Hard to convince myself to do it as long as everything just keeps working (including this old Lenovo W520 laptop). But I’m getting hints that some programs need upgrading. I hope to soon see if I have to revive this thread or if the problem no longer shows up.

Tom

Lenovo W520 ThinkPad,Core i7, 16GB, 250GB HDD (LM18 Cinnamon 64-bit)
and numerous others.

Удаление пакета Ubuntu Advantage

Операционная система Ubuntu Linux в целом свободна от навязанного, предустановленного программного обеспечения («bloatware»). За исключением пакета «ubuntu advantage tools», который стала распространять фирма Canonical для Ubuntu и Linux Mint. Удаляем ненужный пакет.

Что такое Ubuntu Advantage

Для крупных корпораций, использующих Ubuntu Linux на предприятиях и в офисах, очень нужна возможность круглосуточной технической поддержки операционной системы. Будь то виртуальный частный сервер (VDS) или рабочее место (desktop).

Например, Microsoft при покупке ОС Windows предоставляет для клиентов такую поддержку. Также есть расширенные пакеты в рамках соглашения Microsoft Open (Open Value и Open License).

Чтобы малые и средние фирмы могли использовать Linux, фирмой Canonical создана программа Ubuntu Advantage. Поддержка осуществляется на родном языке — в данном случае русском. В России за поддержку отвечает компания «Factor group» (https://www.fgts.ru/).

Почему я удалил Ubuntu Advantage Tools

Причины:

  1. Участие в программе платное. См. здесь. Я не собираюсь покупать эту программу «Ubuntu Advantage», участвовать в ней.

  2. Через зависимости от пакета ubuntu-advantage-tools на моём компьютере может быть установлено что угодно (дыра в безопасности).

  3. Данный сервисный пакет Canonical не является ПО с открытым исходным кодом.

Как удалить пакет Ubuntu Advantage Tools?

Командой

sudo apt remove ubuntu-advantage-tools

Одновременно удалится мета-пакет ubuntu-minimal, его удаление не влияет на работу системы.

Дополнительная информация

Информация о пакете ubuntu-advantage-tools:

apt-cache show ubuntu-advantage-tools
Package: ubuntu-advantage-tools
Architecture: amd64
Version: 27.2.2~20.04.1
Priority: important
Section: misc
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3107
...
Homepage: https://buy.ubuntu.com
Description-en: management tools for Ubuntu Advantage
Ubuntu Advantage is the professional package of tooling, technology
and expertise from Canonical, helping organisations around the world
manage their Ubuntu deployments.
.
Subscribers to Ubuntu Advantage will find helpful tools for accessing
services in this package.

Дополнение от 08.11.2021 — попытка самопроизвольной установки пакета Ubuntu Advantage

8 ноября заметил, что во время очередного обновления пакет «ubuntu-advantage-tools» попытался установиться снова:

Предварительная настройка пакетов …
Can't exec "/tmp/ubuntu-advantage-tools.config.LWEG0X": Отказано в доступе at /usr/share/perl/5.30/IPC/Open3.pm line 281.
open2: exec of /tmp/ubuntu-advantage-tools.config.LWEG0X configure 27.2.2~20.04.1 failed: Permission denied at /usr/share/perl5/Debconf/ConfModule.pm line 59.
(Чтение базы данных … на данный момент установлено 623270 файлов и каталогов.)
Подготовка к распаковке …/0-ubuntu-advantage-tools_27.3~20.04.1_amd64.deb …
Распаковывается ubuntu-advantage-tools (27.3~20.04.1) на замену (27.2.2~20.04.1) …
...
Настраивается пакет ubuntu-advantage-tools (27.3~20.04.1) …
Устанавливается новая версия файла настройки /etc/logrotate.d/ubuntu-advantage-tools …
Устанавливается новая версия файла настройки /etc/ubuntu-advantage/help_data.yaml …
Устанавливается новая версия файла настройки /etc/ubuntu-advantage/uaclient.conf …
Created symlink /etc/systemd/system/timers.target.wants/ua-timer.timer → /lib/systemd/system/ua-timer.timer.
Created symlink /etc/systemd/system/multi-user.target.wants/ua-license-check.path → /lib/systemd/system/ua-license-check.path.

Таким образом, во время обновления пакет «ubuntu-advantage» был установлен снова.
Выполнил его удаление:

sudo apt-get remove ubuntu-advantage-tools

Похожие публикации

Понравилась статья? Поделить с друзьями:
  • Uboot partition boot download buffer data transfer error
  • Uboot get result diskinitial error что это
  • Uboot get result diskinitial error x96 mini
  • Uboot get result diskinitial error x96 max
  • Uboot get result diskinitial error 0x32030201 на прставке magicsee n5 max x3