Unable to purge git-daemon-run
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-
--backup backup files before removing.
--backup-to <DIR> target directory for the backups.
--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/
#!/bin/sh
set -e
test "$1" = 'purge' || exit 0
sv down /etc/sv/git-daemon 2>/dev/null || :
sv down /etc/sv/
sv force-shutdown /etc/sv/git-daemon 2>/dev/null || :
sv force-stop /etc/sv/
rm -rf /etc/sv/
rm -rf /var/lib/
for i in '@*' current config lock state; do
rm -f /var/log/
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.
affects: | runit (Ubuntu) → git (Ubuntu) |
tags: | added: kinetic lunar mantic packaging |
Changed in git (Debian): | |
status: | Unknown → New |
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. /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 1020284
I've forwarded the bug to the git-daemon-run Debian package
https:/
Lorenzo