R 无法在 Ubuntu 22.04 上运行

R 无法在 Ubuntu 22.04 上运行

我在新的 Ubuntu 22.04 安装(使用 ZFS 文件系统)上安装了 R 4.2.1。安装过程没有出现错误,我可以确认 R 确实已安装,输出R --version以下内容:

R version 4.2.1 (2022-06-23) -- "Funny-Looking Kid"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.

但是,当我尝试从终端(例如user@computer:~$ R)执行 R 时,什么也没有发生。如果我尝试执行,R --verbose则会输出以下文本,但 R 仍然无法启动:

'verbose' and 'quietly' are both true; being verbose then ..
now dyn.load("/usr/lib/R/library/methods/libs/methods.so") ...

也尝试过但失败了:

  • sudo R
  • sudo -i R
  • Rscript test.R其中 test.R 包含print("Hello, World!")

关于故障排除还有其他建议吗?

答案1

@Brigadeiro

我最近也遇到了问题。我的 Google Chrome 无法加载(它会显示处于加载状态的新标签页,但永远不会加载),并且我的 R 无法运行(反过来,Rstudio 也无法运行)。

我听从了您的建议,卸载了 Citrix Receiver,这样就解决了这两个问题。我推测这些错误和 Citrix Receiver 之间存在某种联系。我之前曾尝试卸载并重新安装 R 和 Chrome,但加载失败的问题没有得到改善。

相关内容