LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2008, 02:07 AM   #1
steelheat
Member
 
Registered: Jun 2006
Location: Western US of A
Distribution: Kubuntu20.04,Debian 9,10,11,#419541 wRegistered user ith the Linux Counter
Posts: 86

Rep: Reputation: 7
trying to remove/uninstall doodle


Help Please. I am using etch 4.0 and KDE.

I have been trying to remove/uninstall doodle.
This is the error I keep getting using synaptic, apt-get and dpkg:

E: doodled: subprocess pre-removal script returned error exit status 1

(Reading database ... 107257 files and directories currently installed.)
Removing doodled ...
Stopping doodle daemon: invoke-rc.d: initscript doodled, action "stop" failed.
dpkg: error processing doodled (--remove):
subprocess pre-removal script returned error exit status 1
Starting doodle daemon: doodled.
Errors were encountered while processing:
doodled
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:

~~~~~


Then I tried to re-install it and I get this:

E: doodled: subprocess pre-removal script returned error exit status 1

(Reading database ... 107257 files and directories currently installed.)
Removing doodled ...
Stopping doodle daemon: invoke-rc.d: initscript doodled, action "stop" failed.
dpkg: error processing doodled (--remove):
subprocess pre-removal script returned error exit status 1
Starting doodle daemon: doodled.
dpkg: doodle: dependency problems, but removing anyway as you request:
doodled depends on doodle (= 0.6.5-5).
Removing doodle ...
Errors were encountered while processing:
doodled
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:

~~~~~


Next I searched all the forums I could find, goggling between
forums and found the only info that looked like it could help
and this is it:

"Dealing with troublesome package upgrades or removals"
Posted by Steve on debian-administration
http://www.debian-administration.org/articles/251/

which is the only thing close to my problem I've found.
I did/tried everything that Steve talks about, NO LUCK YET.
Belive me there is not much out there on this problem that.


I commented out the " # set -e ", that he talks about in the
script files starting one at a time with "prerm" file. Then switching
to apt-get I would do an "apt-get -f install" to straighten it all back
up again.

I then compared doodler's prerm file with many other programs files.
I could not find anything wrong.

Next I did everything that I had already done to the "prerm" file
to the remaining script files and as yet Nothing!

Here is a copy of my "prerm file" with the "set -e" commented out:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/sh
# set -e
exit 1
# Automatically added by dh_installinit

if [ -x "/etc/init.d/doodled" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d doodled stop || exit $?
else
/etc/init.d/doodled stop || exit $?
fi
fi
# End automatically added section
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Help! I'm posting this now (it's late) and I'll be back this weekend.
Thank you all for getting to post here.
 
Old 11-07-2008, 02:45 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Why don't you manually stop the service and then try uninstalling it. Your prerm file would be doing that if you didn't have the "exit 1" line which exits the script with an error.
 
Old 11-08-2008, 05:19 PM   #3
steelheat
Member
 
Registered: Jun 2006
Location: Western US of A
Distribution: Kubuntu20.04,Debian 9,10,11,#419541 wRegistered user ith the Linux Counter
Posts: 86

Original Poster
Rep: Reputation: 7
Talking Thank you jschiwal

Since posting I've learned how to stop doodle and that
the "exit 1" should be changed to "exit 0". As root I
changed the exit code to "0". Then I used synaptic to
uninstall doodle. IT WORKED!!!!!

When one don't know nothing about programming one lives in
a black hole.

Thank you for all your help and for allowing my post.
 
  


Reply

Tags
scripts



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I remove/uninstall compiled sofware? brynjarh Linux - Software 7 05-29-2009 02:18 AM
Uninstall or remove obsolete kernels Cushie Linux - Newbie 2 09-15-2007 01:46 PM
Uninstall or Remove Folder? sall Linux - General 4 08-07-2005 11:35 AM
Cannot Remove | Uninstall Gnome mudelf Linux - Software 1 11-19-2003 08:45 AM
How do I remove/uninstall old libpcap? JasonW Linux - Networking 3 02-12-2003 07:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration