我无法在rstudio中安装rvest包。

问题描述 投票:1回答:1

所以我想在我的rstudio中安装rvest包,但无法安装,因为它说要先在我的系统上安装一些包,我用了这个-->

sudo apt-get install libssl-dev

这得到了执行,但在这之后,错误也是 -->

 ------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
 * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
 * rpm: libcurl-devel (Fedora, CentOS, RHEL)
 * csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------

------------------------- ANTICONF ERROR ---------------------------
Configuration failed because openssl was not found. Try installing:
 * deb: libssl-dev (Debian, Ubuntu, etc)
 * rpm: openssl-devel (Fedora, CentOS, RHEL)
 * csw: libssl_dev (Solaris)
 * brew: [email protected] (Mac OSX)
If openssl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a openssl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------

所以我试着安装,然后使用--&gt。

sudo apt-get install libcurl4-openssl-dev 
sudo apt-get install libssl-dev 

但这些都没有用,错误是 -->

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  libcurl4-doc libidn11-dev libkrb5-dev libldap2-dev librtmp-dev libssh2-1-dev libssl-dev
The following NEW packages will be installed:
  libcurl4-openssl-dev
0 upgraded, 1 newly installed, 0 to remove and 31 not upgraded.
Need to get 318 kB of archives.
After this operation, 1,508 kB of additional disk space will be used.
Ign:1 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 libcurl4-openssl-dev amd64 7.64.0-2ubuntu1.2
Err:1 http://security.ubuntu.com/ubuntu disco-updates/main amd64 libcurl4-openssl-dev amd64 7.64.0-2ubuntu1.2
  404  Not Found [IP: 2403:8940:ffff::f 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl4-openssl-dev_7.64.0-2ubuntu1.2_amd64.deb  404  Not Found [IP: 2403:8940:ffff::f 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

然后我也试着用这两个方法--&gt。

sudo apt-get update
sudo apt-get install libcurl4-openssl-dev --fix-missing

如何解决这个问题?

r ubuntu rvest rstudio-server ubuntu-19.04
1个回答
1
投票

你只是有一个网络问题。它未能连接到security,ubuntu.com。

也不是说一些关键的包 已经在发行版中 就这样

sudo apt install r-cran-rvest

我在19.10上可以使用,你在19.04上也可以使用(你应该升级)。

© www.soinside.com 2019 - 2024. All rights reserved.