I tried to run command: env PYTHONPATH=/usr/lib/python3/dist-packages apt upgrade
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "/usr/lib/python3/dist-packages/uaclient/entitlements/__init__.py", line 1, in <module>
from typing import Dict, List, Type, cast # noqa: F401
ImportError: cannot import name 'Type'
dpkg: error processing ubuntu-advantage-tools (--configure):
sub-process script post-installation installed returned error output status 1
Errors were found during the processing of:
ubuntu-advantage-tools
E: Sub-process/usr/bin/dpkg returned an error code (1)
I tried to update again but the error persisted as:
Enable UA Infra: ESM to receive additional future security updates.
0 updated packages, 0 new packages installed, 0 to be removed and 0 not updated.
1 packages not fully installed or removed.
After this operation, additional 0B of disk space will be used.
Do you want to continue? [Y / n] y
Configuring ubuntu-advantage-tools (27.3 ~ 16.04.2) ...
TraceBack (most recent call last):
File "<string>", line 2, in <module>
ImportError: No module named 'uaclient'
dpkg: error processing ubuntu-advantage-tools (--configure) package:
sub-process script post-installation installed returned error output status 1
Errors were found during the processing of:
ubuntu-advantage-tools
E: Sub-process/usr/bin/dpkg returned an error code (1)
So I run the commands that resulted in the following exits:
which python3
/usr/local/bin/python3
Hello Grant Orndorff,
This is happening when I try to upgrade with apt upgrade /bugs.launchpad .net/ubuntu/ +source/ ubuntu- advantage- tools/+ bug/1927905
I already reported in another post but was doubled and I posted here, I reported on this:
https:/
I tried to run command: env PYTHONPATH= /usr/lib/ python3/ dist-packages apt upgrade python3/ dist-packages/ uaclient/ entitlements/ __init_ _.py", line 1, in <module> advantage- tools (--configure): advantage- tools usr/bin/ dpkg returned an error code (1)
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "/usr/lib/
from typing import Dict, List, Type, cast # noqa: F401
ImportError: cannot import name 'Type'
dpkg: error processing ubuntu-
sub-process script post-installation installed returned error output status 1
Errors were found during the processing of:
ubuntu-
E: Sub-process/
I tried to update again but the error persisted as:
Enable UA Infra: ESM to receive additional future security updates.
See https:/ /ubuntu. com/esm or run: sudo ua status
0 updated packages, 0 new packages installed, 0 to be removed and 0 not updated. advantage- tools (27.3 ~ 16.04.2) ... advantage- tools (--configure) package: advantage- tools usr/bin/ dpkg returned an error code (1)
1 packages not fully installed or removed.
After this operation, additional 0B of disk space will be used.
Do you want to continue? [Y / n] y
Configuring ubuntu-
TraceBack (most recent call last):
File "<string>", line 2, in <module>
ImportError: No module named 'uaclient'
dpkg: error processing ubuntu-
sub-process script post-installation installed returned error output status 1
Errors were found during the processing of:
ubuntu-
E: Sub-process/
So I run the commands that resulted in the following exits: bin/python3
which python3
/usr/local/
python3 -c "import uaclient"
nothing
env PYTHONPATH= /usr/lib/ python3/ dist-packages python3 -c "import uaclient"
nothing
ua version
27.3 ~ 16.04.2
apt policy ubuntu- advantage- tools advantage- tools: ppa.launchpad. net/ua- client/ stable/ ubuntu xenial/main amd64 Packages dpkg/status br.archive. ubuntu. com/ubuntu xenial-updates/main amd64 Packages
ubuntu-
Installed: 27.3 ~ 16.04.2
Candidate: 27.3 ~ 16.04.2
Version table:
*** 27.3 ~ 16.04.2 500
500 http://
100 /var/lib/
27.3 ~ 16.04.1 500
500 http://
Well I hope this problem can be solved, I'm looking forward to it.