sudo and pyinfra
Recently Ubuntu switched sudo implementations to a new version written in rust. If you need to swithc back for some reason, this article gave me enough information to do so, but there is a typo in it.
In my case this worked:
sudo su
ls /usr/bin/sudo*
#hmm, yes sudo it a symlink which after a few hops resolves to the new version
rm /usr/bin/sudo
ln -s /usr/bin/sudo.ws /usr/bin/sudo
In my case, pyinfra stopped working, as described here and this was the only workaround I could get working.
Continue reading