Yarn on ubuntu mixed with cmdinstall, apt-get installs cmdtest

To fix this problem you will need to unistall cmdinstall and then put yarn, if not it will keep calling cmdtest, this is even on newer ubuntu 20.x versions.

sudo apt-get remove cmdinstall;sudo apt update;sudo apt-get install yarn