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

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