[Tex/LaTex] Ubuntu 14.04 *.sty and *.cls files are missing

texliveUbuntu

I just installed Ubuntu Gnome 14.04 on my laptop:

sudo apt-get install texlive texlive-lang-german texlive-lang-english texlive-doc-en texlive-doc-de texlive-latex-extra latexmk

Everything seemed to be fine but unfortunately I can not compile some of my tex-files. Some compile without errors, others say "file xxx.sty" or "yyy.cls" is missing / not found.

On my Windows 8 PC and my Ubuntu 12.04 Virtual Machine all tex-files can be compiled without errors.

What is missing?
Are those files something like stylesheets or so? Do they have to be in some directory? Why did apt-get did not install them?

Best Answer

I faced the same problem. Try installing the following packages in order:

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

In my case base and recommended were already installed. Installing texlive-latex-extra packages resolved my problem.