Would be interesting to see the output from echo $PATH
If the path-env is correct it would look like something: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
As far as I know emlidtool is located at /usr/local/bin/emlidtool
I had the same problem with emlidtool not found after a distribution upgrade. I ended up solving it by reinstalling it with “sudo pip3 install emlidtool”
During the update/upgrade it asks if its OK to uninstall the existing emlidtool 1.0.0. Once that is done it tries to install the newer version and you get an ironic red text warning that ‘required emlidtool cannot be found, required for uninstall’. Update continues but anytime it gets to anything related to emlidtool you get more red text and when complete you have no more emlidtool.
I’m no linux expert but it seems like a tweak needs to be made to the order of things so that it isn’t uninstalled first and then failing when it tries to uninstall a second time.
That does not fix it for me, the error I get using that command is posted above.
For now I have just reformatted and started fresh and prevented emlidtool from being allowed to upgrade before running the apt-get dist-upgrade. So my emlidtool is stuck at 1.0.0 until someone can find a solution.