All of a sudden my TeXLive is no longer find any path; it was working fine. Now, it gives me when I compile any latex file:
kpathsea: Running mktexfmt latex.fmt
/usr/local/texlive/2018/bin/x86_64-linux/mktexfmt: kpsewhich -var-value=TEXMFROOT failed, aborting early.
BEGIN failed--compilation aborted at /usr/local/texlive/2018/bin/x86_64-linux/mktexfmt line 25.
I can't find the format file `latex.fmt'!
The output from texconfig conf is:
[wyousef@archlinux ~]$ texconfig conf
=========================== version information ==========================
==================== binaries found by searching $PATH ===================
PATH=/usr/local/texlive/2018/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/bin:/usr/local/texlive/2018/bin/x86_64-linux:/home/wyousef/Downloads/AAProgramsAA/anaconda3/bin:/usr/local/bin:/usr/local/texlive/2018/bin/x86_64-linux:/home/wyousef/Downloads/AAProgramsAA/anaconda3/bin
kpsewhich: /usr/local/texlive/2018/bin/x86_64-linux/kpsewhich
updmap: /usr/local/texlive/2018/bin/x86_64-linux/updmap
fmtutil: /usr/local/texlive/2018/bin/x86_64-linux/fmtutil
texconfig: /usr/local/texlive/2018/bin/x86_64-linux/texconfig
tex: /usr/local/texlive/2018/bin/x86_64-linux/tex
pdftex: /usr/local/texlive/2018/bin/x86_64-linux/pdftex
mktexpk: /usr/local/texlive/2018/bin/x86_64-linux/mktexpk
dvips: /usr/local/texlive/2018/bin/x86_64-linux/dvips
dvipdfmx: /usr/local/texlive/2018/bin/x86_64-linux/dvipdfmx
=========================== active config files ==========================
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
/usr/local/texlive/2018/texmf.cnf
config.ps: not found
fmtutil.cnf: not found
mktex.cnf: not found
pdftexconfig.tex: not found
updmap.cfg: not found
XDvi: not found
============================= font map files =============================
psfonts.map:
pdftex.map:
ps2pk.map:
=========================== kpathsea variables ===========================
TEXMFMAIN=/usr/local/texlive/2018/texmf-dist
TEXMFDIST=/usr/local/texlive/2018/texmf-dist
TEXMFLOCAL=/usr/local/texlive/texmf-local
TEXMFSYSVAR=/usr/local/texlive/2018/texmf-var
TEXMFSYSCONFIG=/usr/local/texlive/2018/texmf-config
TEXMFVAR=
TEXMFCONFIG=/usr/local/texlive/2018/texmf-config
TEXMFHOME=/usr/local/texlive/2018/texmf-config
VARTEXFONTS=
TEXMF=
SYSTEXMF=
TEXMFDBS=
WEB2C=
TEXPSHEADERS=
TEXCONFIG=
ENCFONTS=
TEXFONTMAPS=
==== kpathsea variables from environment only (ok if no output here) ====
TEXMFCNF=/usr/local/texlive/2018
EDIT01:
I already had tried mktexlsr and sudo mktexlsr; same problem. Moreover, sudo texconfig conf gives me complete path names!!
EIDT02:
This problem is not caused by anything unusual that I did. It is the daily update I do for pacman and texlive:
sudo pacman -Syu
sudo tlmgr update --all
sudo tlmgr update --self
EDIT03 (Problem Solved):
From the suggestion of the comments below the problem was solved by the following. I installed first perl-tk to be able to run the gui of tlmgr; then I ran it usingsudo tlmgr --gui. Then, I did all possible rebuilding from the Actions menu NOT by installing or re-installing any package; i.e.,
1. Update filenames database
2. Rebuild all formats
3. Update font map database
4. Handle symlinks in system dirs: Update symbolic links
I am not sure, of course, which step was responsible for the resolution.
mktexlsrwith no success. Please, read my EDIT above – Waleed A. Yousef Apr 01 '19 at 20:28sudo tlmgr -update --all– Waleed A. Yousef Apr 01 '19 at 21:31tlmgr gui? Can you (Waleed) get the formats etc. rebuilt? – Keks Dose Apr 02 '19 at 11:05