I also had the same problem when updating my system.
Returned the error:
Configuring ubuntu-advantage-tools (27.0 ~ 16.04.1) ...
Traceback (most recent call last):
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 processing:
ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried a
sudo apt autoremove
Then after removing unnecessary packages he returned the error:
Configuring ubuntu-advantage-tools (27.0 ~ 16.04.1) ...
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 processing:
Ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
Then I updated with:
sudo apt update
In which it has updated the system and asked to list packages to be updated with:
apt List --upgradable
I checked and updated with:
sudo apt upgrade
and returned me again the same error
I tried then, thinking that it was a ua client key utter, I added to the repository to try to solve the problem with:
sudo add-apt-repository ppa:ua-client/stable
Then I updated the packages again but the same mistake again was returned
I then tried the command to try to clean, with:
sudo apt --purge remove && sudo apt autoclean
And again the same error was returned
I then tried the command: sudo apt -f install
And yet the same error was returned
I tried the command: sudo apt upgrade && sudo apt dist-upgrade
and also the same error was also returned
I then tried the command: sudo dpkg --configure -
Also the same error returned
I then tried to remove advantage-tools to reinstall later, but also returned the error a bit different but it's the same for purge. So I execute:
sudo apt remove --purge ubuntu-advantage-tools
And it was returned:
The following package has been installed automatically and is no longer required:
distro-info
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
ubuntu-advantage-tools* ubuntu-minimal*
0 updated packages, 0 new packages installed, 2 to be removed
and 1 not updated.
1 packages not fully installed or removed.
After this operation, 3,016 KB of disk space will be released.
Do you want to continue? [Y / n] y
(Reading database ... 336633 Currently installed files and directories.)
Remove ubuntu-minimal (1,361.6) ...
Remove ubuntu-advantage-tools (27.0 ~ 16.04.1) ...
Traceback (most recent call last):
File "<string>", line 2, in <module>
ImportError: No module named 'uaclient'
dpkg: error processing the ubuntu-advantage-tools package (--purge):
sub-process script pre-removal installed returned error output status 1
Errors were found during processing:
ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
After that, I could no longer solve. In my system I can not update anything else. If you can help.
NOTE: The results are in Portuguese but I put in English here to facilitate.
Hey how is everything.
I also had the same problem when updating my system.
Returned the error:
Configuring ubuntu- advantage- tools (27.0 ~ 16.04.1) ... Advantage- Tools (--configure) package: advantage- tools
Traceback (most recent call last):
ImportError: No module named 'uaclient'
dpkg: error processing Ubuntu-
sub-process script post-installation installed returned error output status 1
Errors were found during processing:
ubuntu-
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried a
sudo apt autoremove
Then after removing unnecessary packages he returned the error:
Configuring ubuntu- advantage- tools (27.0 ~ 16.04.1) ... advantage- tools (--configure) package: advantage- tools
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 processing:
Ubuntu-
E: Sub-process /usr/bin/dpkg returned an error code (1)
Then I updated with:
sudo apt update
In which it has updated the system and asked to list packages to be updated with:
apt List --upgradable
I checked and updated with:
sudo apt upgrade
and returned me again the same error
I tried then, thinking that it was a ua client key utter, I added to the repository to try to solve the problem with: client/ stable
sudo add-apt-repository ppa:ua-
Then I updated the packages again but the same mistake again was returned
I then tried the command to try to clean, with:
sudo apt --purge remove && sudo apt autoclean
And again the same error was returned
I then tried the command: sudo apt -f install
And yet the same error was returned
I tried the command: sudo apt upgrade && sudo apt dist-upgrade
and also the same error was also returned
I then tried the command: sudo dpkg --configure -
Also the same error returned
I then tried to remove advantage-tools to reinstall later, but also returned the error a bit different but it's the same for purge. So I execute: advantage- tools
sudo apt remove --purge ubuntu-
And it was returned:
The following package has been installed automatically and is no longer required: advantage- tools* ubuntu-minimal* advantage- tools (27.0 ~ 16.04.1) ... advantage- tools package (--purge): advantage- tools
distro-info
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
ubuntu-
0 updated packages, 0 new packages installed, 2 to be removed
and 1 not updated.
1 packages not fully installed or removed.
After this operation, 3,016 KB of disk space will be released.
Do you want to continue? [Y / n] y
(Reading database ... 336633 Currently installed files and directories.)
Remove ubuntu-minimal (1,361.6) ...
Remove ubuntu-
Traceback (most recent call last):
File "<string>", line 2, in <module>
ImportError: No module named 'uaclient'
dpkg: error processing the ubuntu-
sub-process script pre-removal installed returned error output status 1
Errors were found during processing:
ubuntu-
E: Sub-process /usr/bin/dpkg returned an error code (1)
After that, I could no longer solve. In my system I can not update anything else. If you can help.
NOTE: The results are in Portuguese but I put in English here to facilitate.