You can fix problem "command not found" by installing
software-properties-common with command
sudo apt-get install software-properties-common
Then all you need to do is follow the guide.
Source :
https://tecadmin.net/add-apt-repository-command-not-found-debain-ubuntu/Looks like OP is beginner on Linux, so i think compiling from source code isn't best idea.