I've just installed Linux Mint 18.2 and TeX Live 2017 (I'm pretty sure; see below). I actually have two separate issues masked into one, so I will present them both.
I have the following minimum working example:
\documentclass{article}
\usepackage{fontspec}
\begin{document}
This is a test.
\end{document}
I try to compile this with lualatex
, but it does not compile. It gives me
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/Debian) (rev 5238)
restricted \write18 enabled.
(./test.tex
LaTeX2e <2016/02/01>
Babel <3.9q> and hyphenation patterns for 1 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3pdfmode.def))
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
! LaTeX Error: File `luaotfload.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Why it says TeX Live 2015
is beyond me...So, I used this solution and attempted to run tlmgr update lmodern
but I get
(running on Debian, switching to user mode!)
Unknown directive ...containerchecksum LONGCHECKSUM... , please fix it! at /usr/share/texlive/tlpkg/TeXLive/TLPOBJ.pm line 210, <$retfh> line 5761.
where LONGCHECKSUM is a long checksum. Now, according to this answer, it was a bug which has been fixed for Debian years ago!!
AND, according to this solution, I have to use an old TeXLive version for tlmgr. Now that is interesting to me, because when I run tex --version
it returns TeX 3.14159265 (TeX Live 2015/Debian)
, but I'm 100% sure I downloaded the 2017 version.
I'm honestly just lost at this point. I'm doing all this on a new computer and I would just like to get back to work at this point. Any help here would be just great. If this is not the best place to post, please do point me in the right direction.
Edit: it turns out I was using the repo version of TeX Live. Doing export PATH=my/texlive/directory/:$PATH
in ~/.bashrc (as opposed to ~/.profile) solved the issue and now my system is using TeX Live 2017 and everything compiles as it should.
/home/ME/bin:/home/ME/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/texlive/2017/bin/x86_64-linux
And no, I didn't install any LaTeX-sepcific editors.