I am trying to install TinyTeX in R (v 3.6.3) but am getting a persistent error about expired certificates (see below). A similar error is raised here: tinytex certificate is out of date?, the solution being changing the repository argument in install_tinytex(). I've tried this ( e.g., tinytex::install_tinytex(repository = 'http://mirror.aut.ac.nz/CTAN/')) with no luck - I still get the same error.
Any ideas on how to try and fix this would be so greatly appreciated!
tinytex::install_tinytex()
trying URL 'https://yihui.org/tinytex/TinyTeX-1.tgz'
trying URL 'https://yihui.org/tinytex/TinyTeX-1.tgz'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
HTTPS-proxy has similar options --proxy-cacert and --proxy-insecure.
Error in download.file(url, output, ..., method = method) :
'curl' call had nonzero exit status
In addition: Warning messages:
1: In download.file(url, output, ..., method = method) :
URL 'https://yihui.org/tinytex/TinyTeX-1.tgz': status was 'Peer certificate cannot be authenticated with given CA certificates'
2: In download.file(url, output, ..., method = method) :
URL 'https://yihui.org/tinytex/TinyTeX-1.tgz': status was 'Peer certificate cannot be authenticated with given CA certificates'
But then (after restarting R studio) knitting a pdf document fails:
/usr/local/bin/tlmgr: TLPDB::from_file could not initialize from: https://mirror.ctan.org/systems/texlive/tlnet/tlpkg/texlive.tlpdb
/usr/local/bin/tlmgr: Maybe the repository setting should be changed.
/usr/local/bin/tlmgr: More info: https://tug.org/texlive/acquire.html
! LaTeX Error: File `lineno.sty' not found.
! Emergency stop.
<read *>
Not sure if this is the same issue - or a seperate one caused by me frantically trying to fix the first one...
I have the same problem. Suddenly I can not knit to pdfs, although it worked perfectly. I test run it on files which compiled before. I am getting the following error message: