【问题标题】:Cannot install R Shiny Server on WSL Ubuntu 18.04无法在 WSL Ubuntu 18.04 上安装 R Shiny Server
【发布时间】:2020-01-02 05:30:27
【问题描述】:

我无法在我的 WSL Ubuntu 18.04 LTS 上安装 Shiny 服务器 运行此行后出现错误: wgethttps://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.9.923-amd64.deb sudo gdebi shiny-server-1.5.9.923-amd64.deb

这是我不断收到的错误:

/var/lib/dpkg/info/shiny-server.postinst:97:/var/lib/dpkg/info/shiny-server.postinst:initctl:未找到 /var/lib/dpkg/info/shiny-server.postinst:99:/var/lib/dpkg/info/shiny-server.postinst:initctl:未找到

请帮忙。

尝试将 /var/lib/dpkg/info/shiny-server.postinst 中的 initctl 更改为 systemctl 但没有帮助

我按照 R 闪亮服务器页面上的说明进行操作

【问题讨论】:

  • @neilfws 我尝试了相同的链接。在那之后我做了同样的事情,它仍然给了我这个错误。你能指导我吗?
  • @Keith,这个运气好吗?似乎没有任何关于是否可以在 WSL/Ubuntu 上运行闪亮服务器的信息。我怀疑这与 WSL 不支持 initctl 的事实有关。 Upstart 似乎是另一个服务管理器,但不清楚我是否可以在最新的 Ubuntu 上使用它。也许有一种方法可以在不使其成为服务的情况下运行闪亮?
  • 我想通了。可以在 WSL 上安装闪亮的服务器。您将需要从源代码构建它。按照此处的步骤操作。 github.com/rstudio/shiny-server/wiki/…

标签: r ubuntu shiny shiny-server windows-subsystem-for-linux


【解决方案1】:

此功能自 2020 年 7 月起生效。无需从源代码构建。

wget https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.14.948-amd64.deb
sudo gdebi shiny-server-1.5.14.948-amd64.deb

【讨论】:

    猜你喜欢
    • 2019-01-17
    • 2023-01-03
    • 1970-01-01
    • 1970-01-01
    • 2019-11-17
    • 2020-06-07
    • 2021-08-10
    • 2020-09-09
    • 2019-01-09
    相关资源
    最近更新 更多