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)
  • Re: [opensuse] BASH: has $COLUMNS gone nuts?
    ... You do realize that lines & columns are dynamic values which at least some terminals and login daemons will continuously adjust right? ... What the above shows is that I dragged the corner of my PuTTY window (which was connected to sshd, not every terminal client nor every server daemon does this) making the window a little larger and without issuing any commands, and no possibility that any bashrc or inclusions got executed, the values changed, because the terminal told the daemon and the daemon told it's child processes. ... Try calling them from within a script: ... Although, I would also actually be perverse and say that since the SCO systems predate most others, including ALL linux, that you could actually make the argument that the dwindling remaining production sco boxes in the world are right and the 90 million linux & freebsd & sun boxes are all wrong. ...
    (SuSE)
  • Re: script "chaining"
    ... If a task (such as a report) would take too long to run while attached to the browser, the current system writes the data to a database file. ... The daemon checks that file every 10 seconds and executes the task, writing the data back to database. ... If you take the A out of LAMP you can write a php script like a bash script or a perl script and execute it. ...
    (comp.lang.php)
  • 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: script "chaining"
    ... bill wrote: ... If a task would take too long to run while attached to the browser, the current system writes the data to a database file. ... The daemon checks that file every 10 seconds and executes the task, writing the data back to database. ... If you take the A out of LAMP you can write a php script like a bash script or a perl script and execute it. ...
    (comp.lang.php)