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
    • 最新
    • 标签
主页 / user-1150653

nico_so's questions

Martin Hope
nico_so
Asked: 2021-06-29 15:09:31 +0800 CST

在 Lubuntu 20.04 中安装 R 和 RStudio

  • 2

我想用 Rstudio 安装 R 开始学习,但是我发现了很多问题,我会在下面尽可能多地解释。

所以我去了 CRAN 项目网站https://cran.r-project.org/并按照他们的说明在我的笔记本电脑上安装 R。

# update indices
apt update -qq
# install two helper packages we need
apt install --no-install-recommends software-properties-common dirmngr
# import the signing key (by Michael Rutter) for these repo
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed
add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"

apt install --no-install-recommends r-base

之后,我去 RStudio 网页并下载rstudio-server-1.4.1717-amd64.deb. 首先,我尝试使用 GUI 安装它,但出现以下消息:

GPG 错误:https ://cloud.r-project.org/bin/linux/ubuntu focus-cran40/ InRelease:无法验证以下签名,因为公钥不可用:NO_PUBKEY 51716619E084DAB9

存储库“https://cloud.r-project.org/bin/linux/ubuntu focus-cran40/InRelease”未签名。

从这样的存储库更新不能安全地完成,因此默认情况下被禁用。

有关存储库创建和用户配置的详细信息,请参见 apt-secure(8) 手册页。

然后我尝试安装它sudo apt install ./rstudio-server-1.4.1717-amd64.deb并发生以下情况:

Note, selecting 'rstudio' instead of './rstudio-1.4.1717-amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 rstudio : Depends: libclang-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

最后,当我发现许多使用 gdebi 安装的教程时,我又试了一次:

gdebi rstudio-1.4.1717-amd64.deb 

产生:

Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
This package is uninstallable
Cannot install 'libclang-dev'

所以显然 libclang-dev 发生了一些事情,我尝试安装它:

sudo apt install libclang-dev

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libclang-dev : Depends: libclang-10-dev (>= 10~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

所以我尝试安装 libclang-10-dev 但它让我遇到了另一个类似于此处显示的依赖问题。我认为手动完成这一连串问题不会很快结束。

我能给你的最后一条信息:

当我运行rstudio它说command not found。

现在,当我这样做时,apt update我会收到与上面相同的消息,以“GPG”开头

我可以提供的最后一条信息是,当我R在命令行中运行时,我可以从那里使用 R 语言。

如果你碰巧知道我能做些什么来解决这个问题,我将不胜感激。

software-installation
  • 1 个回答
  • 875 Views
Martin Hope
nico_so
Asked: 2020-12-14 09:48:57 +0800 CST

如何在 Lubuntu 20.04 上安装 glibc 和 glibcxx

  • 2

我想安装GLIBC和GLIBCXX,因为它们被称为“附加要求”来安装 Visual Studio Code。

如标题所述,我使用的是 Lubuntu 20.04

当搜索它时,我没有找到任何清楚的东西。一般来说,当我搜索如何安装某些东西时,答案是sudo apt-get install package-name,但在这种情况下不是。我读过它可能是一个非常明智的安装,如果没有正确安装会造成很多麻烦。

那么,安装这两个包的正确方法是什么?

非常感谢您提前。

lubuntu glibc visual-studio-code
  • 1 个回答
  • 10056 Views

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