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

Bug#181882: tetex-base: Installation error: "kpsewhich: command not found"



Atsuhito Kohda wrote:
From: Eugen Dedu <Eugen.Dedu@prism.uvsq.fr>
Subject: Bug#181882: tetex-base: Installation error: "kpsewhich: command not found"
Date: Fri, 21 Feb 2003 13:56:49 +0100


Unpacking tetex-base (from .../tetex-base_2.0.1-1_all.deb) ...
Setting up tetex-base (2.0.1-1) ...
/var/lib/dpkg/info/tetex-base.postinst: line 1: kpsewhich: command not
found


If possible, please try the following;

- edit /var/lib/dpkg/info/tetex-base.postinst in the line 60

    if [ -x ${UPDMAP} -a -x /usr/bin/updmap -a -f ${BASEMAP} -a X"`kpsewhich --expand-var='$TEXMFMAIN'`" = X"/usr/share/texmf" ]; then

to

    if [ -x ${UPDMAP} -a -x /usr/bin/updmap -a -f ${BASEMAP} -a -x /usr/bin/kpsewhich -a X"`kpsewhich --expand-var='$TEXMFMAIN'`" = X"/usr/share/texmf" ]; then

- then run "dpkg --configure tetex-base"

If this worked for you, then please let us know.

root@eminescu:~# dpkg --purge tetex-base
(Reading database ... 46543 files and directories currently installed.)
Removing tetex-base ...
dpkg - warning: while removing tetex-base, directory `/etc/texmf/pdftex/context' not empty so not removed. dpkg - warning: while removing tetex-base, directory `/etc/texmf/pdftex' not empty so not removed. dpkg - warning: while removing tetex-base, directory `/etc/texmf/dvips' not empty so not removed. dpkg - warning: while removing tetex-base, directory `/etc/texmf/dvipdfm' not empty so not removed. dpkg - warning: while removing tetex-base, directory `/etc/texmf/updmap.d' not empty so not removed. dpkg - warning: while removing tetex-base, directory `/etc/texmf' not empty so not removed.
Purging configuration files for tetex-base ...
root@eminescu:~# dpkg --unpack /var/cache/apt/archives/tetex-base_2.0.1-1_all.deb
Selecting previously deselected package tetex-base.
(Reading database ... 40778 files and directories currently installed.)
Unpacking tetex-base (from .../tetex-base_2.0.1-1_all.deb) ...
root@eminescu:~# head -60 /var/lib/dpkg/info/tetex-base.postinst|tail -1
if [ -x ${UPDMAP} -a -x /usr/bin/updmap -a -f ${BASEMAP} -a X"`kpsewhich --expand-var='$TEXMFMAIN'`" = X"/usr/share/texmf" ]; then
root@eminescu:~# vi /var/lib/dpkg/info/tetex-base.postinst
root@eminescu:~# head -60 /var/lib/dpkg/info/tetex-base.postinst|tail -1
if [ -x ${UPDMAP} -a -x /usr/bin/updmap -a -f ${BASEMAP} -a -x /usr/bin/kpsewhich -a X"`kpsewhich --expand-var='$TEXMFMAIN'`" = X"/usr/share/texmf" ]; then
root@eminescu:~# dpkg --configure tetex-base
Setting up tetex-base (2.0.1-1) ...
/var/lib/dpkg/info/tetex-base.postinst: line 1: kpsewhich: command not found

root@eminescu:~#

Eugen




Reply to: