New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing texlive packages fails after TeXLive 2021 release #293
Comments
Rather minimal example https://github.com/maelle/pdf-bookdown Compared to the starter book I added
Failure https://github.com/maelle/pdf-bookdown/runs/2252801821?check_suite_focus=true |
I noticed a similar failures in repos of mine whose GHA workflows used to work. |
yes indeed. Thanks for the heads up on this ! TeXLive 2021 was release yesterday - it every 1st April I think. We don't have a TinyTeX prebuilt binary available for this version yet, and @yihui it seems the release date is 1st april each year (it is already announced 1st April for TexLive 2022) . Maybe we could schedule a build of TinyTeX release each year on the 2nd in addition to our monthly build ? I believe we could have a build today - I let @yihui trigger one in https://github.com/yihui/tinytex-releases as he knows the infrastructure better. It seems it could be possible to also make a function to update a current tlmgr install in this case using |
Yes, this happens yearly, but the date may not be the same every year. I do check this problem in https://github.com/yihui/tinytex/blob/ab46c449edda4e1a3a49cdc3b239e454424703c4/R/tlmgr.R#L192 I don't know why it didn't work in @jeroen's case. In @maelle's case, which is an automated job, I need to think more about what to do, since the message won't be seen by a human until the error occurs. The most complicated thing is the CTAN mirrors--- |
I don't understand. It was my impression that the bundle that gets installed with I always set a CTAN mirror in my CI that I know to be reliable, but it is not clear to me how this could work now the mirror has texlive 2021, but the tinytex bundles still have texlive 2020? |
By default, the bundle is not from
Setting a fixed CTAN mirror at the time of packaging TinyTeX can make sure that we can always successfully build the TinyTeX package (on the daily basis), so I have done that. Previously, the daily build could fail because of the random mirrors, and that's exactly what happened this time.
Basically, it was too late for you to set the mirror. I have to do that when running the installation script For the record, I'm setting the illiniois.edu mirror (the same as your choice). Anyway, as I said, this problem should disappear in one day or two (or sometimes a couple of hours). If only we had a CTAN mirror that is guaranteed to have the latest version of TeX Live as soon as a new version is released, we wouldn't run into this problem. |
This problem seems indeed solved with the latest daily builds of tinytex.
Maybe not entirely. In practice there may be time in between when tinytex is installed, and when the latex file is rendered. In the case of r-universe, we install tinytex our docker image to build R packages. The docker image is only updated once in a while, hence the tinytex installation in there may be several weeks/months old. I guess I need to remember to rebuild this docker image every time a new version of texlive is released. |
I started getting the error message below when knitting a markdown file today. I ran
|
Public release for TeX Live 2022 was out yesterday. Unfortunately, like each year there is 1 to 2 day delay for new version to be available as mirrors will sync. |
@danielludolf We will see what we could do to reduce the breakage time. Unfortunately we can't completely fix this problem because we don't have any control on when CTAN mirrors update themselves after a new TeX Live release appears each year (usually in the beginning of April). |
Maybe looking at https://ctan.org/mirrors/mirmon could help find a recent enough mirror. |
Hi @yihui, thanks for the solutions posted so far. I encountered the same issue recently and I was wondering if there is any way of pointing the In my case, I cannot update tinytex very often (as of now I install the package with conda Thanks for your time! |
If you install the 2021.11 version of TinyTeX, you can probably freeze the TeX Live repository with tinytex::tlmgr_repo('https://texlive.info/tlnet-archive/2021/11/30/tlnet/') I haven't tried that before, and I'm not sure which date would be the best (I'm using Nov 30th as an example here). You can find all possible dates here: https://texlive.info/tlnet-archive/
Updating the R package tinytex on a regular basis shouldn't be necessary. It's fairly stable and I think you can almost treat it as feature-complete.
The R package shouldn't be a problem. I guess TinyTeX (the LaTeX distribution) is more likely to be the problem. I can't really tell you how likely, though. LaTeX is quite stable overall, but that doesn't mean the latest daily build is guaranteed to always work for your older projects. If you really desire for stability, I think you can just freeze TinyTeX using the method I mentioned above. |
…stall TinyTeX from the main CTAN repo, which should have the very latest version of TeX Live (this may help a little bit with #293)
I got this error from CRAN after submitting a package today. Given the "one day or two" comment I wonder if this is expected behavior. |
@pdbailey0 That's too little information for me to help (the full log will be more helpful). My guess is that CRAN's machines are probably using an older version of TeX Live. For TinyTeX users, all they need to do is |
Sir, I followed the latest version this repo but still getting the I see that |
Which dockerfile are you using ? Is using a newer version of TinyTeX or TeX Live something possible ? Currently it seems to be using an older version, which is no more suited with the repo.
This could help connect to an older repo. This is necessary if you can't update your TinyTeX installation. This is a R command so you need to type that in R or put it in a Rprofile for example. tlmgr options repository 'https://texlive.info/tlnet-archive/2021/11/30/tlnet/' if I would suggest to update TinyTeX in your docker environment though. |
Thanks for the reply, Sir. I made it to upgrade the texlive version. The problem that the current texlive version in toolkit repo is still outdated (2021) and needs to be updated manually. |
See there FAQ item about that: https://github.com/overleaf/toolkit/blob/master/doc/ce-upgrading-texlive.md#determining-your-current-tex-live-version It says:
I guess they will do it. But are you using tinytex in there ? Or is this a question about updating TeX Live ? I am not sure about the the R related question here. |
Sorry for the ambiguity. The official repo contains not full version of Tex live. Thus any attempt to install pkg with |
I don't understand what is the issue really. Overleaf repo contains a doc about this (https://github.com/overleaf/toolkit/blob/master/doc/ce-upgrading-texlive.md#determining-your-current-tex-live-version) linking to TeX Live page on how to use historic repo https://www.tug.org/texlive/acquire.html#past I still don't see how this is related with tinytex for which this github repository is about. And even if it is, you have the same solution using the R package above. You just need to put this configuration in the right place depending of your project, your code language and what you are doing. How do you expect us to help further ? |
Sorry about that. I am mentioning a problem of overleaf's official tex live configuration and it does not related to |
I understand now. I assume it was related to R 📦 tinytex as this is the github repo for it. You should definitely report to them to know when they will update their docker image or they improve their doc if it is not clear enought. |
This was working yesterday, but now it fails. I think TeXLive 2021 was released today?
@maelle
The text was updated successfully, but these errors were encountered: