ATTENTION: This answer is focused on debian based systems (such as all Ubuntu/Linux Mint and much more distributions) and it contains the procedure to find the packages you need that are offered by your distribution's package manager. If your distribution is an LTS (actually if it is not a rolling or testing or "small life" distribution), it is supposed to be stable by using packages by it's own repository and you should not (at least not often) add packages found in other repositories than your distro's official repositories. If for some specific reason you have to use the newer or a new version of a package (especially for TeX Live check this answer) that is not offered by your repositories, you should know that you take the risk to can't name your installed OS "stable" after that and you should make your research before do it with possible errors that could arise depending on your choice. ALSO, it is important that you should consider to upgrade to a more recent LTS (or rolling or even testing) release if you usually need more resent versions for more that one or two packages
To search where a (user's) file named <name>
is located you could type the command (check the next command first that will need much less time)
find /usr/ -name <name>
This command on my debian
for <name>
replaced by tex
(ubuntu will return something similar) returns:
/usr/share/doc/texlive-doc/generic/knuth/tex
/usr/share/doc/texlive-doc/latex/plantslabels/doc/tex
/usr/share/doc/texlive-doc/latex/plantslabels/example/tex
/usr/share/doc/texlive-doc/latex/dashundergaps/doc/tex
/usr/share/texlive/texmf-dist/tex
/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex
/usr/share/texlive/texmf-dist/tex/generic/pgf/graphdrawing/tex
/usr/share/R/share/texmf/tex
/usr/share/texmf/tex
/usr/bin/tex
From all these files, I could know that the binary I am looking for is the /usr/bin/tex
and I could search inside the /usr/bin/
as a real first try to avoid waiting for the above search (binaries -like commands- are always inside a /bin
-or an /sbin
if they are for root
user- directory).
Now that you know the exact location of the file, you can find the package that offers this command by the command
dpkg -S /usr/bin/tex
This command returns on my system:
texlive-binaries: /usr/bin/tex
The next step is to find the details of this package (and if this is installed in your system)
dpkg -l texlive-binaries
will give an output like :
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii texlive-binari 2016.2016051 amd64 Binaries for TeX Live
Where the ii
means installed. (for more details about the installed version you could try dpkg -s texlive-binaries
)
In your case (if you need just the "stable" version of the package that provides the tex
command), you possibly have to remove the installed version (but this depends on the way you installed) and then just give the command:
apt install texlive-binaries
(A suggestion would be to install texlive-base
instead that will offer more tools and documentation too... and after that you could use tlmgr
to add or remove packages and have a minimal installation -as it seems you possibly looking for-)
PS: I know this is more about debian based linux but if the question is on-topic the answer is on-topic too and if not, I hope that helped anyway.
PS2: You may need to add a sudo
in front of the most of these commands or to give them after taking admin privileges first.
PS3: 16.04 will be usuable for one more year and some months, but 18.04 have left "Unity" and uses "Gnome" desktop environment. If you want to get a smoother way to pass to the next desktop environment you could dual boot with the 18.04 and if you don't really like you could look for other desktop environments or even other distros that fit your needs.
Best Answer
The error message is about a
tfm
, not apfb
.tfm
are often created on the fly (when the font has been orginally made with metafont) but this can sometimes fail.Try to compile with pdflatex (not xelatex)
This will hopefully trigger the creation of the tfm and then xelatex will be able to find it too.