Unable to download packages from Bioconductor
2
1
Entering edit mode
Aryan ▴ 10
@cc3ef01f
Last seen 2.4 years ago
United States
Warning: unable to access index for repository https://bioconductor.org/packages/3.15/bioc/bin/macosx/big-sur-arm64/contrib/4.2:
  cannot open URL 'https://bioconductor.org/packages/3.15/bioc/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES'

I get the above error when I try to install packages using BiocManager. I am not sure why it is happening. I am on a Mac M1 and my Rprofile is blank, if that matters. I am running R 4.2.0. I tried to change my CRAN Mirror (to "0"), but I haven't tried anything else. My entire code and error message is as follows:

  > BiocManager::install(c('BiocGenerics', 'DelayedArray', 'DelayedMatrixStats',
+                        'limma', 'lme4', 'S4Vectors', 'SingleCellExperiment',
+                        'SummarizedExperiment', 'batchelor', 'Matrix.utils',
+                        'HDF5Array', 'terra', 'ggrastr'))

'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details

replacement repositories:
    CRAN: http://cran.rstudio.com/

Bioconductor version 3.15 (BiocManager 1.30.18), R 4.2.0 (2022-04-22)
Installing package(s) 'BiocGenerics', 'DelayedArray', 'DelayedMatrixStats', 'S4Vectors',
  'SingleCellExperiment', 'SummarizedExperiment', 'batchelor', 'HDF5Array'
also installing the dependencies ‘XVector’, ‘IRanges’, ‘GenomicRanges’, ‘Biobase’, ‘GenomeInfoDb’, ‘BiocNeighbors’, ‘BiocSingular’, ‘scuttle’, ‘ResidualMatrix’, ‘ScaledMatrix’, ‘beachmat’, ‘rhdf5’, ‘rhdf5filters’

Warning: unable to access index for repository https://bioconductor.org/packages/3.15/bioc/bin/macosx/big-sur-arm64/contrib/4.2:
  cannot open URL 'https://bioconductor.org/packages/3.15/bioc/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES'
Warning: unable to access index for repository https://bioconductor.org/packages/3.15/data/annotation/bin/macosx/big-sur-arm64/contrib/4.2:
  cannot open URL 'https://bioconductor.org/packages/3.15/data/annotation/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES'
Warning: unable to access index for repository https://bioconductor.org/packages/3.15/data/experiment/bin/macosx/big-sur-arm64/contrib/4.2:
  cannot open URL 'https://bioconductor.org/packages/3.15/data/experiment/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES'
Warning: unable to access index for repository https://bioconductor.org/packages/3.15/workflows/bin/macosx/big-sur-arm64/contrib/4.2:
  cannot open URL 'https://bioconductor.org/packages/3.15/workflows/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES'
Warning: unable to access index for repository https://bioconductor.org/packages/3.15/books/bin/macosx/big-sur-arm64/contrib/4.2:
  cannot open URL 'https://bioconductor.org/packages/3.15/books/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES'
Packages which are only available in source form, and may need compilation of
  C/C++/Fortran: ‘XVector’ ‘IRanges’ ‘GenomicRanges’ ‘Biobase’ ‘BiocNeighbors’
  ‘BiocSingular’ ‘scuttle’ ‘beachmat’ ‘rhdf5’ ‘rhdf5filters’ ‘DelayedArray’ ‘S4Vectors’
  ‘batchelor’ ‘HDF5Array’
downloading-issue • 9.7k views
ADD COMMENT
1
Entering edit mode
@lluis-revilla-sancho
Last seen 11 days ago
European Union

I think the problems comes from Bioconductor not providing big-sur-arm64 binaries yet. You could install from source as BiocManager::install(c('BiocGenerics', 'DelayedArray', 'DelayedMatrixStats','limma', 'lme4', 'S4Vectors', 'SingleCellExperiment', 'SummarizedExperiment', 'batchelor', 'Matrix.utils', 'HDF5Array', 'terra', 'ggrastr'), type = "source").

ADD COMMENT
0
Entering edit mode

Yes! After much searching of the issue, using type = "source" worked for me! Thank you so so much!! You have saved me so much time my friend!! :)

I think you are right that Bioconductor not providing big-sur-arm64 binaries yet because I am using a Mac computer with an M1 chip and big-sur-arm64 and none of the other troubleshooting methods I tried solved the issue for me.

Thank you again!

ADD REPLY
0
Entering edit mode

Glad it helped! I think soon, this or next release, bioconductor will be able to provide binaries.

ADD REPLY
0
Entering edit mode

I have the same problem on Mac with an Apple M1 chip. Using type = "source" worked for me for only some of the packages above, such as 'BiocGenerics'. However, most others failed, such as 'DelayedArray', 'SingleCellExperiment', 'SummarizedExperiment'

I also tried to install other packages (Biobase, IRanges, GenomicRanges) in this way but failed. I think we have to wait until next Bioconductor release for the complete resolution of this problem. Currently, I am switching back to an Intel based Mac now.

ADD REPLY
0
Entering edit mode
a_d_ho • 0
@3a5f71d6
Last seen 10 months ago
Germany

I have the same problem after changing from a MAC-Mini to MAC-Studio with an M1 chip. Using "type = "source" in addition, however, has not been able to resolve the problem for me. The following warning came up:

Bioconductor version 3.15 (BiocManager 1.30.18), R 4.2.1 (2022-06-23) Installing package(s) 'Matrix.utils' Warnmeldungen: 1: package(s) not installed when version(s) same as current; use force = TRUE to re-install: 'BiocGenerics' 'DelayedArray' 'DelayedMatrixStats' 'limma' 'lme4' 'S4Vectors' 'SingleCellExperiment' 'SummarizedExperiment' 'batchelor' 'HDF5Array' 'terra' 'ggrastr' 2: package ‘Matrix.utils’ is not available for Bioconductor version '3.15'

ADD COMMENT
0
Entering edit mode

It is not clear if installing from source didn't work or not: a warning doesn't prevent you to install the packages. The error(?) about Matrix.utils is because it is/was removed from CRAN.

ADD REPLY

Login before adding your answer.

Traffic: 450 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6