AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1404233
Accepted
Gigiux
Gigiux
Asked: 2022-04-25 03:07:39 +0800 CST2022-04-25 03:07:39 +0800 CST 2022-04-25 03:07:39 +0800 CST

如何在 Ubuntu 22.04 中解决 Rstudio 的库依赖问题

  • 772

我刚刚安装了 ubuntu 22.04。我可以安装 R sudo apt -y install r-base gdebi-core:

$ R

R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

但是当我尝试从下载的文件中安装 Rstudio 时,我得到:

$ sudo gdebi rstudio-2022.02.1-461-amd64.deb 
[sudo] password for gigiux: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libssl1.0.0|libssl1.0.2|libssl1.1

一个流行的 deb 文件缺少一个基本库是很奇怪的,另外:

$ sudo apt install libssl1.1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libssl1.1
E: Couldn't find any package by glob 'libssl1.1'

在 Ubuntu 22.04 上安装 R 和 R studio 的正确程序是什么?

libraries
  • 4 4 个回答
  • 1590 Views

4 个回答

  • Voted
  1. Thiago Albuquerque
    2022-04-29T08:37:04+08:002022-04-29T08:37:04+08:00

    我尝试了一些似乎有效的方法。我编辑了 RStudio 的桌面条目文件,并将 --no-sandbox 选项标志添加到 Exec 行。当我单击 RStudio 应用程序图标(无论是桌面图标还是收藏夹栏中的启动器图标)时,执行此自动更改的命令。

    因此,首先转到文件夹 /usr/share/applications。在那里您会找到一个名为 rstudio.desktop 的文件。使用文本编辑器打开此文件。内容大概是这样的:

    [Desktop Entry]
    Exec=/usr/lib/rstudio/bin/rstudio %F
    Icon=rstudio
    Type=Application
    Terminal=false
    Name=RStudio
    Categories=Development;IDE;
    MimeType=text/x-r-source;text/x-r;text/x-R;text/x-r-doc;text/x-r-sweave;text/x-quarto-markdown;text/x-r-markdown;text/x-r-html;text/x-r-presentation;application/x-r-data;application/x-r-project;application/x-rdp-rsp;text/x-r-history;text/x-r-profile;text/x-tex;text/x-markdown;text/css;text/javascript;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;
    

    现在,您所要做的就是将标志 --no-sandbox 添加到 Exec 行,就在 %F 之前,如下所示:

    [Desktop Entry]
    Exec=/usr/lib/rstudio/bin/rstudio --no-sandbox %F
    Icon=rstudio
    Type=Application
    Terminal=false
    Name=RStudio
    Categories=Development;IDE;
    MimeType=text/x-r-source;text/x-r;text/x-R;text/x-r-doc;text/x-r-sweave;text/x-quarto-markdown;text/x-r-markdown;text/x-r-html;text/x-r-presentation;application/x-r-data;application/x-r-project;application/x-rdp-rsp;text/x-r-history;text/x-r-profile;text/x-tex;text/x-markdown;text/css;text/javascript;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;
    

    进展如何?

    • 2
  2. Best Answer
    scottkosty
    2022-04-30T07:25:21+08:002022-04-30T07:25:21+08:00

    RStudio 目前正在准备修复该问题的版本。你可以下载他们的日常deb,它不是发布版本,但我测试了它,它运行良好:

    https://dailies.rstudio.com/rstudio/spotted-wakerobin/desktop/jammy/

    这是链接到上述 URL 的 RStudio 帖子(由 RStudio 员工撰写):

    https://community.rstudio.com/t/dependency-error-when-installing-rstudio-on-ubuntu-22-04-with-libssl/135397/4

    我希望所有后续的日报都能正常运行,但为了完整起见,我在 Ubuntu 22.04 上测试的运行良好的确切日报是“rstudio-2022.06.0-daily-341-amd64.deb”。

    • 2
  3. drsisu
    2022-04-25T23:47:08+08:002022-04-25T23:47:08+08:00

    我在搜索互联网后尝试了这些代码,我发现这些代码有效

    wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb
    sudo gdebi ./libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb
    sudo gdebi rstudio-2022.02.1-461-amd64.deb
    

    -accept 'y' 用于安装依赖项并触发带有 --no-sandbox 标记的 rstudio

    rstudio --no-sandbox
    

    这成功地为我工作

    • 1
  4. drsisu
    2022-05-03T23:15:38+08:002022-05-03T23:15:38+08:00

    看起来上面的链接在某些情况下可能有效,但我们需要等待 RStudio 团队进一步修复和开发完全工作的 RStudio。

    RStudio 每日 deb链接

    在此之前rstudio --no-sandbox是启动应用程序的更好选择

    @Thiago Albuquerque,--no-sandbox由于权限问题,在 RStudio 执行程序“Exec=/usr/lib/rstudio/bin/rstudio %F”中的“%F”之前添加要求检查保存位置,因此无法在编辑时保存。如果可能,请为此提供解决方案,因为此策略可以绕过每次通过命令行手动执行。

    • 0

相关问题

  • 如何在系统范围内安装 Java 库,例如 jMonkey Engine?

  • 缺少 libgdk_pixbuf-2.0.la 我该怎么办?

  • libunrar.so 未找到

  • 将库从 Windows 7 转移到 Wine

  • 将 glibc 升级到 2.2 是否安全?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve