Bug#571626: common-lisp-controller: After removal, purging of this package fails

Osamu Aoki osamu at debian.org
Fri Feb 26 15:32:54 UTC 2010


Package: common-lisp-controller
Version: 7.0
Severity: normal

>> Under aptitude: removal of common-lisp-controller with "-":

Removing common-lisp-controller ...

>> This went OK.
>> Under aptitude: removal of common-lisp-controller with "_":

Purging configuration files for common-lisp-controller ...
/usr/sbin/deluser: The user `cl-builder' does not exist.
The group `cl-builder' does not exist.
/usr/sbin/deluser: The user `cl-builder' does not exist.
dpkg: error processing common-lisp-controller (--purge):
 subprocess installed post-removal script returned error exit status 128
Errors were encountered while processing:
 common-lisp-controller
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:

>> This fails.

I think package script has room to improve.

Hmmm.... common-lisp-controller.postrm has lines like:
          deluser cl-builder  || true
          delgroup cl-builder  || true

These can not be the source of problem. Let me remove -e and add -x and run again:
Removing common-lisp-controller ...
+ case "$1" in
+ '[' remove = purge ']'
+ exit 0
Purging configuration files for common-lisp-controller ...
+ case "$1" in
+ rm -rf /var/cache/common-lisp-controller
+ rm -f /var/lib/common-lisp-controller/lisp-config.lisp
+ rm -rf '/usr/share/common-lisp/clbuild/*'
+ deluser cl-builder
Removing user `cl-builder' ...
Warning: group `cl-builder' has no more members.
Done.
+ delgroup cl-builder
The group `cl-builder' does not exist.
+ true
+ '[' purge = purge ']'
+ '[' -e /usr/share/debconf/confmodule ']'
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/common-lisp-controller.postrm purge
+ case "$1" in
+ rm -rf /var/cache/common-lisp-controller
+ rm -f /var/lib/common-lisp-controller/lisp-config.lisp
+ rm -rf '/usr/share/common-lisp/clbuild/*'
+ deluser cl-builder
/usr/sbin/deluser: The user `cl-builder' does not exist.
+ true
+ delgroup cl-builder
+ true
+ '[' purge = purge ']'
+ '[' -e /usr/share/debconf/confmodule ']'
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ db_purge
+ _db_cmd 'PURGE '
+ IFS=' '
+ printf '%s\n' 'PURGE '
+ IFS='
'
+ read -r _db_internal_line
+ RET='20 Unsupported command "the" (full line was "The group `cl-builder'\'' does not exist.") received from confmodule.'
+ case ${_db_internal_line%%[   ]*} in
+ return 20
+ exit 0
dpkg: error processing common-lisp-controller (--purge):
 subprocess installed post-removal script returned error exit status 128
Processing triggers for man-db ...
Errors were encountered while processing:
 common-lisp-controller
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:

>> Hm... I did : db_purge || true

no good.

>> How about . /usr/share/debconf/confmodule || true

no good ... maybe some code is run as exec or something.

I removed these lines ---> OK I removed package.  But this is last resort.

This looks like some kind of debconf confmodule problem.

Osamu

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

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

Versions of packages common-lisp-controller depends on:
ii  adduser                       3.112      add and remove users and groups
ii  bash                          4.1-1      The GNU Bourne Again SHell
ii  cl-asdf                       2:1.502-1  Another System Definition Facility
ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy
ii  debianutils                   3.2.2      Miscellaneous utilities specific t
ii  perl                          5.10.1-11  Larry Wall's Practical Extraction 
ii  realpath                      1.15       Return the canonicalized absolute 

common-lisp-controller recommends no packages.

Versions of packages common-lisp-controller suggests:
ii  sbcl                        1:1.0.34.0-1 A Common Lisp compiler and develop

-- debconf information:
  common-lisp-controller/long-site-name: Site name not initialized
  common-lisp-controller/short-site-name: Unknown






More information about the pkg-common-lisp-devel mailing list