for f in /usr/lib/openoffice/share/gallery/sg*;
do sudo dpkg-divert --add --rename --divert /usr/lib/openoffice/basis3.0/share/gallery/$(basename $f) $f;
done;
This solved it for me. Once Karmic hits the mirrors, you probably should remove those diversions (use "dpkg-divert --list" for that) before upgrading.
For all those who suffer from this on Jaunty:
for f in /usr/lib/ openoffice/ share/gallery/ sg*; openoffice/ basis3. 0/share/ gallery/ $(basename $f) $f;
do sudo dpkg-divert --add --rename --divert /usr/lib/
done;
This solved it for me. Once Karmic hits the mirrors, you probably should remove those diversions (use "dpkg-divert --list" for that) before upgrading.