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

Bug#65432: tetex-bin: kpsewhich cannot find file fmtutil.cnf



tetex-bin Version: 1.0.6-7

    Ok. Some consitency checks:

I'll do this twice:

First, before attempting to install tetex-bin, having removed
tetex-bin with apt-get since the installation failed and tetex-bin is
only half-configured.  This check shows what is in the system before
attempting to install tetex-bin, and,

Second, I do the same after an attempt to install tetex-bin using the command:

    apt-get install tetex-bin

The results of those are shown after a line of equal signs,  ============   

Also, I comment on the similarities and differences between the
`before' and `after' results in this first section.



Here are the first set of checks:

The system looks OK:

  #  apt-get -f install
  Reading Package Lists... Done
  Building Dependency Tree... Done
  0 packages upgraded, 0 newly installed, 0 to remove and 4 not upgraded.


    Do you have /usr/lib/texmf? You should only have it as a link to
    /usr/share/texmf. It is obsolete.

No, /usr/lib/texmf does not exist at this point, nor after attempting
to install tetex-bin:

  # ls -al /usr/lib/texmf
  ls: /usr/lib/texmf: No such file or directory

However /usr/share/texmf does exist and is populated:

After attempting to install tetex-bin,
the directory continues to exist with the addition of a link:
web2c -> /var/lib/texmf/web2c

Here is the listing before attempting to install tetex-bin (see below
for the `after' listing):


  # ls -al /usr/share/texmf
  total 92
  drwxr-xr-x   20 root     root         4096 Jun 11 19:55 .
  drwxr-xr-x  118 root     root         4096 Jun 11 10:01 ..
  -rw-r--r--    1 root     root         1326 Sep 26  1998 ChangeLog
  -rw-r--r--    1 root     root          710 Jun  3  1999 aliases
  drwxr-xr-x    4 root     root         4096 Jun  9 11:26 bibtex
  drwxr-xr-x    5 root     root         4096 Jun  9 11:26 context
  lrwxrwxrwx    1 root     root           12 Jun  9 11:26 doc -> ../doc/texmf
  drwxr-xr-x    9 root     root         4096 Jun  9 11:26 dvips
  drwxr-xr-x    4 root     root         4096 Jun  9 11:26 etex
  drwxr-xr-x    2 root     root         4096 Jun  9 11:26 fontname
  drwxr-xr-x   11 root     root         4096 Jun  9 11:26 fonts
  lrwxrwxrwx    1 root     root           19 Jun  9 11:26 ls-R -> /var/lib/texmf/ls-R
  drwxr-xr-x    4 root     root         4096 Jun  9 11:26 makeindex
  drwxr-xr-x    5 root     root         4096 Jun  9 11:26 metafont
  drwxr-xr-x    6 root     root         4096 Jun  9 11:26 metapost
  drwxr-xr-x    2 root     root         4096 Jun  9 11:26 mft
  drwxr-xr-x    6 root     root         4096 Jun  9 11:26 omega
  drwxr-xr-x    4 root     root         4096 Jun  9 11:26 pdfetex
  drwxr-xr-x    6 root     root         4096 Jun  9 11:26 pdftex
  drwxr-xr-x   13 root     root         4096 Jun  9 12:30 tex
  drwxr-xr-x    5 root     root         4096 Jun  9 11:26 texconfig
  drwxr-xr-x    2 root     root         4096 Apr 24 13:47 ttf2pk
  drwxr-xr-x    2 root     root         4096 Apr 24 13:47 ttf2tfm
  -rw-r--r--    1 root     root           50 Apr  4  1999 updates.dat
  drwxr-xr-x    2 root     root         4096 Jun  9 11:26 xdvi


    /usr/share/texmf/web2c should be a link to
    /var/lib/texmf/web2c. tetex-base should do you this link. Did you try
    to reinstall this one too?

tetex-base is already installed:

  # apt-get install tetex-base
  Reading Package Lists... Done
  Building Dependency Tree... Done
  Sorry, tetex-base is already the newest version
  0 packages upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

  # dpkg -s tetex-base
  Package: tetex-base
  Status: install ok installed
  Installed-Size: 27546
  ...
  Version: 1.0-10


No, /usr/share/texmf/web2c does not exist at this time:

  # ls -al /usr/share/texmf/web2c
  ls: /usr/share/texmf/web2c: No such file or directory

After attempting to install tetex-bin, the link is created:
/usr/share/texmf/web2c -> /var/lib/texmf/web2c
(see below for the `after' listing)

   /usr/share/texmf/ls-R should be a link to /var/lib/texmf/ls-R. 

Yes, this is true both `before' and `after' attempting to install tetex-bin:

  # ls -al  /usr/share/texmf/ls-R
  lrwxrwxrwx    1 root     root           19 Jun  9 11:26 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R


    A grep through this file should find you fmtutil.cnf. kpsewhich
    searches through /usr/share/texmf/ls-R to find the location of
    files.

Yes, fmtutil.cnf is in /var/lib/texmf/ls-R.  This is true both `before'
and `after' attempting to install tetex-bin:

  # grep -ni fmtutil /var/lib/texmf/ls-R
  5538:fmtutil.cnf


    And last but not least, /var/lib/texmf/ls-R and /var/spool/texmf/ls-R
    should be plane files.

One of them, /var/spool/texmf/ls-R does not exist, but the other does,
and is a plain file.  This is true both `before' and `after'
attempting to install tetex-bin:


  # ls -al /var/lib/texmf/ls-R  /var/spool/texmf/ls-R
  ls: /var/spool/texmf/ls-R: No such file or directory
  -rw-r--r--    1 root     root        59775 Jun  9 12:30 /var/lib/texmf/ls-R


=============================

Here are the results after attempting to install tetex-bin:

  #  apt-get install tetex-bin
  Reading Package Lists... Done
  Building Dependency Tree... Done
  The following NEW packages will be installed:
    tetex-bin 
  0 packages upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
  Need to get 0B/2656kB of archives. After unpacking 6040kB will be used.
  Selecting previously deselected package tetex-bin.
  (Reading database ... 87894 files and directories currently installed.)
  Unpacking tetex-bin (from .../tetex-bin_1.0.6-7_i386.deb) ...

   checking for old tex packages ... none.
  Setting up tetex-bin (1.0.6-7) ...
  mktexlsr: Done.
  Error: kpsewhich cannot find file fmtutil.cnf
  dpkg: error processing tetex-bin (--configure):
   subprocess post-installation script returned error exit status 1
  Errors were encountered while processing:
   tetex-bin
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  # dpkg --configure --pending
  Setting up tetex-bin (1.0.6-7) ...
  mktexlsr: Done.
  Error: kpsewhich cannot find file fmtutil.cnf
  dpkg: error processing tetex-bin (--configure):
   subprocess post-installation script returned error exit status 1
  Errors were encountered while processing:
   tetex-bin

  # dpkg -s tetex-bin
  Package: tetex-bin
  Status: install ok half-configured
  Priority: standard
  Section: tex
  Installed-Size: 5898
  Maintainer: teTeX maintainers <debian-tetex-maint@lists.debian.org>
  Version: 1.0.6-7


Now for the consistency checks:

     Do you have /usr/lib/texmf? You should only have it as a link to
     /usr/share/texmf. It is obsolete.

No, /usr/lib/texmf does not exist:

  # ls -al  /usr/lib/texmf
  ls: /usr/lib/texmf: No such file or directory

But /usr/share/texmf is populated:

  # ls -al /usr/share/texmf
  total 92
  drwxr-xr-x   20 root     root         4096 Jun 12 09:51 .
  drwxr-xr-x  118 root     root         4096 Jun 11 10:01 ..
  -rw-r--r--    1 root     root         1326 Sep 26  1998 ChangeLog
  -rw-r--r--    1 root     root          710 Jun  3  1999 aliases
  drwxr-xr-x    4 root     root         4096 Jun  9 11:26 bibtex
  drwxr-xr-x    5 root     root         4096 Jun  9 11:26 context
  lrwxrwxrwx    1 root     root           12 Jun  9 11:26 doc -> ../doc/texmf
  drwxr-xr-x    9 root     root         4096 Jun  9 11:26 dvips
  drwxr-xr-x    4 root     root         4096 Jun  9 11:26 etex
  drwxr-xr-x    2 root     root         4096 Jun  9 11:26 fontname
  drwxr-xr-x   11 root     root         4096 Jun  9 11:26 fonts
  lrwxrwxrwx    1 root     root           19 Jun  9 11:26 ls-R -> /var/lib/texmf/ls-R
  drwxr-xr-x    4 root     root         4096 Jun  9 11:26 makeindex
  drwxr-xr-x    5 root     root         4096 Jun  9 11:26 metafont
  drwxr-xr-x    6 root     root         4096 Jun  9 11:26 metapost
  drwxr-xr-x    2 root     root         4096 Jun  9 11:26 mft
  drwxr-xr-x    6 root     root         4096 Jun  9 11:26 omega
  drwxr-xr-x    4 root     root         4096 Jun  9 11:26 pdfetex
  drwxr-xr-x    6 root     root         4096 Jun  9 11:26 pdftex
  drwxr-xr-x   13 root     root         4096 Jun  9 12:30 tex
  drwxr-xr-x    5 root     root         4096 Jun  9 11:26 texconfig
  drwxr-xr-x    2 root     root         4096 Apr 24 13:47 ttf2pk
  drwxr-xr-x    2 root     root         4096 Apr 24 13:47 ttf2tfm
  -rw-r--r--    1 root     root           50 Apr  4  1999 updates.dat
  lrwxrwxrwx    1 root     root           20 Jun 12 09:51 web2c -> /var/lib/texmf/web2c
  drwxr-xr-x    2 root     root         4096 Jun  9 11:26 xdvi


   /usr/share/texmf/web2c should be a link to
   /var/lib/texmf/web2c. 

Yes, /usr/share/texmf/web2c  is a link:

  # ls -al /usr/share/texmf/web2c 
  lrwxrwxrwx    1 root     root    20 Jun 12 09:51 /usr/share/texmf/web2c -> /var/lib/texmf/web2c

   tetex-base should do you this link. Did you try
   to reinstall this one too?

(tetex-base is already installed)

   /usr/share/texmf/ls-R should be a link to /var/lib/texmf/ls-R. 

Yes, /usr/share/texmf/ls-R is a link and /var/lib/texmf/ls-R does exist:

  # ls -al /usr/share/texmf/ls-R /var/lib/texmf/ls-R  
  lrwxrwxrwx    1 root     root           19 Jun  9 11:26 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R
  -rw-r--r--    1 root     root        59775 Jun  9 12:30 /var/lib/texmf/ls-R

   A grep through this file should find you fmtutil.cnf. kpsewhich
   searches through /usr/share/texmf/ls-R to find the location of
   files.

Yes,  grep finds fmtutil.cnf

  # grep -ni fmtutil /var/lib/texmf/ls-R
  5538:fmtutil.cnf

   And last but not least, /var/lib/texmf/ls-R and /var/spool/texmf/ls-R
   should be plane files.

No,  /var/spool/texmf/ls-R does not exist
Yes, /var/lib/texmf/ls-R is a plain file.

  # ls -al /var/lib/texmf/ls-R  /var/spool/texmf/ls-R
  ls: /var/spool/texmf/ls-R: No such file or directory
  -rw-r--r--    1 root     root        59775 Jun  9 12:30 /var/lib/texmf/ls-R





Reply to: