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

Bug#281792: tetex-base: missing texdoctk files in /etc/texdoctk



acabiran@club-internet.fr wrote:

> Couldn't open system-wide default config file texdocrc.
> font "" doesn't exist at /usr/bin/texdoctk line 1545.
>
> So i purged the whole LaTeX packages and reinstalled them.
> Result was the same.
>
>> Alain, what is the output of
[...]
> a you can see, the texdocrc file should have been copied, i don't
> undertstand...

Yes, all looks well.

>> >> i copied them manually from orig package and the only modification
>> >> i had to make is to replace PS_VIEWER=ghostview by PS_VIEWER=gv
>> >> line 29 of texdoctkrc.
>> >> 
>> > Hmm, perhaps we should replace it by /usr/bin/see.
>> 
>> We have replaced it. Alain, from which place did you take the
>> texdoctkrc.default file you copied?
>
> i downloaded the .orig.tar.gz tetex 2 file and took the file from it.

Well, then this is no wonder. Of course we do not make such changes to the
orig.tar.gz file - it's supposed to be original. The changes are in the
diff.gz file, and most of them are in there only in the form of patches
that are applied during the build process.

> maybe i made a mistake somewhere, if the error can't be reproduced
> please accept my apologies to have submitted a "the man behind the keyboard" bug

Hm, at least on your system they can be reproduced, can't they? So there
must be a little more than just PEBCAK.

I think you should try the following procedure for debugging. It looks
somewhat complicated, because we want to get rid of all possible mess on
your system and of packages depending on tetex, but we want to keep the
configuration of the packages. First, call

apt-get remove tetex-base tetex-bin tetex-extra 

But say *No* when it asks about other packages to be removed with
tetex-base. Instead, note down the package names. Then do

apt-get remove "list of all packages noted down, plus the texinfo package"

This should remove these packages, but keep their configuration in
/etc/texmf. Then do 

apt-get --purge remove tetex-base tetex-bin tetex-extra texinfo

Thus removing all configuration files together with the packages.

At this point, /var/lib/texmf and /usr/share/texmf should not exist any
more. If they do, find the packages that still have files in there. The command

for file in `find /usr/share/texmf/ -type f | sed -e 's@^/@@'`; do dpkg -S $file | cut -d : -f 1 ; done | sort | uniq

will give a list (this might take looong!); note them down and remove
them (don't purge). If /var/lib/texmf or /usr/share/texmf are still
there, please send us a list of files in them:

find /usr/share/texmf -type f
find /var/lib/texmf -type f

and rename them. At this point, /etc/texmf should contain only files
registered by the packages we removed, but didn't purge. But there might
be others, with bad side effects. Find them with the following command:

for file in `find /etc/texmf -type f | sed -e 's@^/@@'`; do pack=`dlocate $file`; test "$pack" || grep $file /var/lib/ucf/hashfile >/dev/null || echo "$file is in no package" ; done

If the files have endings like dpkg-old or dpkg-new or the like, you can
safely ignore them. All other files should be moved out of the way (and
please give us a list).

After that, please install tetex-base and tetex-extra again.

texdoctk should work now. If it does, you can install all the other
packages you removed. If not, we'll have to find out why.

Regards, Frank
-- 
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer




Reply to: