Skip to content
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

Remote database seems to be older than the local installation #450

Closed
lorenzoFabbri opened this issue Oct 9, 2024 · 2 comments
Closed

Comments

@lorenzoFabbri
Copy link

I am having some issues with tinytex.

> xfun::session_info('tinytex')
R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin20
Running under: macOS 15.0.1, RStudio 2024.11.0.258

Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8

Package version:
  graphics_4.4.1  grDevices_4.4.1 stats_4.4.1     tinytex_0.53    tools_4.4.1     utils_4.4.1    
  xfun_0.48      

LaTeX version used: 
  TeX Live 2024 (TinyTeX) with tlmgr 2024-05-24

I tried to render a Quarto document to PDF and it started complaining about some missing packages. I installed them but during the installation process I started getting the following message:

tlmgr: Remote database (revision 72385 of the texlive-scripts package)
seems to be older than the local installation (rev 72475 of
texlive-scripts); please use a different mirror and/or wait a day or two.

I uninstalled the package and then did:

> tinytex::install_tinytex()
trying URL 'https://yihui.org/tinytex/TinyTeX-1.tgz'
Content type 'application/octet-stream' length 88783520 bytes (84.7 MB)
==================================================
downloaded 84.7 MB

tlmgr --repository http://www.preining.info/tlgpg/ install tlgpg
tlmgr: package repository http://www.preining.info/tlgpg/ (not verified: gpg unavailable)
[1/2, ??:??/??:??] install: tlgpg.universal-darwin [752k]
[2/2, 00:01/00:01] install: tlgpg [1k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /Users/lorenzo/Library/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr: command log updated: /Users/lorenzo/Library/TinyTeX/texmf-var/web2c/tlmgr-commands.log
tlmgr option repository 'https://osl.ugr.es/CTAN/systems/texlive/tlnet'
tlmgr: setting default package repository to https://osl.ugr.es/CTAN/systems/texlive/tlnet
tlmgr: updating /Users/lorenzo/Library/TinyTeX/tlpkg/texlive.tlpdb
tlmgr update --list

tlmgr: Remote database (revision 72385 of the texlive-scripts package)
seems to be older than the local installation (rev 72475 of
texlive-scripts); please use a different mirror and/or wait a day or two.

tlmgr option repository ctan
tlmgr: setting default package repository to https://mirror.ctan.org/systems/texlive/tlnet
tlmgr: updating /Users/lorenzo/Library/TinyTeX/tlpkg/texlive.tlpdb
Warning message:
In tinytex::install_tinytex() :
  The repository https://osl.ugr.es/CTAN/systems/texlive/tlnet/ does not seem to be accessible. Reverting to the default CTAN mirror.

I am not sure how to proceed.


By filing an issue to this repo, I promise that

  • [ X] I have fully read the issue guide at https://yihui.org/issue/.
  • [ X] I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('tinytex'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/tinytex').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • [ X] I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

@yihui
Copy link
Member

yihui commented Oct 9, 2024

The message said:

please use a different mirror and/or wait a day or two.

You don't need to reinstall TinyTeX, but follow the suggestion to use a different mirror (or wait), which you can do with the function tinytex::tlmgr_repo(). It will tell you which mirror you are using right now. To switch to another one, find the URL at https://ctan.org/mirrors/ (use an https one), and pass it to the function.

yihui added a commit that referenced this issue Oct 9, 2024
…the link https://ctan.org/mirrors/mirmon appears to be broken at the moment, so scrape from https://ctan.org/mirrors/ instead

this was written for #450
@yihui
Copy link
Member

yihui commented Oct 9, 2024

I just rewrote the internal function tinytex:::ctan_mirrors(), which returns the mirror information at https://ctan.org/mirrors/.

remotes::install_github('rstudio/tinytex')
install.packages('litedown', repos = 'https://yihui.r-universe.dev')

Restart R, and:

xfun::html_view(litedown::fuse(
  c('---', 'title: All CTAN Mirrors', '---', '```{r}', 'I(xfun:::ctan_mirrors())', '```')
))

It will show you a table of mirrors like this:

Continent Country/Region City URL
Africa South Africa Bloemfontein, Free State https://mirror.ufs.ac.za/ctan/
Africa South Africa https://za.mirrors.cicku.me/ctan/
Africa Morocco Rabat https://mirror.marwan.ma/ctan/
Asia China Beijing https://mirror.bjtu.edu.cn/CTAN/
Asia China Nanyang, Henan https://mirror.nyist.edu.cn/CTAN/
Asia China Hangzhou, Zhejiang https://mirrors.aliyun.com/CTAN/
Asia China Beijing https://mirrors.bfsu.edu.cn/CTAN/
Asia China Shenzhen, Guangdong https://mirrors.cloud.tencent.com/CTAN/
Asia China Chongqing, Southwest https://mirrors.cqu.edu.cn/CTAN/
Asia China Wuhan, Hubei https://mirrors.hust.edu.cn/CTAN/
Asia China Changchun, Jilin https://mirrors.jlu.edu.cn/CTAN/
Asia China Nanjing, Jiangsu https://mirrors.nju.edu.cn/CTAN/
Asia China Beijing https://mirrors.pku.edu.cn/ctan/
Asia China Shanghai https://mirrors.sjtug.sjtu.edu.cn/ctan/
Asia China Shenzhen, Guangdong https://mirrors.sustech.edu.cn/CTAN/
Asia China Beijing https://mirrors.tuna.tsinghua.edu.cn/CTAN/
Asia China Hefei, Anhui https://mirrors.ustc.edu.cn/CTAN/
Asia Korea Daejeon https://ftp.kaist.ac.kr/tex-archive/
Asia Korea https://kr.mirrors.cicku.me/ctan/
Asia Korea https://lab.uklee.pe.kr/tex-archive/
Asia Korea https://mirror.kakao.com/CTAN/
Asia Korea Chuncheon https://mirror.navercorp.com/CTAN/
Asia Hong Kong https://mirror-hk.koddos.net/CTAN/
Asia India https://in.mirrors.cicku.me/ctan/
Asia India Bhubaneswar, Odisha https://mirror.niser.ac.in/ctan/
Asia India Mumbai https://2.mirrors.in.sahilister.net/ctan/
Asia Indonesia Bandung, West Java https://mirror.unpad.ac.id/ctan/
Asia Japan Nomi, Ishikawa https://ftp.jaist.ac.jp/pub/CTAN/
Asia Japan Saitama https://ftp.kddilabs.jp/CTAN/
Asia Japan Yonezawa, Yamagata https://ftp.yz.yamagata-u.ac.jp/pub/CTAN/
Asia Japan https://jp.mirrors.cicku.me/ctan/
Asia Singapore https://sg.mirrors.cicku.me/ctan/
Asia Taiwan Taipei City https://ctan.mirror.twds.com.tw/tex-archive/
Asia Taiwan https://tw.mirrors.cicku.me/ctan/
Asia Saudi Arabia https://sa.mirrors.cicku.me/ctan/
Asia Iran Yazd https://ctan.yazd.ac.ir/
Asia Thailand Khon Kaen, Nai-Muang https://mirror.kku.ac.th/CTAN/
Europe Belarus Minsk https://mirror.datacenter.by/pub/mirrors/CTAN/
Europe The Czech Republic Prague https://mirrors.nic.cz/tex-archive/
Europe Denmark https://mirrors.dotsrc.org/ctan/
Europe Germany München/Nürnberg, Bayern https://ctan.ebinger.cc/tex-archive/
Europe Germany Falkenstein, Sachsen https://ctan.joethei.xyz/
Europe Germany https://ctan.mc1.root.project-creative.net/
Europe Germany https://ctan.mirror.norbert-ruehl.de/
Europe Germany Falkenstein, Sachsen https://ctan.net/
Europe Germany Köln https://dante.ctan.org/tex-archive/
Europe Germany https://de.mirrors.cicku.me/ctan/
Europe Germany Dresden, Sachsen https://ftp.agdsn.de/pub/mirrors/latex/dante/
Europe Germany Erlangen, Bayern https://ftp.fau.de/ctan/
Europe Germany Göttingen, Niedersachsen https://ftp.gwdg.de/pub/ctan/
Europe Germany Saarbrücken, Saarland https://ftp.mpi-inf.mpg.de/pub/tex/mirror/ftp.dante.de/pub/tex/
Europe Germany Erlangen, Bayern https://ftp.rrze.uni-erlangen.de/ctan/
Europe Germany Hannover, Niedersachsen https://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/
Europe Germany Chemnitz, Sachsen https://ftp.tu-chemnitz.de/pub/tex/
Europe Germany Saarbrücken, Saarland https://markov.htwsaar.de/tex-archive/
Europe Germany Berlin https://mirror.clientvps.com/CTAN/
Europe Germany Leipzig https://mirror.dogado.de/tex-archive/
Europe Germany Essenbach, Bavaria https://mirror.funkfreundelandshut.de/latex/
Europe Germany Berlin https://mirror.physik.tu-berlin.de/pub/CTAN/
Europe Spain Santander, Cantabria https://ctan.fisiquimicamente.com/
Europe Spain Madrid https://ctan.javinator9889.com/
Europe Spain Granada https://osl.ugr.es/CTAN/
Europe France Paris, Île-de-France https://ctan.gutenberg-asso.fr/
Europe France Albi https://ctan.mines-albi.fr/
Europe France Toulouse, Occitanie https://ctan.tetaneutral.net/
Europe France Paris https://distrib-coffee.ipsl.jussieu.fr/pub/mirrors/ctan/
Europe France Lyon, Rhône https://mirror.ibcp.fr/pub/CTAN/
Europe France Paris https://mirrors.ircam.fr/pub/CTAN/
Europe France Paris https://texlive.mycozy.space/
Europe Italy https://ctan.mirror.garr.it/mirrors/ctan/
Europe Hungary Budapest https://mirror.szerverem.hu/ctan/
Europe The Netherlands Enschede, Overijssel https://ftp.snt.utwente.nl/pub/software/tex/
Europe The Netherlands Dronten, Fevoland https://mirror.koddos.net/CTAN/
Europe The Netherlands Dronten https://mirror.lyrahosting.com/CTAN/
Europe The Netherlands https://nl.mirrors.cicku.me/ctan/
Europe Norway Bergen https://ctan.uib.no/
Europe Norway Gjøvik, Oppland https://ftp.fagskolen.gjovik.no/pub/tex-archive/
Europe Poland https://ctan.gust.org.pl/tex-archive/
Europe Poland Warsaw https://polish-mirror.evolution-host.com/ctan/
Europe Poland Warsaw https://sunsite.icm.edu.pl/pub/CTAN/
Europe Portugal Coimbra https://ftp.eq.uc.pt/software/TeX/
Europe Portugal Porto https://mirrors.up.pt/pub/CTAN/
Europe Romania Bucharest https://mirrors.nxthost.com/ctan/
Europe Switzerland https://ch.mirrors.cicku.me/ctan/
Europe Switzerland Zürich https://mirror.foobar.to/CTAN/
Europe Switzerland Winterthur, Zürich https://mirror.init7.net/ctan/
Europe Finland https://www.nic.funet.fi/pub/TeX/CTAN/
Europe Finland https://mirror.5i.fi/tex-archive/
Europe Finland Helsinki https://www.texlive.info/CTAN/
Europe Sweden Borås https://ftpmirror1.infania.net/mirror/CTAN/
Europe Sweden Umeå https://mirror.accum.se/mirror/CTAN/
Europe United Kingdom Coventry, Warwickshire https://anorien.csc.warwick.ac.uk/mirrors/CTAN/
Europe United Kingdom https://gb.mirrors.cicku.me/ctan/
Europe United Kingdom Cambridge https://mirror.apps.cam.ac.uk/pub/tex-archive/
Europe United Kingdom Oxford, Oxfordshire https://mirror.ox.ac.uk/sites/ctan.org/
Europe Austria Vienna https://mirror.easyname.at/ctan/
Europe Austria Vienna https://mirror.kumi.systems/ctan/
Europe Greece Thessaloniki, Central Macedonia https://fosszone.csd.auth.gr/CTAN/
Europe Greece Heraklion, Crete https://ftp.cc.uoc.gr/mirrors/CTAN/
Europe Bulgaria Sofia https://mirrors.neterra.net/CTAN/
Europe Bulgaria Sofia https://mirrors.netix.net/CTAN/
Europe Russia Barnaul, Altai https://ctan.altspu.ru/
Europe Russia Moscow https://mirror.macomnet.net/pub/CTAN/
Europe Russia Novosibirsk, Siberia https://mirror.truenetwork.ru/CTAN/
North America Canada https://ca.mirrors.cicku.me/ctan/
North America Canada Montreal, Quebec https://ctan.mirror.globo.tech/
North America Canada Hamilton, Ontario https://ctan.mirror.rafal.ca/
North America Canada Waterloo, Ontario https://mirror.csclub.uwaterloo.ca/CTAN/
North America Canada Halifax, Nova Scotia https://mirror.its.dal.ca/ctan/
North America Canada Toronto, Ontario https://mirror.quantum5.ca/CTAN/
North America Canada Winnipeg, Manitoba https://muug.ca/mirror/ctan/
North America Costa Rica San Jose https://mirrors.ucr.ac.cr/CTAN/
North America USA Urbana, Illinois https://ctan.math.illinois.edu/
North America USA Salt Lake City, Utah https://ctan.math.utah.edu/ctan/tex-archive/
North America USA Seattle, Washington https://ctan.math.washington.edu/tex-archive/
North America USA Ames, Iowa https://mirror.las.iastate.edu/tex-archive/
North America USA Princeton, New Jersey https://mirror.math.princeton.edu/pub/CTAN/
North America USA San Jose, California https://ctan.mirrors.hoobly.com/
North America USA Cambridge, Massachusetts https://mirrors.mit.edu/CTAN/
North America USA Rochester, New York https://mirrors.rit.edu/CTAN/
North America USA Salt Lake City, Utah https://tug.ctan.org/
North America USA https://us.mirrors.cicku.me/ctan/
Oceania Australia https://au.mirrors.cicku.me/ctan/
Oceania Australia Canberra, ACT https://mirror.aarnet.edu.au/pub/CTAN/
Oceania Australia Sydney, New South Wales https://mirror.cse.unsw.edu.au/pub/CTAN/
South America Brazil https://br.mirrors.cicku.me/ctan/
South America Brazil São Paulo https://linorg.usp.br/CTAN/
South America Chile Santiago https://ctan.dcc.uchile.cl/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants