"rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory" when updating to 1.28.3-4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pango1.0 (Debian) |
Fix Released
|
Unknown
|
|||
pango1.0 (Ubuntu) |
Fix Released
|
High
|
Michael Vogt | ||
Natty |
Fix Released
|
High
|
Michael Vogt |
Bug Description
When trying to update my natty system today, I got the following error when updating libpango1.0-0:
(Reading database ... 143454 files and directories currently installed.)
Preparing to replace libpango1.0-0 1.28.3-3 (using .../libpango1.
rm: cannot remove `/usr/share/
dpkg: error processing /var/cache/
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ ls -ld /usr/share/
drwxr-xr-x 2 root root 4096 2007-07-31 20:23 /usr/share/
Perhaps some leftover from the past as this system was installed some years ago and followed most of the time the current development release.
Related branches
Changed in pango1.0 (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in pango1.0 (Ubuntu Natty): | |
assignee: | nobody → Sebastien Bacher (seb128) |
Changed in pango1.0 (Debian): | |
status: | Unknown → Fix Released |
In my case the directory was empty, and "rmdir" instead of "rm -f" would have fixed it.
It is more likely that "rm -rf" was meant to be used here.
I will investigate if I can find a reference to some bug about this and provide a proper fix for this here.