Re: Problem updating



On Wed, May 31, 2006 at 08:08:49 +1000, Michael Lightfoot wrote:
I'm using testing.
The following script error occurs trying to update doodled. This prevents
Synaptic from completing the rest of the package updates. I then run
aptitude which "recovers" from the error and completes the update. How do I
get apt to ignore the pre-remove error?

====
Preparing to replace doodled 0.6.3+2496-2
(using .../doodled_0.6.5-1_i386.deb) ...
Stopping doodle daemon: invoke-rc.d: initscript doodled, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Stopping doodle daemon: invoke-rc.d: initscript doodled, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/doodled_0.6.5-1_i386.deb
(--unpack):
subprocess new pre-removal script returned error exit status 1
Starting doodle daemon: doodled.
Errors were encountered while processing:
/var/cache/apt/archives/doodled_0.6.5-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
====

I would first try to find out why the pre-removal script cannot stop the
daemon. Is the daemon running at all? You can check it with

ps -ef | grep [d]oodled

If the daemon is not running you can try the start/stop actions yourself
(as root):

invoke-rc.d doodled start
invoke-rc.d doodled stop

Maybe that will give you an error message which indicates what is wrong.
If there is no error you can start the daemon again and see if that is
enough to satisfy the pre-removal script.

If all else fails you can try to force the removal of the package:

dpkg -r --force-all doodled

and then install the new version. (Your configuration files will not be
removed.)

--
Regards,
Florian


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Confused about init scripts expectations
    ... I am developing a daemon application to handle datalogger ... I have developed the init script that is ... I attempt to start the daemon using the services configuration GUI ... figure is that the EOF signal is not being received by the program. ...
    (Fedora)
  • Debian PHP jabber client deamon
    ... to prevent PHP stopping the script. ... // disconnect from the Jabber server ... Here's the daemon script for running it in Debian. ... # Gracefully exit if the package has been removed. ...
    (comp.lang.php)
  • Re: Confused about init scripts expectations
    ... I am developing a daemon application to handle datalogger ... I have developed the init script that is ... on the command line to start and stop the daemon process. ... I attempt to start the daemon using the services configuration GUI ...
    (Fedora)
  • Re: rc scripts
    ... startup script so that it parses rc.conf for variables. ... load_rc_config openntpd ... resort to running 'ntpd -gq' at system startup, ... ntpd daemon after the fact. ...
    (freebsd-questions)
  • [HPADM] Re: Startup Script Question
    ... Subject: Startup Script Question ... I have the following line for the start option to launch ... > boot, the startup script launches the daemon, but then the ...
    (HP-UX-Admin)