Hi Daevid,

I'm sorry our package is causing this problem for you.

This appears to be a bug related to the python setup and dependencies on
the machine. Have you done any python development or pip installed
anything recently? If you have, the details might help us figure out
what happened here.

There appears to be a yaml module in /root/.local/lib/python2.7/site-
packages/yaml/ on your machine that is taking precedence over the system
yaml module at /usr/lib/python3/dist-packages/yaml/ for some reason.

Here are some things to try.

1. make sure python3-yaml is installed

apt install python3-yaml
apt upgrade

2. if (1) doesn't work, then try setting the PYTHONPATH environment
variable to the system dist-packages while upgrading

PYTHONPATH=/usr/lib/python3/dist-packages/ apt upgrade

3. if (2) doesn't work, try temporarily renaming your local yaml module
during the upgrade

mv /root/.local/lib/python2.7/site-packages/yaml/ 
/root/.local/lib/python2.7/site-packages/yaml-backup/
apt upgrade
# rename it back if you need it
mv /root/.local/lib/python2.7/site-packages/yaml-backup/ 
/root/.local/lib/python2.7/site-packages/yaml/


Please let us know if any of the above work for you or not and we will try to 
debug further if needed.

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

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to