Fails to uninstall with "unknown option: -f"

Bug #194128 reported by Bryan Donlan
8
Affects Status Importance Assigned to Milestone
ttf-arphic-ukai (Ubuntu)
Fix Released
Undecided
Arne Goetje

Bug Description

Binary package hint: ttf-arphic-ukai

(Reading database ... 282211 files and directories currently installed.)
Removing ttf-arphic-ukai ...
Updating fontconfig cache for /usr/share/fonts/truetype/arphic
No CIDSupplement specified for KochiMincho-Regular-JaH, defaulting to 0.
No CIDSupplement specified for Gulim-Regular, defaulting to 0.
No CIDSupplement specified for Batang-Regular, defaulting to 0.
No CIDSupplement specified for Batang-Bold, defaulting to 0.
No CIDSupplement specified for UMingCN, defaulting to 0.
No CIDSupplement specified for KochiGothic-Regular-JaH, defaulting to 0.
No CIDSupplement specified for SazanamiMincho-Regular-JaH, defaulting to 0.
No CIDSupplement specified for Mona-Regular, defaulting to 0.
No CIDSupplement specified for KochiGothic-Regular, defaulting to 0.
No CIDSupplement specified for Dotum-Regular, defaulting to 0.
No CIDSupplement specified for KochiMincho-Regular, defaulting to 0.
No CIDSupplement specified for Headline-Regular, defaulting to 0.
No CIDSupplement specified for SazanamiGothic-Regular-JaH, defaulting to 0.
No CIDSupplement specified for Mona-Regular-JaH, defaulting to 0.
No CIDSupplement specified for SazanamiGothic-Regular, defaulting to 0.
No CIDSupplement specified for SazanamiMincho-Regular, defaulting to 0.
No CIDSupplement specified for Dotum-Bold, defaulting to 0.
opendir: No such file or directory
E: Unknown option: -f.
dpkg: error processing ttf-arphic-ukai (--remove):
 subprocess pre-removal script returned error exit status 1

This also happens with ttf-arphic-uming

Versions of the packages in question, as well as direct depends/recommends:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==========================================-====================================-=================================================================
ri ttf-arphic-ukai 0.2.20080216-0ubuntu1 "AR PL UKai" Chinese Unicode TrueType font collection Kaiti style
ri ttf-arphic-uming 0.2.20080216-0ubuntu1 "AR PL UMing" Chinese Unicode TrueType font collection Mingti sty
ii debconf 1.5.19 Debian configuration management system
ii defoma 0.11.10-0.2 Debian Font Manager -- automatic font configuration framework
ii fontconfig 2.5.0-2ubuntu2 generic font configuration library - support binaries
ii x-ttcidfont-conf 26 TrueType and CID fonts configuration for X
ii xutils 1:7.3+10ubuntu5 X Window System utility programs metapackage
No packages found matching xdelta.

Revision history for this message
Bryan Donlan (bdonlan) wrote :

The bug is caused by this line in the prerm script:
defoma-font -f purge-all /etc/defoma/hints/${PACKAGE}.hints

-f is not a documented option for defoma-font. Since dh_installdefoma already provides the necessary removal stanzas, the handwritten prerm should simply be removed.

Revision history for this message
Bryan Donlan (bdonlan) wrote :

I have uploaded packages which should fix the problem to my PPA. https://launchpad.net/~bdonlan/+archive
Attached is the debdiff.

Revision history for this message
Arne Goetje (arnegoetje) wrote :

found already. Expect a new upload soon.

Changed in ttf-arphic-ukai:
assignee: nobody → arnegoetje
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ttf-arphic-ukai - 0.2.20080216.1-0ubuntu1

---------------
ttf-arphic-ukai (0.2.20080216.1-0ubuntu1) hardy; urgency=low

  * fixed a typo in debian/prerm (LP: #194128)
  * debian/control: changed Architecture fro 'any' to 'all' (LP: #194168)
  Copied from FONTLOG:
  * Bug fix: 45 Big5 PUA glyphs and 4 HKSCS PUA glyphs have not been assigned
    codepoints -- FIXED.
  * Remaining issue: some glyphs in the unencoded space disappeared when
    building the ttc. -- INVESTIGATING

 -- Arne Goetje <email address hidden> Wed, 22 Feb 2008 11:24:16 +0800

Changed in ttf-arphic-ukai:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.