On Sun, 4 Sep 2016, Roland Rosenfeld wrote:
> On Sun, 04 Sep 2016, Cristian Ionescu-Idbohrn wrote:
>
> > Did another experiment:
> >
> >     # dpkg-reconfigure privoxy
> >
> > and hangs there.  No more questians asked.  The process table shows:
> >
> >     root     25980  0.6  0.1  71172 22280 pts/12   S+   15:03   0:00      
> > \_ /usr/bin/perl -w /usr/sbin/dpkg-reconfigure privoxy
> >     root     26034  0.0  0.0      0     0 pts/12   Z+   15:03   0:00        
> >   \_ [privoxy.postins] <defunct>
>
> Okay, that's good, since it's an easier way to reproduce the issue :-)
> In https://lists.debian.org/debian-mentors/2005/11/msg00067.html I
> found a similar problem description.
>
> So let's try the following: Please open
> /var/lib/dpkg/info/privoxy.postinst with an editor and add the command
> dh_stop after the line rm -f $CONFIG.ucftmp:
>
> --- privoxy.postinst.org      2016-08-27 22:28:32.000000000 +0200
> +++ privoxy.postinst  2016-09-04 15:59:42.189145833 +0200
> @@ -60,6 +60,7 @@
>       ucf --three-way --debconf-ok $CONFIG.ucftmp $CONFIG
>       ucfr privoxy $CONFIG
>       rm -f $CONFIG.ucftmp
> +     db_stop
>
>       if [ "x$2" != "x" ] && dpkg --compare-versions "$2" lt "3.0.4"
>       then
>
> And let me know, whether this helps.

It helps.  Here's the postinst x-trace:

,----
| + CONFDIR=/etc/privoxy
| + CONFIG=/etc/privoxy/config
| + EXAMPLE_CONFIG=/usr/share/privoxy/config
| + . /usr/share/debconf/confmodule
| + [ ! 1 ]
| + [ -z  ]
| + exec
| + [  ]
| + exec
| + DEBCONF_REDIR=1
| + export DEBCONF_REDIR
| + adduser --quiet --system --home /etc/privoxy --no-create-home --ingroup 
nogroup --disabled-password privoxy
| + chown -R privoxy:adm /var/log/privoxy
| + chmod 750 /var/log/privoxy
| + chown privoxy /etc/privoxy/user.action /etc/privoxy/trust
| + [ -f /etc/privoxy/match-all.action ]
| + chown privoxy /etc/privoxy/match-all.action
| + db_get privoxy/listen-address
| + _db_cmd GET privoxy/listen-address
| + _db_internal_IFS=
|
| + IFS=
| + printf %s\n GET privoxy/listen-address
| + IFS=
|
| + IFS=
|  read -r _db_internal_line
| + RET=127.0.0.1:8118
| + return 0
| + perl -le
|                 $done = 0;
|                 while (<STDIN>) {
|                     chomp;
|                     if ($_ =~ m/^\s*listen-address\s+.*/) {
|                         if (!$done) {
|                             foreach (@ARGV) {
|                                 print "listen-address  $_";
|                             }
|                         }
|                         $done = 1;
|                     } else {
|                         print;
|                     }
|                 } 127.0.0.1:8118
| + ucf --three-way --debconf-ok /etc/privoxy/config.ucftmp /etc/privoxy/config
| Replacing config file /etc/privoxy/config with new version
| + ucfr privoxy /etc/privoxy/config
| + rm -f /etc/privoxy/config.ucftmp
| + db_stop
| + echo STOP
| + [ x3.0.25-2 != x ]
| + dpkg --compare-versions 3.0.25-2 lt 3.0.4
| + [ x3.0.25-2 != x ]
| + dpkg --compare-versions 3.0.25-2 lt 3.0.7
| + [ x3.0.25-2 != x ]
| + dpkg --compare-versions 3.0.25-2 lt 3.0.11
| + deb-systemd-helper unmask privoxy.service
| + deb-systemd-helper --quiet was-enabled privoxy.service
| + deb-systemd-helper enable privoxy.service
| + [ configure = configure ]
| + [ -x /etc/init.d/privoxy ]
| + update-rc.d privoxy defaults
| + invoke-rc.d privoxy start
| [ ok ] Starting filtering proxy server: privoxy.
| + exit 0
`----


Cheers,

-- 
Cristian

Reply via email to