Github Actions have made it much easier to automatically regenerate a book or website with LaTeX graphics, but it seems to have problems with tlmgr, in that nothing I tried makes it actually work.

I'm installing TeX Live the usual way:

sudo apt-get update
sudo apt-get install xzdec libpoppler-glib-dev texlive texlive-xetex -y

And then I bootstrap tlmgr the usual way, too:

tlmgr --version
tlmgr init-usertree
sudo tlmgr update --all

This leads to the following output:

(running on Debian, switching to user mode!)
tlmgr revision 46207 (2018-01-04 19:34:36 +0100)
tlmgr using installation: /usr/share/texlive
TeX Live (http://tug.org/texlive) version 2017
(running on Debian, switching to user mode!)
Cannot determine type of tlpdb from /home/runner/texmf!
(running on Debian, switching to user mode!)
tlmgr: Remote repository is newer than local (2017 < 2020)
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
Please see https://tug.org/texlive/upgrade.html for details.
##[error]Process completed with exit code 1.

Reading through https://tug.org/texlive/upgrade.html doesn't really offer much in a way forward here, since it describes some intensive manual intervention, which isn't an option for a CI/CD run. How do I make tlmgr/TeX Live play nice in this situation?

(And in case I'm thinking about this the wrong way, I need xelatex and pdfcrop for my CI task, and would love to do that without ever needing tlmgr. However, it looks like the only way to get pdfcrop installed is via texlive-full, which is nearly 5GB and so isn't an option as part of a CI runner)


1 Answer 1


Since you are only after tlmgr usage for pdfcrop you can just install texlive-extra-utils instead.

Often one can find TeX live packages/component by searching on packages.debian.org. Just make sure to select "package contents" or "descriptions".

e.g. https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=contents&keywords=pdfcrop

Searching "package names" is usually not enough.

As mentioned in the comments the tlmgr you get when you install TeX live from the Debian/Ubuntu repositories can basically not update system-installed packages. If you install TeX live via apt/apt-get you are basically stuck with the package version your Linux distribution ships (which are usually not updated, unless you are on a rolling release?). If you want to live on the cutting edge, you need to install a 'vanilla' TeX live from TUG.org (How to install "vanilla" TeXLive on Debian or Ubuntu?).

  • Good point, I bet I searched with just "package names"... Thanks for the help! Commented Jun 27, 2020 at 17:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .