Public bug reported:
Binary package hint: ttf-opensymbol
On the ttf-opensymbol postinst there is the following:
if [ "$1" = "configure" ] && [ -x /usr/bin/fc-cache ] && [ -e
/etc/fonts/fonts.conf ]; then
echo "Updating fontconfig cache..."
fc-cache -f
fi
But if fc-cache fails, the package installation also fails. This should not
happen.
Here, I have:
# dpkg --configure -a
Setting up ttf-opensymbol (2.2.0~rc3~oof680m10-0ubuntu3) ...
Updating fontconfig cache...
"/usr/share/fonts": error scanning
"/usr/share/X11/fonts": error scanning
"/usr/local/share/fonts": error scanning
"/var/lib/defoma/fontconfig.d": error scanning
dpkg: error processing ttf-opensymbol (--configure):
subprocess post-installation script returned error exit status 4
Errors were encountered while processing:
ttf-opensymbol
This is because "fc-cache -f" fails, probably because a mixed version
of fontconfig installed (during a partial upgrade).
I think this should be replaced by:
fc-cache -fs || echo "Skipping"
Note that I added the "-s" switch, so that fc-cache don't access the
user's home directory.
** Affects: openoffice.org (Ubuntu)
Importance: Undecided
Status: Unconfirmed
--
ttf-opensymbol postinst should not fail on fc-cache failure
https://launchpad.net/bugs/98622
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs