Bug#335429: xfs-xtt: Uninstallable - typo in postinst script
Package: xfs-xtt
Version: 1:1.4.1.xf430-6
Severity: serious
During installation I noticed following message:
Setting up xfs-xtt (1.4.1.xf430-6) ...
chown: `xfntserv:xfntserv': invalid user
dpkg: error processing xfs-xtt (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
xfs-xtt
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up xfs-xtt (1.4.1.xf430-6) ...
xfntsrv already exists.
postinst script contains:
if id xfntsrv > /dev/null 2> /dev/null; then
echo 'xfntsrv already exists.'
else
adduser --quiet --system --group --no-create-home --home /var/log/fontservers --gecos "X font server" --disabled-password --disabled-login xfntsrv
if [ ! -e /var/log/fontservers ] ; then
mkdir -p /var/log/fontservers
fi
chown -R xfntserv:xfntserv /var/log/fontservers
fi
Please notice, that existence of xfntsrv is checked and also xfntsrv
user and group are added. Then chown tries to use xfntserv name.
Regards
Artur
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-amd64-generic
Locale: LANG=C, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Versions of packages xfs-xtt depends on:
ii adduser 3.74 Add and remove users and groups
ii debconf 1.4.58 Debian configuration management sy
ii libc6 2.3.5-7 GNU C Library: Shared libraries an
ii zlib1g 1:1.2.3-6 compression library - runtime
xfs-xtt recommends no packages.
-- debconf information excluded
Reply to: