Package: libpango1.0-0
Version: 1.28.3-4
Severity: serious
Justification: Fails to install

Hi,

upgrading libpango1.0-0 from 1.28.3-1+squeeze2 (Squeeze) to 1.28.3-4
(experimental) fails:

        $ sudo apt-get install libpango1.0-0=1.28.3-4
        Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        The following packages were automatically installed and are no longer 
required:
          libxcb-render-util0 libpango1.0-common
        Use 'apt-get autoremove' to remove them.
        Suggested packages:
          ttf-japanese-gothic ttf-japanese-mincho ttf-thryomanes ttf-baekmuk 
ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp
        The following packages will be upgraded:
          libpango1.0-0
        1 upgraded, 0 newly installed, 0 to remove and 847 not upgraded.
        34 not fully installed or removed.
        Need to get 0 B/409 kB of archives.
        After this operation, 131 kB of additional disk space will be used.
        (Reading database ... 207505 files and directories currently installed.)
        Preparing to replace libpango1.0-0 1.28.3-1+squeeze2 (using 
.../libpango1.0-0_1.28.3-4_i386.deb) ...
        rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory
        dpkg: error processing 
/var/cache/apt/archives/libpango1.0-0_1.28.3-4_i386.deb (--unpack):
         subprocess new pre-installation script returned error exit status 1
        configured to not write apport reports
                                              Errors were encountered while 
processing:
         /var/cache/apt/archives/libpango1.0-0_1.28.3-4_i386.deb
        E: Sub-process /usr/bin/dpkg returned an error code (1)
        $

Looking at the pre-installation script reveals this:

        $ cat libpango1.0-0_1.28.3-4_amd64/DEBIAN/preinst 
        #!/bin/sh
        set -e

        if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt-nl 1.28.3-4; 
then
            rm -f /usr/share/doc/libpango1.0-0
        fi


        $

It seems that rm is missing the -r option. After manually removing the
directory everything works fine:

        $ sudo rmdir /usr/share/doc/libpango1.0-0
        $

Best regards

Alexander Kurtz

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to