LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 03:07 AM   #1
steelheat
Member
 
Registered: Jun 2006
Distribution: Ubuntu 10.10,kubuntu 10.10, Mepis 8.5.Registered as user #419541 with the Linux Counter
Posts: 40

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, 03:45 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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, 06:19 PM   #3
steelheat
Member
 
Registered: Jun 2006
Distribution: Ubuntu 10.10,kubuntu 10.10, Mepis 8.5.Registered as user #419541 with the Linux Counter
Posts: 40

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:18 AM
Uninstall or remove obsolete kernels Cushie Linux - Newbie 2 09-15-2007 02:46 PM
Uninstall or Remove Folder? sall Linux - General 4 08-07-2005 12:35 PM
Cannot Remove | Uninstall Gnome mudelf Linux - Software 1 11-19-2003 09:45 AM
How do I remove/uninstall old libpcap? JasonW Linux - Networking 3 02-12-2003 08:06 AM


All times are GMT -5. The time now is 01:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration