[Tex/LaTex] How to install language packages and .sty for lyx in ubuntu

lyxUbuntu

I'm working in ubuntu 15.10 some files which I made in windows and lyx doesn't compile them. The error results are:

Package babel Error. You haven't specified a language option

Undefined control sequence

Undefined control sequence

Undefined control sequence

LaTeX Error: Missing \begin{document}

LaTeX Error: File 'stmaryrd.sty' not found

However, if I change the language from spanish to english, the errors vanish and only stay the last one (LaTeX Error: File 'stmaryrd.sty' not found)

I would like to know how to solve these problems installing the corresponding packages in ubuntu.

Thank you very much for your help.

Best Answer

I haven't found texlive-math-extra via apt, but I found the package texlive-science that contains the St. Mary road symbols (see here).

So I simply made

$ sudo apt-get install texlive-science

And it solved the issue.