Package: squidguard
Version: 1.5-5
Severity: important

Dear Maintainer,

on installations upgraded from Jessie the file /etc/init.d/squid3 remains
installed. This causes the follwing code to be executed in
/usr/sbin/update-squidguard:

116: if [ -n "${INITRUN}" ]; then
117:  if [ -e /etc/init.d/squid3 ]; then
118:    ${INITRUN} squid3 force-reload

The conditions on line 116 and 117 are met so 118 is being executed and fails,
since squid3 is no longer a valid service under Stretch. update-squidguard
exits with an error code due to the "e" option being set. The command produces
the following output:

Rebuild SquidGuard database - this can take a while.
squid3.service is not active, cannot reload.
invoke-rc.d: initscript squid3, action "force-reload" failed.

On vanilla Jessie installations upgraded to Stretch the problem doesn't occur
due to the following lines in update-squidguard:

70: if [ $(ls -1 ${DATADIR} | wc -l) -eq 0 ]; then
71:   echo "No data files found in ${DATADIR} - exiting update-squidguard." >&2
72:   exit 0
73: fi

Since /var/lib/squidguard/db/ is empty without user modification
update-squidguard exits on line 72 producing the following output:

No data files found in /var/lib/squidguard/db - exiting update-squidguard.

Since update-squidguard is called from the post installation script of
the squidguard package attempting to upgrade Jessie installations to Stretch
fails if /var/lib/squidguard/db/ is not empty (or at the very least will
result in the squidguard package being broken after the upgrade). Furthermore
update-squidguard remains broken as long as /etc/init.d/squid3 is not removed.

Workaround: Either manually remove /etc/init.d/squid3 or purge the squid3
(transition-)package using dpkg.

Thank you for your time.

Best regards,
Kim-Alexander Brodowski

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

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages squidguard depends on:
ii  debconf [debconf-2.0]  1.5.61
ii  libc6                  2.24-11+deb9u1
ii  libdb5.3               5.3.28-12+b1
ii  libldap-2.4-2          2.4.44+dfsg-5

Versions of packages squidguard recommends:
ii  liburi-perl  1.71-1
ii  libwww-perl  6.15-1
pn  squid3       <none>

Versions of packages squidguard suggests:
pn  ldap-utils      <none>
pn  squidguard-doc  <none>

-- Configuration Files:
/etc/logrotate.d/squidguard changed [not included]

-- debconf information excluded

Reply via email to