GnuTLS 错误 -50:无法在 Rstudio 中安装来自 Github 的软件包?
以下几行提示错误(与这个问题不同):
library(devtools)
install_github("StatsWithR/statsr") # the same for any other open repos
错误是这样的:
错误:无法从 GitHub 安装“未知包”:
错误 -50 设置以 +VERS-TLS1.3 开头的 GnuTLS 密码列表
然后我想解决由 devtools
引起的问题,所以我尝试了 githubinstall,但错误变成了这样:
curl::curl_download(input, tmpFile, mode = "wb", Quiet = !showProgress) 中出现错误:
错误 -50 设置以 +VERS-TLS1.3 开头的 GnuTLS 密码列表
显然,该问题是由 GnuTLS
引起的,我发现了一个类似的线程:git/jenkins TLS 问题,但我在那里找不到一些提示。
我还尝试了 install_url
、install_local
和 install_git
,但都失败了。
以下是最近从 3.4.4(2018) 升级的 RI 的信息:
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 1.2
year 2021
month 11
day 01
svn rev 81115
language R
version.string R version 4.1.2 (2021-11-01)
nickname Bird Hippie
我一直被 devtools
和 install_github
困住了。接下来我可以尝试什么?
The following lines prompt an error (which differs from this question):
library(devtools)
install_github("StatsWithR/statsr") # the same for any other open repos
The error is this:
Error: Failed to install 'unknown package' from GitHub:
Error -50 setting GnuTLS cipher list starting with +VERS-TLS1.3
Then I wanted to work around the problem caused by devtools
, so I tried githubinstall, but the error became this:
Error in curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress) :
Error -50 setting GnuTLS cipher list starting with +VERS-TLS1.3
It seems obvious that the issue is caused by GnuTLS
and I found a similar thread: git/jenkins TLS issue, but I cannot find some hints there.
I also tried install_url
, install_local
, and install_git
, but all failed.
Here is the information of the R I recently upgraded from 3.4.4(2018):
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 1.2
year 2021
month 11
day 01
svn rev 81115
language R
version.string R version 4.1.2 (2021-11-01)
nickname Bird Hippie
I have been stuck with devtools
and install_github
. What can I try next?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在现有容器中使用 apt install 安装了 r-base 和 Rstudio,默认设置(默认 r 版本是 3.4.4)导致了我遇到的问题,然后我清除了 r 环境并在新环境中创建了一个新环境Docker 容器关注此博客: 使用 Docker 运行 RStudio Server。
I installed the r-base and Rstudio using apt install in an existing container, and the default settings(the default r version is 3.4.4) caused the issues I met, then I purged the r environment and created a new one in a new Docker container following this blog: Running RStudio Server with Docker.