Problem with the SSL CA cert

I'm running RStudio Version 1.4.1717 on latest 64Bit Ubuntu Desktop and since yesterday, I cannot install packages or change repositories.
If I change repository, I get

> getOption("repos")
                         CRAN 
"https://cloud.r-project.org" 
> getOption("repos")
                         CRAN 
"https://cloud.r-project.org" 
Warning message:
In download.file(mirrors_csv_url, destfile = mirrors_csv, quiet = TRUE) :
  URL 'https://cran.r-project.org/CRAN_mirrors.csv': status was 'Problem with the SSL CA cert (path? access rights?)'

Installing a package, I get

> install.packages('rJava')
Warning in install.packages :
  unable to access index for repository https://cloud.r-project.org/src/contrib:
  cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Installing package into ‘/home/llist/R/x86_64-pc-linux-gnu-library/4.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to access index for repository https://cloud.r-project.org/src/contrib:
  cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Warning in install.packages :
  package ‘rJava’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

This happens for any package

Set the cran repo to rstudio mirror

chooseCRANMirror() gives this

Selection: 4
Warning message:
In download.file(url, destfile = f, quiet = TRUE) :
  URL 'https://cran.r-project.org/CRAN_mirrors.csv': status was 'Problem with the SSL CA cert (path? access rights?)'

Sorry. I meant to change the repo back to the default,

which is https://cran.rstudio.com/

or you can select another from the drop down or try unchecking the https option (temporarily!)

Done

st1

Restarting R session...

> getOption("repos")
                         CRAN 
"https://cloud.r-project.org" 
> install.packages('rJava')
Warning in install.packages :
  unable to access index for repository https://cloud.r-project.org/src/contrib:
  cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Installing package into ‘/home/llist/R/x86_64-pc-linux-gnu-library/4.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to access index for repository https://cloud.r-project.org/src/contrib:
  cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Warning in install.packages :
  package ‘rJava’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

Looks like CRAN is still not reading from the RStudio mirror. Don’t know why the SSL problem went away. Path of least resistance might be a fresh install of RStudio. I’ve had no problem like this under Ubuntu 20.10

Just did a successful install with my config

Turned out to be not an RStudio issue at all as I found out when I tried to install an Ubuntu package, which failed due to "No system certificates available".

running the following fixed all certificate issues

sudo apt-get install --reinstall ca-certificates
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.