安装 R 包 fgsea:download.file 中的错误

Install R package fgsea: Error in download.file

我想安装 R 包。每次出来:

> Error in download.file(url, destfile, method, mode = "wb", ...)

我不知道,有什么建议吗?

> BiocManager::install("fgsea")
'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details

replacement repositories:
    CRAN: https://cloud.r-project.org

Bioconductor version 3.6 (BiocManager 1.30.15), R 3.4.4 (2018-03-15)
Installing package(s) 'BiocVersion', 'fgsea'
also installing the dependencies ‘formatR’, ‘lambda.r’, ‘futile.options’, ‘futile.logger’, ‘snow’, ‘BiocParallel’

Error in download.file(url, destfile, method, mode = "wb", ...) 


> sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.1 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale:
 [1] LC_CTYPE=zh_CN.UTF-8       LC_NUMERIC=C               LC_TIME=zh_CN.UTF-8        LC_COLLATE=zh_CN.UTF-8    
 [5] LC_MONETARY=zh_CN.UTF-8    LC_MESSAGES=zh_CN.UTF-8    LC_PAPER=zh_CN.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

在我国打开stack overflow非常困难。我试图在命令中提供正确答案,但我无法打开它。

所以正确答案是:

sudo gedit /etc/apt/sources.list

更改Ubuntu20.04.1

对应的“focal”

sudo apt-get update sudo apt-get upgrade

所以正确答案是:

sudo gedit /etc/apt/sources.list

更改Ubuntu20.04.1

对应的“focal”

sudo apt-get update

sudo apt-get upgrade