Problem
After installing Azure CLI in my supported Linux environment, I try to install the extension via az extension add --name azure-cli-iot-ext
but I get an error that looks like:
- ImportError: libffi.so.5: cannot open shared object file: No such file or directory
Solution
Make sure you install the right distribution of Azure CLI that is compatible with your platform.
For example using the recommended installation path of Linux via apt, validate that your /etc/apt/sources.list.d/azure-cli.list
file has the proper distribution identifier.
On an Ubuntu 16.04 environment provided with the Windows Subsystem for Linux the sources list file should have an entry tagged with 'xenial':
deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ xenial main