[Pkg-nginx-maintainers] Bug#1039905: nginx: The systemd unit will still remain in the system after the nginx package is purged.

Dmitrii Rebryshkin dmitry.r at cyberflow.net
Thu Jun 29 12:04:00 BST 2023


Package: nginx
Version: 1.22.1-9
Severity: normal
X-Debbugs-Cc: dmitry.r at cyberflow.net

When I install the nginx package, the nginx-common package is installed automatically due to its dependencies. The nginx-common package includes the systemd unit, which becomes enabled and activated upon installation.

If I purge the nginx package afterwards, only the nginx package will be removed, while the systemd unit will still remain in the system. This leads to failure after a reboot, as the necessary configuration for the nginx service is missing.

Steps to reproduce:
# apt install nginx
# apt purge -y nginx
# reboot
# systemctl list-units --failed 


-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nginx depends on:
ii  iproute2      6.1.0-3
ii  libc6         2.36-9
ii  libcrypt1     1:4.4.33-2
ii  libpcre2-8-0  10.42-1
ii  libssl3       3.0.9-1
ii  nginx-common  1.22.1-9
ii  zlib1g        1:1.2.13.dfsg-1

nginx recommends no packages.

nginx suggests no packages.

-- no debconf information



More information about the Pkg-nginx-maintainers mailing list