"Ignoring /etc/texmf/texmf.d/*.cnf during generation of texmf.cnf" when installing tex-common
This happened to me during and after the upgrade to 14.04. It seems something is broken in textlive. updmap-sys can't find some files.
I fixed it the following way:
When you run apt-get -f install
(or autoremove, or whatever triggers the error) you see the following at the beginning of the error:
Setting up tex-common (4.04) ...
Ignoring /etc/texmf/texmf.d/05TeXMF.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/15Plain.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/45TeXinputs.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/55Fonts.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/65BibTeX.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/75DviPS.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/80DVIPDFMx.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/85Misc.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/90TeXDoc.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/95NonPath.cnf during generation of texmf.cnf, please remove manually!
Running mktexlsr. This may take some time... done.
Running updmap-sys. This may take some time...
updmap-sys failed. Output has been stored in
/tmp/updmap.FnIqXOSv
Please include this file if you report a bug.
You have to take a look into the file mentioned in the second-to-last line:
less /tmp/updmap.FnIqXOSv
Note: The file name will be different every time.
Scroll down to the end. Take note of all the .map
files after the line starting with ERROR
:
ERROR: The following map file(s) couldn't be found:
antp.map (in /var/lib/texmf/web2c/updmap.cfg)
comicvn.map (in /var/lib/texmf/web2c/updmap.cfg)
csother.map (in /var/lib/texmf/web2c/updmap.cfg)
cstext.map (in /var/lib/texmf/web2c/updmap.cfg)
fi4.map (in /var/lib/texmf/web2c/updmap.cfg)
grverb.map (in /var/lib/texmf/web2c/updmap.cfg)
mscorevn.map (in /var/lib/texmf/web2c/updmap.cfg)
slantcm.map (in /var/lib/texmf/web2c/updmap.cfg)
zpeu.map (in /var/lib/texmf/web2c/updmap.cfg)
Now open the file /var/lib/texmf/web2c/updmap.cfg
with your favorite text editor, I use vi:
sudo vi /var/lib/texmf/web2c/updmap.cfg
Search for every .map
file you noted earlier and comment them out by prepending the line with a #
.
Afterwards apt-get -f install
should take a while to configure texlive but it should work.
Even the output of sudo apt-get install -f
was the same as before.
I just could solve the problem by removing the packages related to latex as follow
sudo apt-get --purge remove texlive-base
sudo apt-get --purge remove tex-common
sudo apt-get --purge remove texinfo
And after that I did as suggested, executing sudo apt-get install -f
and after sudo apt-get autoremove
. Apparently all dependencies were resolved.
Setting up tex-common (4.04) ...
Ignoring /etc/texmf/texmf.d/05TeXMF.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/15Plain.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/45TeXinputs.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/55Fonts.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/65BibTeX.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/75DviPS.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/80DVIPDFMx.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/85Misc.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/90TeXDoc.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/95NonPath.cnf during generation of texmf.cnf, please remove manually!
Running mktexlsr. This may take some time... done.
Running updmap-sys. This may take some time...
updmap-sys failed. Output has been stored in
/tmp/updmap.F4dMHt02
Please include this file if you report a bug.
Sometimes, not accepting conffile updates in /etc/texmf/updmap.d
causes updmap-sys to fail. Please check for files with extension
.dpkg-dist or .ucf-dist in this directory
While configuring the package tex-common
there were some errors about certain configuration files. Removing these files should have fixed the problem:
sudo rm /etc/texmf/texmf.d/05TeXMF.cnf /etc/texmf/texmf.d/15Plain.cnf /etc/texmf/texmf.d/45TeXinputs.cnf /etc/texmf/texmf.d/55Fonts.cnf /etc/texmf/texmf.d/65BibTeX.cnf /etc/texmf/texmf.d/75DviPS.cnf /etc/texmf/texmf.d/80DVIPDFMx.cnf /etc/texmf/texmf.d/85Misc.cnf /etc/texmf/texmf.d/90TeXDoc.cnf /etc/texmf/texmf.d/95NonPath.cnf
Then running sudo dpkg --configure tex-common
and installing the packages per usual.