Out of the blue latex error "I can't find the format file 'cursor.fmt'"

Hello, the following error just appeared out the of blue using my Latex Manjaro distribution 2024.2.-. I have reinstalled it three times, and each time I get the same error if i run “pdflatex article.tex”
The error is as follows:

This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux) (preloaded format=cursor)
 restricted \write18 enabled.

kpathsea: Running mktexfmt cursor.fmt
mktexfmt: mktexfmt is using the following fmtutil.cnf files (in precedence order):
mktexfmt:   /etc/texmf/web2c/fmtutil.cnf
mktexfmt: mktexfmt is using the following fmtutil.cnf file for writing changes:
mktexfmt:   /home/atomwalk12/.texlive/texmf-config/web2c/fmtutil.cnf
mktexfmt [INFO]: writing formats under /home/atomwalk12/.texlive/texmf-var/web2c
mktexfmt [INFO]: Did not find entry for byfmt=cursor skipped
mktexfmt [INFO]: disabled formats: 1
mktexfmt [INFO]: not selected formats: 26
mktexfmt [INFO]: total formats: 27
mktexfmt [INFO]: exiting with status 0
I can't find the format file `cursor.fmt'!

I am using the default distribution as found in the Official Repositories. I tried reinstalling the packages, however this error still persists.
I tried running sudo fmtutil-sys --all to try to remedy the problem, however the error still persists.

Does anyone have any idea on what could be going wrong?

This looks like you have a custom config in ~/.texlive/texmf-config . Maybe it’s outdated?

When I compile a file, it says:
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux) (preloaded format=pdflatex)

Thanks for the quick reply. However, I don’t have any texmf-config file in ~/.texlive. I tried changing the name of this directory to try to revert to defaults. This doesn’t work. I tried checking this by myself and found out that the $TEXMFCNF environment variable is not set.

I noticed that the texmf.cnf file can be found in both:

/etc/texmf/web2c/texmf.cnf
/usr/share/texmf-dist/web2c/texmf.cnf

I made the TEXMFCNF environment variable point to /usr/share/texmf-dist/web2c and now it works correctly. Thanks for the suggestion!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.