On Ubuntu 16.04 I noticed that none of the Latex tools will supported other fonts than default. E.g. code like

\setmainfont{Ubuntu Mono}

All tools fail with the same / similar message

! LaTeX Error: File `luaotfload.sty' not found.

I tried for example Texmaker, RStudio, LaTeXila, SublimeText.

Is it possible to use other fonts when using Latex on Ubuntu / Linux? What are the steps to change fonts?

Btw, when I use a Docker container https://hub.docker.com/r/sumdoc/texlive-2017/ with command

luatex -shell-escape -synctex=1 -interaction=nonstopmode report.tex 

It creates a document that is garbled beyond recognition. What does work is

pdflatex -shell-escape -synctex=1 -interaction=nonstopmode report.tex 

But again, this does not allow font changes.

  • You can take a look here: tex.stackexchange.com/questions/161595/… Also, I have to say that your question could be more clear (You didn't even said that you use lualatex.. You didn't provided a MWE (tex.meta.stackexchange.com/questions/228/…)). Also, changing editors doesn't make difference for the compiler you use... But the compiler makes... The last comment because I would suggest to try XeLaTeX too....
    – koleygr
    Jan 18, 2018 at 7:49
  • 1
    luaotfload.sty is part of texlive so you should have it, update your tex system using your package manager. Note if the file is not there you need to update tex, changing the editor you use will make no difference Jan 18, 2018 at 7:49
  • How old is your tex system? Jan 18, 2018 at 8:31
  • I am new to Latex; I am as clear as I can be giving my lack of knowledge / experience. I just wanted to try to edit a simple document.
    – onknows
    Jan 18, 2018 at 10:15
  • My texlive looks old. Version shown is 2015.20160320-1ubuntu0.1. This is what is available in Ubuntu 16.04 repository.
    – onknows
    Jan 18, 2018 at 10:17

3 Answers 3


I fixed this on my Ubuntu installation by doing:

sudo apt install texlive-luatex

That was suggested to me in a comment to this question.


Usually if something is not found, I look here --> Ubuntu Package website

Scroll down to find "Search the contents of packages" and then if you type in luaotfload.sty, it tells you, that you need to install texlive-luatex.

or just do

apt-file find luaotfload.sty

Finally you will need to do:

sudo apt-get install texlive-luatex
  • 1
    make that an non-website relying answer and you earn a cookie. btw: if someone has installed the full environment, this shouldn't be an issue. Also, the QO already stated, that 'luatex' was tested and produced a PDF. therefore I see no real answer in here.
    – naphaneal
    Nov 5, 2018 at 20:07
  • cookie! pls! (updated) also, @naphaneal I just spent the last 36 hours on getting a cv template working and this (my answer) seemed to kill the error for me which allowed me to move on to other errors and finally to a working installation.
    – Pandian Le
    Nov 5, 2018 at 20:24

In my case, this package texlive-lang-italian was missing. Install it using this command:

sudo apt-get install texlive-lang-italian

You must log in to answer this question.

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