对我来说's quite strange, maybe it'更像是Ubuntu问题 . 无论如何,我已经在相当新鲜的Ubuntu 18.10上安装了sbt(我按照sbt网页上的说明进行了操作) . 结果是我可以运行 sbt 命令 . 但是当我提供一些参数时问题就出现了,然后Ubuntu说 sbt: command not found . 最有趣的是这些调用的不同结果:

s@desktop:~/dev/project$ sbt -h
sbt: command not found

和:

s@desktop:~/dev/project$ sbt -help
Usage: sbt [options]

  -h | -help         print this message
  [...]

你知道发生了什么吗?