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

Re: slink package upgrades fail



M.C. Vernon wrote:
>> I also get similar messages for tetex-base and tetex-bin and can neither
>> install nor remove these packages.
> 
> Yes, I have problems like this as well... :(
> 
> 
> tetex-bin included as an example. Shall I file a bug? and how do I fix
> this?
> 
> Matthew
> 
> root@pick:~# dpkg -i
> /mnt/public/pub/unix/Linux/debian/dists/slink/main/binary-i386/tex/tetex-bin_0.9.981008-1.deb
> Selecting previously deselected package tetex-bin.
> (Reading database ... 42207 files and directories currently installed.)
> Preparing to replace tetex-bin 0.9.981008-1 (using
> .../tex/tetex-bin_0.9.981008-1.deb) ...
> Unpacking replacement tetex-bin ...
> rm: /usr/lib/texmf/web2c: is a directory
> dpkg: warning - old post-removal script returned error exit status 1
> dpkg - trying script from the new package instead ...
> rm: /usr/lib/texmf/web2c: is a directory
> dpkg: error processing
> /mnt/public/pub/unix/Linux/debian/dists/slink/main/binary-i386/tex/tetex-bin_0.9.981008-1.deb
> (--install):
>  subprocess new post-removal script returned error exit status 1
> rm: /usr/lib/texmf/web2c: is a directory
> dpkg: error while cleaning up:
>  subprocess post-removal script returned error exit status 1
> Errors were encountered while processing:
> 
> /mnt/public/pub/unix/Linux/debian/dists/slink/main/binary-i386/tex/tetex-bin_0.9.981008-1.deb

I had similar problems when I upgraded some TeTeX packages today.  I then
took a look in the bug reporting system to see if a bug report had been
filed, and sure enough, one possible solution is to run this snippet of
code (taken from the postinst script for tetex-bin):

if [ ! -L /usr/lib/texmf/web2c ]
then
  mv /usr/lib/texmf/web2c/* /var/lib/texmf/web2c
  rmdir /usr/lib/texmf/web2c
  ln -s /var/lib/texmf/web2c /usr/lib/texmf/
fi

This ensures that /usr/lib/texmf/web2c is a link to /var/lib/texmf/web2c,
as it is supposed to be.  After I'd done this, the packages installed
without a problem.

YMMV.
-- 
       /'"`\  zzzZ  | My PGP Public Key is available at:
      ( - - )       | <http://home1.inet.tele.dk/renehl/>
--oooO--(_)--Oooo------------------------------------------ 
 Don't ya just hate it when there's not enough room to fin 


Reply to: