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 :
xcolor.sty not found
titlesec.sty not found
How can I fix the problem ?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.Sign up to join this community
Make sure you have all neccesary packages installed:
xcoloris provided by the package
titlesecis provided by the package
You can install them with
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.
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.