Unable to purge git-daemon-run

Bug #1989655 reported by cubells
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git (Debian)
New
Unknown
git (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 22.10 completely updated.

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Kinetic Kudu (development branch)
Release: 22.10
Codename: kinetic

If I run

# apt purge git-daemon-run

I've got:

Unknown option: f
deluser USER
  remove a normal user from the system
  example: deluser mike

  --remove-home remove the users home directory and mail spool
  --remove-all-files remove all files owned by user
  --backup backup files before removing.
  --backup-to <DIR> target directory for the backups.
                            Default is the current directory.
  --system only remove if system user

delgroup GROUP
deluser --group GROUP
  remove a group from the system
  example: deluser --group students

  --system only remove if system group
  --only-if-empty only remove if no members left

deluser USER GROUP
  remove the user from a group
  example: deluser mike students

general options:
  -q, --quiet don't give process information to stdout
  -d, --debug be more verbose
  -h, --help usage message
  -v, --version version number and copyright
  -c FILE, --conf=FILE use FILE as configuration file

dpkg: s'ha produït un error en processar el paquet git-daemon-run (--purge):
 el subprocés «s'ha instal·lat el script git-daemon-run del paquet post-removal» retornà el codi d'eixida d'error 1
S'han trobat errors en processar:
 git-daemon-run

# cat /var/lib/dpkg/info/git-daemon-run.postrm

#!/bin/sh
set -e

test "$1" = 'purge' || exit 0

sv down /etc/sv/git-daemon 2>/dev/null || :
sv down /etc/sv/git-daemon/log 2>/dev/null || :
sv force-shutdown /etc/sv/git-daemon 2>/dev/null || :
sv force-stop /etc/sv/git-daemon/log 2>/dev/null || :
rm -rf /etc/sv/git-daemon/supervise /etc/sv/git-daemon/log/supervise
rm -rf /var/lib/supervise/git-daemon /var/lib/supervise/git-daemon.log

for i in '@*' current config lock state; do
  rm -f /var/log/git-daemon/$i
done
rmdir /var/log/git-daemon || :

getent passwd gitlog >/dev/null || exit 0
! deluser --version >/dev/null 2>&1 || exec deluser -f gitlog
echo 'deluser program not available, not removing system user "gitlog".' >&

By changing this line:

! deluser --version >/dev/null 2>&1 || exec deluser -f gitlog

by this:

! deluser --version >/dev/null 2>&1 || exec deluser gitlog

made the trick.

Revision history for this message
Lorenzo Puliti (plorenzo) wrote :

Hi,

> # cat /var/lib/dpkg/info/git-daemon-run.postrm

this postrm script is from git:src, not from runit:src. This bug has nothing to do with runit, should be reassigned to the git-daemon-run package.
I've forwarded the bug to the git-daemon-run Debian package
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020284

Lorenzo

Revision history for this message
cubells (cubells) wrote :

Thanks Lorenzo.

affects: runit (Ubuntu) → git (Ubuntu)
tags: added: kinetic lunar mantic packaging
Changed in git (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.