[Pkg-fonts-devel] Bug#607496: ttf-takao-gothic: Fails to upgrade

Garrett McLean gmclean at gmail.com
Sun Dec 19 02:40:35 UTC 2010


Package: ttf-takao-gothic
Version: 003.02.01-2
Severity: grave
Justification: renders package unusable

I tried to upgrade today and this happened:

---
The following packages will be upgraded:
  ttf-takao-gothic
1 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/12.7 MB of archives. After unpacking 32.8 kB will be freed.
Do you want to continue? [Y/n/?]
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Reading changelogs... Done
(Reading database ... 132192 files and directories currently installed.)
Preparing to replace ttf-takao-gothic 003.02.01-2 (using .../ttf-takao-
gothic_003.02.01-3_all.deb) ...
/var/lib/dpkg/tmp.ci/preinst: 18: Syntax error: Bad function name
dpkg: error processing /var/cache/apt/archives/ttf-takao-
gothic_003.02.01-3_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 2
configured to not write apport reports
                                      Errors were encountered while processing:
 /var/cache/apt/archives/ttf-takao-gothic_003.02.01-3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
---

Taking a gander at the preinst script in the .deb, the relevant "bad function
name" seems to be check_broken_ttf-japanese-gothic()

I downloaded the source, changed the dashes in the function name to
underscores, repackaged, crossed my fingers and successfully installed the
modified package. I would submit a patch, but I don't really know how to use
patch and it's a pretty darn easy fix.

Thanks for all your hard work!



-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information





More information about the Pkg-fonts-devel mailing list