Your message dated Mon, 14 Mar 2011 16:23:15 +0100
with message-id <1300116195.22462.1.camel@alexander>
and subject line Re: Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot 
remove `/usr/share/doc/libpango1.0-0': Is a directory
has caused the Debian Bug report #616577,
regarding Upgrading libpango1.0-0 fails: rm: cannot remove 
`/usr/share/doc/libpango1.0-0': Is a directory
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
616577: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616577
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
Am Sonntag, den 13.03.2011, 21:35 +0000 schrieb Emilio Pozuelo Monfort:
> Yes, I know. See e.g. #609565 for a similar case. Downgrades are not 
> supported,
> so in that case you get to fix it.

Alright then.

Best regards

Alexander Kurtz

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


--- End Message ---

Reply via email to