Whenever I try to compile my .tex file, I get the following error:

! LaTeX Error: File ngerman.sty not found. Type X to quit or to proceed, or enter new name. (Default extension: sty) Enter file name: ! Emergency stop. l.3 \begin

Here's a MWE:


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.

  • Did you run texhash as root?
    – Sigur
    Feb 2, 2014 at 15:56
  • 4
    ngerman is absolutely obsolet. You should use babel with the language option ngerman Feb 2, 2014 at 15:58
  • As your document seems to find article.cls: Where is it according to the log-file? Feb 2, 2014 at 15:58
  • 4
    @Jurg, use the terminal to install texlive-lang-german
    – Sigur
    Feb 2, 2014 at 16:04

2 Answers 2


Open a terminal (ctrl + alt + t) and run the following commands:

  1. sudo add-apt-repository ppa:texlive-backports/ppa
  2. sudo apt-get update
  3. sudo apt-get install texlive-lang-german

 (4.) sudo apt-get upgrade

  • I guess that you don't need (6).
    – Sigur
    Feb 2, 2014 at 16:14
  • I think it doesn't do any harm, but I'll put it in brackets as it's not really necessary. :)
    – Jurg
    Feb 2, 2014 at 19:44
  • Changed to (4.).
    – Speravir
    Feb 2, 2014 at 21:56
  • Thanks. sudo apt-get install texlive-lang-german is sufficient on Ubuntu 23.10.
    – user4417
    Nov 13, 2023 at 12:12

The original poster appears to be on Ubuntu (I believe); this answer therefore applies to Debian and Debian derivatives in general, and thus to Ubuntu in particular.

It is probably sufficient nowadays to simply install the texlive-lang-german package in the usual way (using apt-get, aptitude, apt, Synaptic or whatever you normally use to install packages belonging to your Debian or Debian-derived distribution). Adding a PPA in order to solve this problem is probably not necessary.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .