【问题标题】:Getting error "you must have a tty to run sudo" when we run through Pentaho当我们运行 Pentaho 时出现错误“你必须有一个 tty 才能运行 sudo”
【发布时间】:2017-07-11 11:56:52
【问题描述】:

我在运行带有 R 脚本的 shell 脚本时收到 you must have a tty to run sudo 错误。

奇怪的是,它不会每次都发生。我认为这是因为 RAM 问题,但我不确定。

【问题讨论】:

标签: r shell sudo pentaho-spoon


【解决方案1】:

这意味着您在 Linux 发行版上运行,“sudo”配置为需要 tty

请参考此链接以获得简单的修复: https://www.shell-tips.com/2014/09/08/sudo-sorry-you-must-have-a-tty-to-run-sudo/

【讨论】:

  • 您的其他答案因仅链接而被删除。我没有报道这个,因为它有一些细节,但不多。你能扩展它吗?我们可以在帖子中看到修复本身吗?
  • 现在解决了。我在 shell script 中保留了 sudo 字,这就是它因上述错误而失败的原因。在 shell 脚本中删除 sudo 后,它工作正常。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-04-09
  • 2015-06-29
  • 2016-06-05
相关资源
最近更新 更多