• Bug#266379: Can't rm directory in postinst

    From Martin Schulze@1:229/2 to All on Tue Aug 17 22:00:11 2004
    XPost: linux.debian.maint.tetex
    From: [email protected]

    Package: tetex-bin
    Version: 2.0.2-18

    During the ugrade of a sid chroot I noticed the following error:

    (Reading database ... 61584 files and directories currently installed.) Preparing to replace tetex-bin 2.0.2-15 (using .../tetex-bin_2.0.2-18_hppa.deb) ...
    Unpacking replacement tetex-bin ...
    rm: cannot remove `/usr/share/texmf/web2c': Is a directory
    Selecting previously deselected package tetex-base.
    Unpacking tetex-base (from .../tetex-base_2.0.2a-3_all.deb) ...

    Regards,

    Joey

    --
    Everybody talks about it, but nobody does anything about it! -- Mark Twain

    Please always Cc to me when replying to me on the lists.


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From =?iso-8859-1?q?Frank_K=FCster?=@1:229/2 to Martin Schulze on Wed Aug 18 10:30:11 2004
    XPost: linux.debian.maint.tetex
    From: [email protected]

    Martin Schulze <[email protected]> schrieb:

    Package: tetex-bin
    Version: 2.0.2-18

    During the ugrade of a sid chroot I noticed the following error:

    (Reading database ... 61584 files and directories currently installed.) Preparing to replace tetex-bin 2.0.2-15 (using .../tetex-bin_2.0.2-18_hppa.deb) ...
    Unpacking replacement tetex-bin ...
    rm: cannot remove `/usr/share/texmf/web2c': Is a directory
    Selecting previously deselected package tetex-base.
    Unpacking tetex-base (from .../tetex-base_2.0.2a-3_all.deb) ...

    This file has been a symlink previously. In the preinst, this symlink is removed[1], and the new package contains it as a directory. I do not
    understand the error message - either it is not a directory (it is non-existent, only in the filelist), or it is a directory, but there's
    no reason why it should be removed.

    I appreciate any hints how this error messages comes about, and how I
    can prevent it. But currently I'm happy to live with it, because only
    this way the symlink is in fact transformed to a directory.

    Regards, Frank

    [1] in the next version, it will just be moved to
    web2c.moved-by-preinst, so that it can be restored should the upgrade
    fail and back up to the old version


    --
    Frank K�ster, Biozentrum der Univ. Basel
    Abt. Biophysikalische Chemie

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Martin Schulze@1:229/2 to All on Wed Aug 18 11:00:16 2004
    XPost: linux.debian.maint.tetex
    From: [email protected]

    Frank K�ster wrote:
    During the ugrade of a sid chroot I noticed the following error:

    (Reading database ... 61584 files and directories currently installed.) Preparing to replace tetex-bin 2.0.2-15 (using .../tetex-bin_2.0.2-18_hppa.deb) ...
    Unpacking replacement tetex-bin ...
    rm: cannot remove `/usr/share/texmf/web2c': Is a directory
    Selecting previously deselected package tetex-base.
    Unpacking tetex-base (from .../tetex-base_2.0.2a-3_all.deb) ...

    This file has been a symlink previously. In the preinst, this symlink is removed[1], and the new package contains it as a directory. I do not understand the error message - either it is not a directory (it is non-existent, only in the filelist), or it is a directory, but there's
    no reason why it should be removed.

    I appreciate any hints how this error messages comes about, and how I
    can prevent it. But currently I'm happy to live with it, because only
    this way the symlink is in fact transformed to a directory.

    If I remember correctly it was the unstable chroot on paer. Feel free
    to investigate the problem on your own since you've got an acount on
    it. Maybe you find the problem.

    Regards,

    Joey

    --
    Everybody talks about it, but nobody does anything about it! -- Mark Twain

    Please always Cc to me when replying to me on the lists.

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From =?iso-8859-1?q?Frank_K=FCster?=@1:229/2 to Martin Schulze on Wed Aug 18 12:00:13 2004
    XPost: linux.debian.maint.tetex
    From: [email protected]

    Martin Schulze <[email protected]> wrote:

    If I remember correctly it was the unstable chroot on paer. Feel free
    to investigate the problem on your own since you've got an acount on
    it. Maybe you find the problem.

    The problem is reproducible in any chroot. I've investigated it. But I
    got only as far as to know that one would have to watch dpkg unpack the package, step by step.

    This is beyond my current ability, and since it works as it does,
    despite the error message, I decided not to delve into this before the
    release of sarge.

    Regards, Frank
    --
    Frank K�ster, Biozentrum der Univ. Basel
    Abt. Biophysikalische Chemie

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)