简体   繁体   English

GnuTLS 错误 -50:无法从 Rstudio 中的 Github 安装软件包?

[英]GnuTLS Error -50: Cannot install packages from Github in Rstudio?

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:错误:无法从 GitHub 安装“未知包”:
Error -50 setting GnuTLS cipher list starting with +VERS-TLS1.3错误 -50 设置以 +VERS-TLS1.3 开头的 GnuTLS 密码列表

Then I wanted to work around the problem caused by devtools , so I tried githubinstall , but the error became this:然后我想解决由devtools引起的问题,所以我尝试了 githubinstall ,但是错误变成了这样:

Error in curl::curl_download(input, tmpFile, mode = "wb", quiet =:showProgress) : curl::curl_download(input, tmpFile, mode = "wb", quiet =:showProgress) 中的错误:
Error -50 setting GnuTLS cipher list starting with +VERS-TLS1.3错误 -50 设置以 +VERS-TLS1.3 开头的 GnuTLS 密码列表

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.很明显,这个问题是由GnuTLS引起的,我发现了一个类似的线程: git/jenkins TLS issue ,但我在那里找不到一些提示。

I also tried install_url , install_local , and install_git , but all failed.我也尝试了install_urlinstall_localinstall_git ,但都失败了。

Here is the information of the R I recently upgraded from 3.4.4(2018):这是我最近从 3.4.4(2018) 升级的 R 的信息:

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 .我一直坚持使用devtoolsinstall_github What can I try next?接下来我可以尝试什么?

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 .我在现有容器中使用 apt install 安装了 r-base 和 Rstudio,默认设置(默认 r 版本是 3.4.4)导致了我遇到的问题,然后我清除了 Z4B43B0AEE3new56324CD95B9101 Docker 容器跟随此博客: 运行 RStudio 服务器与 Docker

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM