From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: R install.packages() fails: 'Peer certificate cannot be authenticated with given CA certificates' Date: Thu, 29 Sep 2016 19:09:13 -0400 Message-ID: <86fuoiwbfq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpkSp-0008D1-7l for help-guix@gnu.org; Thu, 29 Sep 2016 19:10:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpkSk-0000I7-Uh for help-guix@gnu.org; Thu, 29 Sep 2016 19:10:03 -0400 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:32896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpkSk-0000He-Os for help-guix@gnu.org; Thu, 29 Sep 2016 19:09:58 -0400 Received: by mail-qk0-x22f.google.com with SMTP id n189so19235921qke.0 for ; Thu, 29 Sep 2016 16:09:58 -0700 (PDT) Received: from g1 (c-73-167-118-254.hsd1.ma.comcast.net. [73.167.118.254]) by smtp.gmail.com with ESMTPSA id l22sm8184876qtl.34.2016.09.29.16.09.56 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Sep 2016 16:09:57 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org With GuixSD user config ... (use-package-modules base ; glibc-utf8-locales ssh ; mosh admin ; tree aspell ; aspell-dict-en mail ; notmuch mu isync statistics ; r emacs ; emacs-ess certs ; nss-certs ) (packages->manifest (list mosh tree aspell-dict-en ; because emacs doesn't find system install notmuch mu isync ; also building from git source but this gets run-time d= ependencies r emacs-ess r-devtools r-openssl r-stringr r-xml2 r-httr=20 ) ) ... if I try to install a CRAN package like this ... install.packages("pROC") ... it fails like this ... Warning: unable to access index for repository https://rweb.crmda.ku.edu/cr= an/src/contrib: cannot download all files Warning messages: 1: In download.file(url, destfile =3D f, quiet =3D TRUE) : URL 'https://cran.r-project.org/CRAN_mirrors.csv': status was 'Peer certi= ficate cannot be authenticated with given CA certificates' 2: package =E2=80=98pROC=E2=80=99 is not available (for R version 3.3.1)=20 But if I "defeat" HTTPS like this ... options(repos=3D c( CRAN =3D "http://cran.rstudio.com/" ) ) ... it works. I would prefer to use HTTPS, so here is the question: How do I get R to present the CA certificates? TIA - George Full R session log is shown below. *** R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-unknown-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > options(STERM=3D'iESS', str.dendrogram.last=3D"'", editor=3D'emacsclient'= , show.error.locations=3DTRUE) > sessionInfo() R version 3.3.1 (2016-06-21) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=3Den_US.utf8 LC_NUMERIC=3DC=20=20=20=20=20=20=20=20=20= =20=20=20=20 [3] LC_TIME=3Den_US.utf8 LC_COLLATE=3Den_US.utf8=20=20=20=20 [5] LC_MONETARY=3Den_US.utf8 LC_MESSAGES=3Den_US.utf8=20=20=20 [7] LC_PAPER=3Den_US.utf8 LC_NAME=3DC=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 [9] LC_ADDRESS=3DC LC_TELEPHONE=3DC=20=20=20=20=20=20=20=20= =20=20=20 [11] LC_MEASUREMENT=3Den_US.utf8 LC_IDENTIFICATION=3DC=20=20=20=20=20=20 attached base packages: [1] stats graphics grDevices utils datasets methods base=20=20= =20=20=20 > install.packages("pROC") Installing package into =E2=80=98/home/g1/R/x86_64-unknown-linux-gnu-librar= y/3.3=E2=80=99 (as =E2=80=98lib=E2=80=99 is unspecified) --- Please select a CRAN mirror for use in this session --- Warning: failed to download mirrors file (cannot download all files); using= local file '/gnu/store/7543j3zkn95i7ixlc9fdq9hj0zrk5yq8-r-3.3.1/lib/R/doc/= CRAN_mirrors.csv' HTTPS CRAN mirror=20 1: 0-Cloud [https] 2: Austria [https]=20=20=20=20=20=20=20= =20=20=20=20=20=20 3: Belgium (Ghent) [https] 4: Chile [https]=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 5: China (Beijing 4) [https] 6: Colombia (Cali) [https]=20=20=20=20=20 7: France (Lyon 1) [https] 8: France (Lyon 2) [https]=20=20=20=20=20 9: France (Paris 2) [https] 10: Germany (M=C3=BCnster) [https]=20=20= =20 11: Iceland [https] 12: Italy (Padua) [https]=20=20=20=20=20= =20=20 13: Japan (Tokyo) [https] 14: Mexico (Mexico City) [https] 15: New Zealand [https] 16: Russia (Moscow) [https]=20=20=20=20=20 17: Spain (A Coru=C3=B1a) [https] 18: Spain (Madrid) [https]=20=20=20= =20=20=20 19: Switzerland [https] 20: UK (Bristol) [https]=20=20=20=20=20= =20=20=20 21: UK (Cambridge) [https] 22: USA (CA 1) [https]=20=20=20=20=20=20= =20=20=20=20 23: USA (KS) [https] 24: USA (MI 1) [https]=20=20=20=20=20=20= =20=20=20=20 25: USA (TN) [https] 26: USA (TX) [https]=20=20=20=20=20=20=20= =20=20=20=20=20 27: USA (WA) [https] 28: (HTTP mirrors)=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 Selection: 23 Warning: unable to access index for repository https://rweb.crmda.ku.edu/cr= an/src/contrib: cannot download all files Warning messages: 1: In download.file(url, destfile =3D f, quiet =3D TRUE) : URL 'https://cran.r-project.org/CRAN_mirrors.csv': status was 'Peer certi= ficate cannot be authenticated with given CA certificates' 2: package =E2=80=98pROC=E2=80=99 is not available (for R version 3.3.1)=20 > q("no") Process R finished at Thu Sep 29 19:07:12 2016 ***