#!/bin/sh set -e . /usr/share/debconf/confmodule #DEBHELPER# /usr/share/xfonts-traditional/checkfiles prerm "$@" case "$1" in remove) echo 'Checking that "fixed" is not from xfonts-traditional...' if grep '^fixed[ ][ ]*-trad-' \ /etc/X11/fonts/misc/xfonts-base.alias \ /usr/share/fonts/X11/misc/fonts.alias; then cat >&2 <<'END' Removing xfonts-traditional would break your X server by removing "fixed". You should not remove xfonts-traditional while "fixed" refers to one of its fonts. You probably want to check the differences between the various /etc/X11/fonts/misc/xfonts-base.alias*, reconcile any changes, and then run "update-fonts-alias misc". After that you can retry the removal. END printf 'Continue anyway ? [n/y] ' read x