Public bug reported:

# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  eatmydata fdisk gdisk libeatmydata1 libfakekey0 matchbox-keyboard-im
  python3-configobj python3-json-pointer python3-jsonpatch python3-jsonschema
  python3-jsonschema-specifications python3-referencing python3-rpds-py
  python3-serial
Use 'apt autoremove' to remove them.
The following upgrades have been deferred due to phasing:
  distro-info-data fwupd grub-common grub-pc grub-pc-bin grub2-common
  libfwupd2 xwayland
0 to upgrade, 0 to newly install, 0 to remove and 8 not to upgrade.
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 (34.1.2) ...
Traceback (most recent call last):
  File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'uaclient'
Traceback (most recent call last):
  File "/usr/lib/ubuntu-advantage/migrate_user_config.py", line 17, in <module>
    from uaclient import defaults, messages
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)
---------------
(1):
# lsb_release -rd
Description:    Ubuntu 24.10
Release:        24.10
---------------
(2):
# apt-cache policy ubuntu-advantage-tools
ubuntu-advantage-tools:
  Installed: 34.1.2
  Candidate: 34.1.2
  Version table:
 *** 34.1.2 500
        500 http://archive.ubuntu.com/ubuntu oracular/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu oracular/universe i386 Packages
        100 /var/lib/dpkg/status
--------------
(3):
I expected the upgrade to complete,
--------------
(4): 
but it gives an error message and quits. Nothing I have done has helped. I 
checked for solutions on Google: none have a date after 2021, but I tried 
anything promising anyway.
In particular, the command:
# update-manager
Traceback (most recent call last):
  File "/usr/bin/update-manager", line 39, in <module>
    from UpdateManager.UpdateManager import UpdateManager
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 
28, in <module>
    import uaclient.api.u.pro.packages.updates.v1 as ua
ModuleNotFoundError: No module named 'uaclient'

and apt gives a similar response:

#apt --fix-broken install
gives the same error message:
ModuleNotFoundError: No module named 'uaclient'
as does trying to purge the package or any other apt command.

This problem appeared following an upgrade from Ubuntu 22.04 to 24.10 and 
appears to be an updating bug.
I've attached the files recommended by Ubuntu Wiki "DebuggingProcedures"

** Affects: ubuntu-advantage-tools (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "This is /var/log/dist-upgrade/main.log"
   https://bugs.launchpad.net/bugs/2109683/+attachment/5875010/+files/main.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2109683

Title:
  ModuleNotFoundError: No module named `uaclient`

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2109683/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to