I tried to install FEniCS on Ubuntu 18.04.5 LTS with the following commands (from fenicsproject.org site):
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:fenics-packages/fenics
sudo apt-get update
sudo apt-get install fenics
The operations completed with an error:
Traceback (most recent call last):<br>
File "\<string>", line 2, in \<module><br>
ModuleNotFoundError: No module named 'uaclient'<br>
dpkg: error processing package ubuntu-advantage-tools (--configure):<br>
installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1<br>
Errors were encountered while processing:
ubuntu-advantage-tools<br>
E: Sub-process /usr/bin/dpkg returned an error code (1)
In fact, executing:
dpkg --list | grep ubuntu-advantage-tools
I got:
iF ubuntu-advantage-tools 27.2.2~18.04.1 amd64 management tools for Ubuntu Advantage
It seems that the package is not copmpletely configurred. So I tried to reinstall it:
sudo apt-get install --reinstall ubuntu-advantage-tools
but it completed with an error:
E: Internal Error, No filename for ubuntu-advantage-tools:amd64
Finally I tried to purge the package and install it once more:
sudo apt-get purge ubuntu-advantage-tools
but it also didn't work:
Traceback (most recent call last):<br>
File "\<string>", line 2, in \<module><br>
ModuleNotFoundError: No module named 'uaclient'<br>
dpkg: error processing package ubuntu-advantage-tools (--remove):<br>
installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1<br>
Errors were encountered while processing:<br>
ubuntu-advantage-tools<br>
E: Sub-process /usr/bin/dpkg returned an error code (1)
What is the reason of this behaviour and what should I do to get it working?