Tinytex: Missing package. "Remote repository newer than local"

Created on 3 May 2018  路  8Comments  路  Source: yihui/tinytex

During knitting, I get the following error:

tlmgr search --file --global '/lineno.sty'
tlmgr: Remote repository is newer than local (2017 < 2018)
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
Please see https://tug.org/texlive/upgrade.html for details.
! LaTeX Error: File `lineno.sty' not found.

Following the maintenance instructions on https://yihui.name/tinytex/ I observe the following on the terminal.

$ tlmgr update --self --all
tlmgr: Remote repository is newer than local (2017 < 2018)
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
Please see https://tug.org/texlive/upgrade.html for details.

How can TinyTex be updated?

Most helpful comment

NOTE: resolved by running the following in R:

install.packages(c('tinytex', 'rmarkdown'))
tinytex::install_tinytex(force = T)

All 8 comments

NOTE: resolved by running the following in R:

install.packages(c('tinytex', 'rmarkdown'))
tinytex::install_tinytex(force = T)

You can reinstall TinyTeX as well as the packages you previously installed with:

devtools::install_github('yihui/tinytex')
tinytex::reinstall_tinytex()

I am not an R user. What should I do to solve this issue?

@vargonis Uninstall TinyTeX and reinstall it: https://yihui.name/tinytex/

@yihui OK, thanks. Will I lose the packages that I have already installed?

Good question. The answer is yes, but it is relatively easy to retrieve the list of package names that you have installed:

tlmgr info --list --only-installed --data name

Those names with the architecture name should be removed (e.g., tetex.x86_64-darwin should just be tetex). Copy this list, turn line breaks into spaces, and use tlmgr install to install all of them after you reinstall a fresh copy of TinyTeX.

BTW, that is what tinytex::reinstall_tinytex() does by default (it will reinstall the previously installed LaTeX packages).

Thanks, it worked (forced me to learn some elementary command line stuff though). Keep up with the good work, tinytex is great! Something like reinstall_tinytex() for non-R users would be very nice. For what it's worth, would like to mention that I also had to re-create, in my /bin directory, a symbolic link to a latexmk command that I found in ~/.TinyTex/bin/x86_64-linux.

@vargonis To create symbolic links, you just need to run tlmgr path add (this is automatically done for R users). Only LaTeX packages that contain executables require this, such as latexmk.

I have added FAQ 13 to address this issue of upgrading TeX Live: https://yihui.name/tinytex/faq/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

antoinecollet5 picture antoinecollet5  路  4Comments

boltomli picture boltomli  路  3Comments

Sakura-gh picture Sakura-gh  路  6Comments

anhus picture anhus  路  4Comments

FMKerckhof picture FMKerckhof  路  5Comments