Can’t install anything via terminal

Every time I do anything I do anything related to sudo (mostly installing repositories), It says command not found.

Example of problem

Sometimes it tells me to manually run configure –a, which I do, and it still doesn’t work. Anyone know how to fix???

I’m on Ubuntu 18.04 LTS