交叉发布自https://community.rstudio.com/t/ubuntu-rstudio-server-upgrade-service-not-found/27621
我在一台 Ubuntu 16.04.6 LTS 电脑上安装了 Rstudio 服务器 v1.1.463,但尝试升级到 v1.2.1335-1 Preview 时出错了。现在我使用以下命令安装时没有出现任何错误
sudo gdebi rstudio-1.2.1335-amd64.deb
但该service
命令暗示该服务尚未安装。见下文。
gdebi 是否有详细模式,或者是否有某种方法可以帮助我从 .deb 文件中提取安装命令?
注意,在 12:44:24 出现错误后,我以 root 身份重新安装了 rJava。 $JAVA_HOME
未设置。
$ sudo service rstudio-server status
● rstudio-server.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
Apr 03 12:44:24 ip-172-31-90-126 systemd[1]: Stopping RStudio Server...
Apr 03 12:44:24 ip-172-31-90-126 systemd[1]: Stopped RStudio Server.
Apr 03 12:44:24 ip-172-31-90-126 rsession-rstudio[1524]: ERROR r error 4 (R code execution error) [errormsg=Error in .requirePackage(package) : ||| unable to find required package ‘rJava’|||]; OCCURRED AT: rstudio::core::Error rstudio::
Apr 03 12:44:24 ip-172-31-90-126 rsession-trustedcolleague[1777]: ERROR r error 4 (R code execution error) [errormsg=]; OCCURRED AT: rstudio::core::Error rstudio::r::exec::executeSafely(rstudio_boost::function<void()>) /home/ubuntu/rstud
Apr 03 12:44:43 ip-172-31-90-126 systemd[1]: Stopped RStudio Server.
$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
$ R
R version 3.5.3 (2019-03-11) -- "Great Truth"
> library("rJava")
>
答案1
呃。我曾尝试从rstudio-server-1.1.463-amd64.deb
服务器到rstudio-1.2.1335-amd64.deb
桌面应用程序。我现在正在运行 1.2 版服务器。