[Bug 1989655] Re: Unable to purge git-daemon-run

Bug Watch Updater 1989655 at bugs.launchpad.net
Sat Nov 9 03:34:54 UTC 2024


** Changed in: git (Debian)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to git in Ubuntu.
https://bugs.launchpad.net/bugs/1989655

Title:
  Unable to purge git-daemon-run

Status in git package in Ubuntu:
  New
Status in git package in Debian:
  Fix Released

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/git/+bug/1989655/+subscriptions




More information about the foundations-bugs mailing list