I am on Ubuntu 8.04 and just install TeX Live with :

sudo apt-get install texlive-full.

I tried to compile my .tex file with TexMaker. I get :

  1. xcolor.sty not found
  2. titlesec.sty not found

How can I fix the problem ?

3 Answers 3


Make sure you have all neccesary packages installed:

You can install them with apt-get:

sudo apt-get install texlive-latex-recommended texlive-latex-extra

You can also try to use tlmgr to install missing packages for the current user (tlmgr in Debian/ubuntu runs always in user mode).

The texlive distribution provided by ubuntu is usually pretty old. You might want to consider to install a newer version manually.

  • 2
    sudo apt-get install texlive-latex-extra indeed solves the problem. I don't see any issues now in 2015. Commented Apr 9, 2015 at 20:57
  • texlive-latex-extra is only 500MB vs the 2GB of the parent texlive-full package. This answer is preferable IMHO.
    – meawoppl
    Commented Dec 22, 2015 at 19:12
  • 2
    texlive-latex-extra just helped me with a missing pgfcore.sty. Commented Nov 12, 2019 at 9:11
  • I think on Ubuntu 18.04, latex-xcolor doesn't exist anymore. Correct me if I am wrong.
    – Jason Liu
    Commented Mar 2, 2020 at 23:17
  • @JasonLiu Seems like xcolor is now in texlive-latex-recommended. I'll edit this answer
    – someonr
    Commented Mar 3, 2020 at 13:23

I am not entirely sure what version of texlive is on Ubuntu 8.04. Haven't the repos deprecated? I.e. your packages are very old.

I suggest you do a manual installation. See texlive 2011. It is actually not that difficult.
If you do this please remember to uninstall texlive-full, and others, using your package manager.


Here I am in 2020 and I found that TeXWorks (Version 0.6.2 (Debian) [r.7ecce17, 2017-04-29 10:23 AM]) could not find the xcolor package from my TeXLive 2019 installation on Ubuntu 18.04 LTS while another IDE like TeXMaker could do it.

The fix was to bump up the path where the .sty file gets copied to (or the soft link to it anyway): /usr/local/bin, in the tab for Typesetting in the Preferences dialogue that is reached through the Edit/Preferences menu from the menu toolbar in the main window.

You must log in to answer this question.

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