[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#397717: lmodern: install failed with error message warning: directory /usr/lib/X11/fonts/Type1 does not exist



severity 397717 normal
thanks

"daniel bosold" <devogon@gmail.com> wrote:

> I'm not sure at which point i would have refused to use a file. i have
> no personally modified latex files outside my home dir so i would have
> accepted any modifications to /etc files (most probably anyway).

It seems you might not have modified files yourself, but called updmap
to do that...

> % grep lm.map /etc/texmf/updmap.d/*
>
> /etc/texmf/updmap.d/10lmodern.cfg:Map cork-lm.map
> /etc/texmf/updmap.d/10local.cfg:Map lm.map

The 10local.cfg probably comes from your calling

updmap-sys --enable Map lm.map

sometime in the past.  It's probable that this was suggested by some
non-Debian lmodern installation instructions.  And it should work on
Debian, too - but only if lm.map is installed.  Since lm.map in 1.00 is
buggy, the Debian package doesn't install it.

So just remove the file 10local.cfg, and the lm.map that you have put
into /usr/share/texmf (which, by the way, you should never have done:
this directory is in the realm of dpkg, and local additions should go
into /usr/local/share/texmf).  Then call update-updmap, now lmodern
should configure or reconfigure fine.

I'm leaving the bug open, we should think whether we can provide better
error messages - and maybe it's not a good idea to exclude lm.map from
the deb?  But the good thing about it is that problems show up early.

As for the error message, we cannot add a check in lmodern's postinst
explicitly.  But we could do the following in tex-common:

--- scripts/postinst-tex	(Revision 1922)
+++ scripts/postinst-tex	(Arbeitskopie)
@@ -22,10 +22,15 @@
         rm -f $tempfile
         echo "done."
     else
+        exec >&2
         echo
         echo "updmap-sys failed. Output has been stored in"
         echo "$tempfile"
         echo "Please include this file if you report a bug."
+	echo
+	echo "Sometimes, not accepting conffile updates in /etc/texmf/updmap.d"
+	echo "causes updmap-sys to fail.  Please check for files with extension"
+	echo ".dpkg-new or .ucf-new in this directory" 
         echo
         exit 1
     fi

(shouldn't all those error messages go to &2?  Or all messages - how
about debconf being active at this time?)

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Reply to: