I have install $ sudo apt-get install texlive-full on Ubuntu 10.04.2 but when I run I got this error about adjustbox.

! LaTeX Error: File `adjustbox.sty' not found

Is there anyone know how to install/fix this error.

  • 4
    what you don't say is what operating system you're using. if (like me) you're using ubuntu 12.04 lts, this is not surprising: adjustbox appeared latter than the ubuntu release. so tell which version of which os, and someone can make a useful recommendation. May 29, 2013 at 9:55
  • There really should be some standard way to verify installation. Like post-installation verify type command. but searching around, I found these instructions: tex.stackexchange.com/questions/101878/… First you need to make sure it was installed fully. Also, you need to show a minimal working example, and the command you used to compile the latex file.
    – Nasser
    May 29, 2013 at 9:58
  • This just happen when importing package (\usepackage{adjustbox}). The same code i write work well on Mac but not Ubantu
    – Sarawut
    May 29, 2013 at 10:01
  • the difference between macos and ubuntu was exactly why i asked what os you use. ubuntu freezes its offerings (after a lot of testing) when it makes a release; typically, even its texlive-full is pretty conservative, but it's also frozen in time. mactex, otoh, is a "real" full install maintained by texies and released in parallel with tl. which version of ubuntu are you using? (i.e., complete the answer ... for example, i'm using ubuntu 12.04 lts -- it tells me this in /etc/issue) May 29, 2013 at 10:16
  • 1
    @nasser an "installation verify" would need to know what was supposed to be installed. the best evidence for that is what was installed, but you can go back to the source of the installation, unpack it and produce a list: but that's circular ("it installed what it said it was going to install"). in today's world of rapidly changing packages and wildly different ideas of what should be installed, a post-installation test is best done by compiling docs that are needed ... as sarawut has done. May 29, 2013 at 10:20

4 Answers 4


If you didn't (as I didn't) do the full latex installation (3 GB !^oo^!), the answer might be as simple as a

sudo apt-get install texlive-latex-extra
  • 1
    That worked in Ubuntu trusty tahr 14.04 LTS also - thanks!
    – nealmcb
    Apr 9, 2015 at 23:31
  • Great advice for those of us coming from Windows with no knowledge of behind-the-curtains stuff. Dec 2, 2015 at 19:24

The TeX Live which comes with Ubuntu and Debian doesn't receive updates very often, so it's usually an old TeX Live version which packages can't be directly updated. I, as the adjustbox author, recommend to install the 'vanilla' version of TeX Live, i.e. direct from its website and not the Ubuntu package. Please see Best way to install packages for TeXLive in Ubuntu? for further info. Also How to install "vanilla" TeXLive on Debian or Ubuntu? and Best way to install packages for TeXLive in Ubuntu? should help.

You could also install only adjustbox locally, together with some other of my packages it requires. All of these can be downloaded from http://CTAN.org or http://bitbucket.org/martin_scharrer/. Simply take the TDS ZIP files and unpack them into your local TEXMF tree. See How to install LaTeX .zip package (from CTAN) using texhash on a 'nix system? for the details on that.


If you're on a Mac with BasicTex installed and receive this error, you need to install some extra Tex packages. Use tlmgr.

sudo tlmgr install adjustbox

I also had to install some more packages which I assume you will have to too:

sudo tlmgr install collectbox
sudo tlmgr install ucs

if you use:

sudo apt-get install texlive-latex-extra

you will download about 600 MB (because apt-get by default installs all the recommended packages).

If you want to decrease the download size to about 24 MB, use:

sudo apt-get install --no-install-recommends texlive-latex-extra 

By doing this way, you avoid installing some packages (documentation almost) unneeded in order to generate PDF.

Maybe you have to install some extra fonts (if you got ! LaTeX Error: File `eurosym.sty' not found.):

sudo apt-get install --no-install-recommends  texlive-fonts-recommended
  • 1
    I was getting this error while exporting python notebooks as pdf. One more install solves my problem: sudo apt-get install --no-install-recommends texlive-generic-recommended Apr 24, 2016 at 14:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.