Package: ttf-mona
Version: 2.90-3
Severity: normal
Tags: patch

Removing this package fails:

# LANG=C aptitude remove ttf-mona
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages will be REMOVED:
  ttf-mona
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 2920kB will be freed.
Writing extended state information... Done
(Reading database ... 227037 files and directories currently installed.)
Removing ttf-mona ...
/var/lib/dpkg/info/ttf-mona.prerm: 34: DEFOMA_FONT: not found
dpkg: error processing ttf-mona (--remove):
 subprocess installed pre-removal script returned error exit status 127
Errors were encountered while processing:
 ttf-mona
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
#

Fixed by adding '$' in prerm script.

--- /var/lib/dpkg/info/ttf-mona.prerm.orig      2009-09-14 17:08:08.000000000 
+0900
+++ /var/lib/dpkg/info/ttf-mona.prerm   2009-10-13 02:30:11.000000000 +0900
@@ -23,7 +23,7 @@

 case "$1" in
     remove|upgrade|deconfigure)
-       DEFOMA_FONT -vt purge-all $DEFOMA_HINTS_FILE >/dev/null
+       $DEFOMA_FONT -vt purge-all $DEFOMA_HINTS_FILE >/dev/null
         ;;
     failed-upgrade)
         ;;

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'),
(1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.31-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ttf-mona depends on:
ii  defoma                        0.11.10-1  Debian Font Manager -- automatic f

ttf-mona recommends no packages.

Versions of packages ttf-mona suggests:
ii  fontconfig                    2.6.0-4    generic font configuration library
ii  x-ttcidfont-conf              32         TrueType and CID fonts configurati
ii  xserver-xorg                  1:7.5~1    the X.Org X server

-- debconf-show failed



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to