无法在 ubuntu 22.04 中安装 rstudio

无法在 ubuntu 22.04 中安装 rstudio

我是 Linux 和 ubuntu 的新手。我正在尝试在 ubuntu 22.04 LTS 上安装 Rstudio。

sudo apt-get install ./rstudio-latest-amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.19-10ubuntu2.1) but 2.35-0ubuntu3 is installed
             Depends: libc-dev-bin (= 2.19-10ubuntu2.1)
             Depends: linux-libc-dev but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)

apt --fix-broken install
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

如何降级 libc6-dev 的依赖项?

答案1

这可能是因为到目前为止还没有支持 Ubuntu 22.04 LTS 的稳定版本。请参阅 RStudio 社区的讨论:

https://community.rstudio.com/t/rstudio-ide-desktop-2022-02-0-443-not-working-on-ubuntu-22-04-lts-some-gui-issue/135876/4

显然,最新的每日构建版本至少在对选项进行一些调整后是有效的。我还没有亲自尝试过,但我打算尝试一下。我很想听听你的进展如何。

答案2

我遇到了同样的问题,可以通过使用 --no-sandbox 选项启动 rstudio 来解决这个问题。更好的消息是,最新的 rstudio 版本已经发布了 22.04 版的软件包。对我来说,这次升级解决了这个问题。

相关内容