[Adduser-devel] Bug#421089: deluser and perl-modules
    Josip Rodin 
    joy at debbugs.entuzijast.net
       
    Thu Apr 26 10:51:37 UTC 2007
    
    
  
Package: adduser,ippl
Severity: important
Hi,
% sudo dpkg -P ippl
(Reading database ... 8277 files and directories currently installed.)
Removing ippl ...
Stopping IP protocols logger: ippl.
Purging configuration files for ippl ...
Removing system user
/usr/sbin/deluser: In order to use the --remove-home, --remove-all-files,
and --backup features,
you need to install the `perl-modules' package. To accomplish that, run
apt-get install perl-modules.
dpkg: error processing ippl (--purge):
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 ippl
% 
Hrm.
% apt-cache show perl-modules | grep Priority
Priority: standard
% grep -B2 -A2 deluser /var/lib/dpkg/info/ippl.p*
        rm -rf /var/log/ippl
        
        if command -v deluser >/dev/null; then
          echo >&2 'Removing system user'
          deluser --remove-home --system $USERNAME
        else
          echo >&2 'Not removing system user, deluser not found'
        fi
fi
% 
Obviously I'll install perl-modules to work around this problem, but there
should be a better way.
-- 
     2. That which causes joy or happiness.
    
    
More information about the Adduser-devel
mailing list