[Tex/LaTex] After upgrading ubuntu 13.04 to 13.10, latex compiling errors

errorstexlivetexmakerUbuntu

After upgrading the ubuntu 13.04 to 13.10, when I try the following command in terminal

$ latex *.tex or $ pdflatex *.tex .

I give the following error with MWE:

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
 restricted \write18 enabled.
---! /var/lib/texmf/web2c/pdftex/pdflatex.fmt doesn't match pdftex.pool
(Fatal format file error; I'm stymied)

Also Texmaker gives error "Could not start the command".

Meanwhile, my Texmaker configuration is as follows:

enter image description here

Any suggestion?

Best Answer

I got the same error with Pandoc. It was:

pandoc: Error producing PDF from TeX source.             
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
 restricted \write18 enabled.
---! /home/user/.texmf-var/web2c/pdftex/pdflatex.fmt doesn't match pdftex.pool
(Fatal format file error; I'm stymied)

I fixed it by removing / renaming the /home/user/.texmf-var folder.

It happened probably because of my system upgrade. That folder probably contains older cache files that are incompatible with the newer latex version that I now have installed.

In your case, the problem is with a system folder.

I recommend trying to find the command that rebuilds these caches (like some suggested in the comments), or, alternatively, uninstalling latex and re-installing it again - probably that will generate them anew.