[Tex/LaTex] texlive does not find sty file

installinglinuxpackagestexliveUbuntu

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 ?

Best Answer

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.