[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



Reply to: