I used to compile my TeX file in Ubuntu 14.04. Recently I upgraded from Ubuntu 14.04 to 16.04. When I compile my TeX project using xelatex
, I get the following error:
xdvipdfmx:fatal: Something is wrong. Are you sure this is a DVI file? Output file removed.
Error: Command crashed: "/home/c/linux/usr/local/texlive/2013/bin/x86_64-linux/xelatex" -synctex=1 -interaction=nonstopmode "MyThesis".tex
I run this command:
"/path/to/xelatex" -synctex=1 -interaction=nonstopmode "MyThesis".
but after I added -no-pdf
to the command, command finished without error. If I run xdvipdfmx -vv MyThesis.xdv
after that, I get following output again.
<FONTMAP:/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map>
<FONTMAP:/var/lib/texmf/fonts/map/dvipdfmx/updmap/kanjix.map>
<FONTMAP:/usr/share/texlive/texmf-dist/fonts/map/dvipdfmx/ckx.map>MyThesis.xdv -> MyThesis.pdf
DVI ID = 5
xdvipdfmx:fatal: Something is wrong. Are you sure this is a DVI file?
Output file removed.
Since I'm a TeX novice, please provide some tips to help me solve the problem, if you do know the exact cause of this problem.
Best Answer
This was caused by a clash between two installed TeX Live versions (2013 and 2015).