Whenever I try to compile my .tex
file, I get the following error:
! LaTeX Error: File
ngerman.sty
not found.
TypeX
to quit or to proceed,
or enter new name. (Default extension:sty
)
Enter file name:
! Emergency stop.l.3
\begin
Here's a MWE:
\documentclass[a4paper,12pt]{article}
\usepackage{ngerman}
\begin{document}
xyz
\end{document}
This happens even though the ngerman.sty
package can be found in the following directories:
-
/usr/share/texlive/texmf/tex/latex
-
/usr/share/texmf/tex/latex
I also tried running the texhash
command.
Best Answer
Open a terminal (ctrl + alt + t) and run the following commands:
sudo add-apt-repository ppa:texlive-backports/ppa
sudo apt-get update
sudo apt-get install texlive-lang-german
(4.)
sudo apt-get upgrade