Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory
Alexander Kurtz
kurtz.alex at googlemail.com
Sat Mar 5 18:18:19 UTC 2011
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20110305/0a830470/attachment.pgp>
More information about the pkg-gnome-maintainers
mailing list