Bug#554631: upgrade fails with c2faxrecvinvoke-rc.d: initscript capi4hylafax, action stop failed.

2009-11-05 Thread Martin Steigerwald
Package: capi4hylafax
Version: 1:01.03.00.99.svn.300-12
Severity: important

Upgrade of capi4hylafax fails like this (with LANG=C so that
output is in english):

shambhala:~ LANG=C aptitude safe-upgrade
Reading package lists... Done
Building dependency tree 
Reading state information... Done
Reading extended state information   
Initializing package states... Done  
Reading task descriptions... Done
The following packages will be upgraded: 
  capi4hylafax   
The following packages are RECOMMENDED but will NOT be installed:
  isdnactivecards
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/211kB of archives. After unpacking 81.9kB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Reading changelogs... Done
(Reading database ... 347487 files and directories currently installed.)
Preparing to replace capi4hylafax 1:01.03.00.99.svn.300-12 (using 
.../capi4hylafax_1%3a01.03.00.99.svn.300-13_i386.deb) ...
Stopping capi4hylafax: c2faxrecvinvoke-rc.d: initscript capi4hylafax, action 
stop failed.
dpkg: warning: old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Stopping capi4hylafax: c2faxrecvinvoke-rc.d: initscript capi4hylafax, action 
stop failed.
dpkg: error processing 
/var/cache/apt/archives/capi4hylafax_1%3a01.03.00.99.svn.300-13_i386.deb 
(--unpack):
 subprocess new pre-removal script returned error exit status 1
insserv: warning: current start runlevel(s) (empty) of script `capi4hylafax' 
overwrites defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script 
`capi4hylafax' overwrites defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `capi4hylafax' 
overwrites defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script 
`capi4hylafax' overwrites defaults (0 1 6).
insserv: warning: current stop runlevel(s) (0 1 6) of script `screen-cleanup' 
overwrites defaults (empty).
insserv: warning: current stop runlevel(s) (0 1 6) of script `sysfsutils' 
overwrites defaults (empty).
insserv: warning: current stop runlevel(s) (0 1 6) of script `pppd-dns' 
overwrites defaults (empty).
insserv: warning: current stop runlevel(s) (0 1 6) of script `cpufrequtils' 
overwrites defaults (empty).
insserv: warning: current stop runlevel(s) (0 6) of script `hdparm' overwrites 
defaults (empty).
insserv: warning: current stop runlevel(s) (0 6) of script `pcmciautils' 
overwrites defaults (empty).
insserv: warning: current stop runlevel(s) (0 1 6) of script 
`console-screen.sh' overwrites defaults (empty).
Errors were encountered while processing:
 /var/cache/apt/archives/capi4hylafax_1%3a01.03.00.99.svn.300-13_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done

shambhala:~#255


returncode is 255 as shown in Z-Shell prompt. I tried running 
aptitude safe-upgrade in bash as well. No effect.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (450, 'testing'), (400, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.31.5-tp42-toi-3.0.1-04850-g4eddd0d (PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages capi4hylafax depends on:
ii  capiutils  1:3.9.20060704-4  Utilities for CAPI-capable ISDN ca
ii  libc6  2.9-25GNU C Library: Shared libraries
ii  libcapi20-31:3.9.20060704-4  libraries for CAPI support
ii  libgcc11:4.4.1-4 GCC support library
ii  libstdc++6 4.4.1-4   The GNU Standard C++ Library v3
ii  libtiff4   3.9.1-1   Tag Image File Format (TIFF) libra
ii  zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime

Versions of packages capi4hylafax recommends:
ii  hylafax-server2:6.0.3-3  Flexible client/server fax softwar
pn  isdnactivecards   none (no description available)

Versions of packages capi4hylafax suggests:
ii  dialog1.1-20080819-1 Displays user-friendly dialog boxe

-- no debconf information



-- 
To UNSUBSCRIBE, email to 

Bug#554631: upgrade fails with c2faxrecvinvoke-rc.d: initscript capi4hylafax, action stop failed.

2009-11-05 Thread Martin Steigerwald
Am Donnerstag 05 November 2009 schrieb Lionel Elie Mamane:
 severity 554631 serious
 thanks
 
 On Thu, Nov 05, 2009 at 08:39:24PM +0100, Martin Steigerwald wrote:
  Upgrade of capi4hylafax fails like this (with LANG=C so that
  output is in english):
 
  shambhala:~ LANG=C aptitude safe-upgrade
  Preparing to replace capi4hylafax 1:01.03.00.99.svn.300-12 (using
  .../capi4hylafax_1%3a01.03.00.99.svn.300-13_i386.deb) ... Stopping
  capi4hylafax: c2faxrecvinvoke-rc.d: initscript capi4hylafax, action
  stop failed. dpkg: warning: old pre-removal script returned error
  exit status 1
 
 Argh, it returns 1 when it is already stopped. That's a bug indeed. To
 work around that bug, start capi4hylafax and try the upgrade again.
 

Doesn't work either. Init script does not seem to be able to either start 
or stop capi4hyladax. Its not critical for me cause I just set it up for 
an article quite some time ago and do not use it regularily.

shambhala:~ export LANG=C
shambhala:~ /etc/init.d/capi4hylafax start
Starting capi4hylafax: c2faxrecv.  
shambhala:~ ps aux | grep c2fax
root  7123  0.0  0.0   1872   552 pts/0R+   22:08   0:00 grep 
c2fax
shambhala:~ aptitude safe-upgrade
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
Reading extended state information   
Initializing package states... Done  
Reading task descriptions... Done
The following packages will be upgraded: 
  capi4hylafax   
The following packages are RECOMMENDED but will NOT be installed:
  isdnactivecards
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/211kB of archives. After unpacking 81.9kB will be used. 
Do you want to continue? [Y/n/?]   
Writing extended state information... Done 
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory 
Reading package fields... Done 
Reading package status... Done 
Retrieving bug reports... 0% Fail  
Error retrieving bug reports from the server with the following error 
message:
 W: getaddrinfo: Temporary failure in name resolution 
(http://bugs.debian.org:80)
It appears that your network connection is down. Check network 
configuration and try again
Retry downloading bug information?[Y/n]? n
Abort the installation[Y/n]? n
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Reading changelogs... Done
(Reading database ... 347487 files and directories currently installed.)
Preparing to replace capi4hylafax 1:01.03.00.99.svn.300-12 (using 
.../capi4hylafax_1%3a01.03.00.99.svn.300-13_i386.deb) ...
Stopping capi4hylafax: c2faxrecvstart-stop-daemon: warning: failed to kill 
7119: No such process
invoke-rc.d: initscript capi4hylafax, action stop failed.
dpkg: warning: old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Stopping capi4hylafax: c2faxrecvstart-stop-daemon: warning: failed to kill 
7119: No such process
invoke-rc.d: initscript capi4hylafax, action stop failed.
dpkg: error processing 
/var/cache/apt/archives/capi4hylafax_1%3a01.03.00.99.svn.300-13_i386.deb 
(--unpack):
 subprocess new pre-removal script returned error exit status 1
insserv: warning: current start runlevel(s) (empty) of script 
`capi4hylafax' overwrites defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script 
`capi4hylafax' overwrites defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script 
`capi4hylafax' overwrites defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script 
`capi4hylafax' overwrites defaults (0 1 6).
insserv: warning: current stop runlevel(s) (0 1 6) of script `screen-
cleanup' overwrites defaults (empty).
insserv: warning: current stop runlevel(s) (0 1 6) of script `sysfsutils' 
overwrites defaults (empty).
insserv: warning: current stop runlevel(s) (0 1 6) of script `pppd-dns' 
overwrites defaults (empty).
insserv: warning: current stop runlevel(s) (0 1 6) of script 
`cpufrequtils' overwrites defaults (empty).
insserv: warning: current stop runlevel(s) (0 6) of script `hdparm' 
overwrites defaults (empty).
insserv: warning: current stop runlevel(s) (0 6) of script `pcmciautils' 
overwrites defaults (empty).
insserv: warning: current stop runlevel(s) (0 1 6) of script `console-
screen.sh' overwrites defaults (empty).
Errors were encountered while processing:
 /var/cache/apt/archives/capi4hylafax_1%3a01.03.00.99.svn.300-13_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to 

Bug#554631: upgrade fails with c2faxrecvinvoke-rc.d: initscript capi4hylafax, action stop failed.

2009-11-05 Thread Lionel Elie Mamane
severity 554631 serious
thanks

On Thu, Nov 05, 2009 at 08:39:24PM +0100, Martin Steigerwald wrote:

 Upgrade of capi4hylafax fails like this (with LANG=C so that
 output is in english):

 shambhala:~ LANG=C aptitude safe-upgrade
 Preparing to replace capi4hylafax 1:01.03.00.99.svn.300-12 (using 
 .../capi4hylafax_1%3a01.03.00.99.svn.300-13_i386.deb) ...
 Stopping capi4hylafax: c2faxrecvinvoke-rc.d: initscript capi4hylafax, action 
 stop failed.
 dpkg: warning: old pre-removal script returned error exit status 1

Argh, it returns 1 when it is already stopped. That's a bug indeed. To
work around that bug, start capi4hylafax and try the upgrade again.

-- 
Lionel



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#554631: upgrade fails with c2faxrecvinvoke-rc.d: initscript capi4hylafax, action stop failed.

2009-11-05 Thread Lionel Elie Mamane
On Thu, Nov 05, 2009 at 10:10:55PM +0100, Martin Steigerwald wrote:
 Am Donnerstag 05 November 2009 schrieb Lionel Elie Mamane:
 On Thu, Nov 05, 2009 at 08:39:24PM +0100, Martin Steigerwald wrote:

 Upgrade of capi4hylafax fails like this:

 shambhala:~ LANG=C aptitude safe-upgrade
 Preparing to replace capi4hylafax 1:01.03.00.99.svn.300-12 (using
 .../capi4hylafax_1%3a01.03.00.99.svn.300-13_i386.deb) ... Stopping
 capi4hylafax: c2faxrecvinvoke-rc.d: initscript capi4hylafax, action
 stop failed. dpkg: warning: old pre-removal script returned error
 exit status 1

 Argh, it returns 1 when it is already stopped. That's a bug
 indeed. To work around that bug, start capi4hylafax and try the
 upgrade again.

 Doesn't work either. Init script does not seem to be able to either
 start or stop capi4hyladax.

I see. Then apply the attached patch and try the upgrade again. Or
upgrade directly to version -15, which fixes this.

--
Lionel
--- /etc/init.d/capi4hylafax
+++ /etc/init.d/capi4hylafax
@@ -74,22 +74,22 @@
 case $1 in
 start)
 	echo -n Starting capi4hylafax: c2faxrecv
-	start-stop-daemon --start --quiet --background \
+	start-stop-daemon --start --quiet --oknodo --background \
 	--make-pidfile --pidfile $C2FAXRECVPID \
 	--exec /usr/bin/c2faxrecv
 	echo .
 	;;
 stop)
 	echo -n Stopping capi4hylafax: c2faxrecv
-	start-stop-daemon --stop --quiet --pidfile $C2FAXRECVPID
+	start-stop-daemon --stop --quiet --oknodo --pidfile $C2FAXRECVPID
 	rm -f $C2FAXRECVPID
 	echo .
 	;;
 restart | force-reload)
 	echo -n Restarting capi4hylafax: c2faxrecv
-	start-stop-daemon --stop --quiet --pidfile $C2FAXRECVPID
+	start-stop-daemon --stop --quiet --oknodo --pidfile $C2FAXRECVPID
 	sleep 2
-	start-stop-daemon --start --quiet --background \
+	start-stop-daemon --start --quiet --oknodo --background \
 	--make-pidfile --pidfile $C2FAXRECVPID \
 	--exec /usr/bin/c2faxrecv
 	echo .