在 Ubuntu 22.04 上安装 R Studio



我安装了Ubuntu 22.04和R。现在我正在尝试安装 R Studio。

下载后,我尝试安装

sudo gdebi rstudio-2022.02.1-461-amd64.deb

但是我收到了消息

Dependency is not satisfiable: libssl1.0.0|libssl1.0.2|libssl1.1

有什么办法可以解决它吗?

所以我对"依赖不满足"有同样的问题,

您可以使用最后的每日更新更新 Rstudio https://dailies.rstudio.com/

编辑#1:我已经通过转到 https://packages.debian.org/bullseye/amd64/libssl1.1/download 并从那里安装"libssl1.1"解决了依赖问题。不幸的是,我遇到了另一个问题;一旦我解决了它,或者如果我放弃尝试解决它,我会发布另一个编辑。

编辑#2:我已经通过运行rstudio --no-sandbox打开RStudio解决了上述问题。

我最初的答案:

这不是解决方案,但我有同样的问题。我也缺少"libclang-dev"和"libpq5",但我能够通过sudo apt install获得它们。但是,我无法获得"libssl1.1":

Package libssl1.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libssl1.1' has no installation candidate

我也尝试了"libssl1.0.2"和"libssl1.0.0",但得到了相同的结果。在做了一些研究并尝试了不同的东西后,我发现我有"libssl3";我怀疑拥有最新版本的"libssl"与该问题有关,但我不是这方面的专家,就我所知,这可能只是一个愚蠢的猜测。

另外,当我运行sudo apt install -f ./rstudio-2022.02.1-461-amd64.deb时,我得到:

The following packages have unmet dependencies.
rstudio : Depends: libssl1.0.0 but it is not installable or
libssl1.0.2 but it is not installable or
libssl1.1 but it is not installable
E: Unable to correct problems, you have held broken packages.

我最初运行sudo dpkg -i rstudio-2022.02.1-461-amd64.deb,之后我必须运行sudo apt --fix-broken install;在那之后,我尝试并成功安装了另外两个缺少的软件包。是的,我基本上不知道我在做什么,我只是尝试通过反复试验来解决这些技术问题,尽管我几乎从未像现在这样难倒过。

显然,我没有足够好的声誉来发表评论,所以发布一个"答案"。 我已经在 22.04 上安装了 RStudio 没有问题(好吧,并非没有问题 - 我必须添加一些启动参数才能使其在 Wayland 上正确加载)。 以下是 APT 报告可供我使用的内容:

$ apt-cache search libssl | grep libssl1
libssl1.1 - Secure Sockets Layer toolkit - shared libraries

而且似乎安装正常:

$ dpkg -s libssl1.1
Package: libssl1.1
Status: install ok installed
Priority: important
Section: libs
Installed-Size: 4057
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Multi-Arch: same
Source: openssl
Version: 1.1.1l-1ubuntu1.2
Depends: libc6 (>= 2.34), debconf (>= 0.5) | debconf-2.0
Breaks: isync (<< 1.3.0-2), lighttpd (<< 1.4.49-2), python-boto (<< 2.44.0-1.1), python-httplib2 (<< 0.11.3-1), python-imaplib2 (<< 2.57-5), python3-boto (<< 2.44.0-1.1), python3-imaplib2 (<< 2.57-5)
Description: Secure Sockets Layer toolkit - shared libraries
This package is part of the OpenSSL project's implementation of the SSL
and TLS cryptographic protocols for secure communication over the
Internet.
.
It provides the libssl and libcrypto shared libraries.
Homepage: https://www.openssl.org/
Original-Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>

您是否能够确认您列出了相同的候选包? 也许您的 APT 源没有正确更新? 以下是我的/etc/apt/sources.list文件中当前的内容:

deb http://nz.archive.ubuntu.com/ubuntu/ jammy main restricted                                      
deb http://nz.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
deb http://nz.archive.ubuntu.com/ubuntu/ jammy universe
deb http://nz.archive.ubuntu.com/ubuntu/ jammy-updates universe
deb http://nz.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://nz.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
deb http://nz.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse

如果您的相同,也许您在/etc/apt/sources.list.d中有一些东西应该在升级时被禁用而没有?

自 4 月 27 日以来,该问题已经在每日代码中得到解决。之后每天安装任何,它可以工作。目前还没有关于何时发布稳定版本的消息。

缺少的库现在可以从libssl1.1_1.1.1l-1ubuntu1.3_amd64.deb安装,现在可以在 https://ubuntu.pkgs.org/21.10/ubuntu-updtes-main-amd64/上找到。

我已经使用 Arronax 在命令行中添加--no-sandboxrstudio.desktop中,代替不起作用的--disable-seccomp-filter-sandbox

Rstudio 的稳定版本仅在 22 年 6 月 3 日之后支持 Ubuntu 22。因此,安装以前的版本可能会导致问题。

快速回答:要安装所需的软件包libssl1.0.0|libssl1.0.2|libssl1.1,我使用了命令apt install libssl-dev,我也尝试了sudo apt --fix-broken install

这个答案对我有用,而且非常简单:https://askubuntu.com/a/1403683

echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee -a /etc/apt/sources.list.d/focal-security.list
sudo apt-get update
sudo apt-get install libssl1.1

尝试了很多之后,我用了 WGET https://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb11u5_amd64.deb

我得到的结果是: 2023-09-21 10:01:31 (4,11 MB/秒) - 'libssl1.1_1.1.1n-0+deb11u5_amd64.deb.1' 已保存 [1558508/1558508]

然后 sudo dpkg -i ./libssl1.1_1.1.1n-0+deb11u5_amd64.deb.1

最后: sudo apt install -f ./rstudio-2023.06.1-524-amd64.deb 它有效

最新更新