I am trying to install texlive 2012. I am running Ubuntu 12.04. I followed the instructions here: How do I install the latest TeX Live 2012?

but I now get error messages such as "ulem.sty not found". What did I do wrong?

  • 1
    What instructions did you follow, exactly? there are several answers in the question you linked. As far as I can tell, ulem.sty is provided by package texlive-generic-recommended - perhaps that particular subpackage didn't get picked up as a dependency? Aug 28, 2015 at 12:27

2 Answers 2


The answer from Luís might not be for everyone since it requires to download a lot of packages that you might not need.

ulem.sty can actually be found in a much smaller package (3 MiB instead of 1 000 MiB), namely texlive-generic-recommended:

sudo apt-get install texlive-generic-recommended

For Ubuntu 20.04

sudo apt-get install texlive-plain-generic

(as mentioned by rmobis in the comments)

  • Wonderful. It worked fine and solved my problem with Jupyter Notebook. Jan 8, 2018 at 22:01
  • perfect answer, no need to add an extra PPA Jun 30, 2018 at 13:42
  • Better answer. Fixed an issue I had rendering markdown to pdf with pandoc; "File `ulem.sty' not found" Feb 15, 2020 at 17:08
  • 3
    For Ubuntu 20, use texlive-plain-generic instead.
    – rmobis
    Oct 6, 2020 at 20:54

Use the following command sequence:

sudo add-apt-repository ppa:texlive-backports/ppa
sudo apt-get update
sudo apt-get install texlive-full

This will get you the complete TeXLive package constellation. It is over 1 GB of stuff, but you will never worry with missing packages again. Both texlive and texlive-base provide only a subset of packages for the economy of space.

You must log in to answer this question.

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