There is nothing wrong in your output. $PATH is a variable, not a UNIX command. Run 'echo $PATH' instead of '$PATH' in Ubuntu terminal and you will not see the warning message:"No such file or directory"
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin: