Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Uninstall unresponsive applejack

Does anyone know how to remove applejack when the command 'applejack uninstall' results in the response 'no such file or directory' ?


I just updated my OS from 10.5.8 to 10.6.8. Applejack v1.6 was already installed on the drive and worked in 10.5, but is unresponsive now. Furthermore, to get out of single user mode now takes two attempts at 'exit'. The prompt: type 'applejack' for more information still appears on the single user screen, but all attempts to produce the applejack menu, to get auto mode to start, or to uninstall all result in the 'no such file' response.


Their Read Me says the script is loacted at: /private/var/root/Library/Scripts/applejack.sh, but, as a novice in single user mode, I have no idea where that is in the finder. The finder's Find page and Spotlight were no help loctating it.


Starting fresh with the newer OS, I'd prefer to get rid of this unresposive program that still appears on the single user page and now interferes with the 'exit' function.


Thanks in advance,

Dr. Rock

Mac mini, Mac OS X (10.6.8), 1.83GHz Intel Core2Duo 2GB SDRAM

Posted on Jan 2, 2012 9:49 PM

Reply
29 replies

Jan 2, 2012 10:17 PM in response to Dr. Rock

Their Read Me says the script is loacted at: /private/var/root/Library/Scripts/applejack.sh, but, as a novice in single user mode, I have no idea where that is in the finder. The finder's Find page and Spotlight were no help loctating it.


/var/root is not indexed by spotlight and I think it's is also kept finder invisible.


To delete it you need to either enable root and log in as root or run as root in terminal (after enabling root) and delete it from there. If you are already running as root in single user mode then you don't need to go through the extra step of enabling root.


With root enabled (and logged in as root) this is how you could do it from the terminal:


rm /var/root/Scripts/applejack.sh


Or if root is enabled you could log into your own account and still do it from the terminal:


su (answer the prompt for the root password, not your admin password, it won't be echoed)

rm /var/root/Scripts/applejack.sh

exit


If you don't want root enabled anymore then you can disable root if you wish.


By the way, I thought applejack 1.6 was supposed to be Snow Leopard compatible.

Jan 3, 2012 12:29 AM in response to X423424X

Yes, according to their documentation, applejack 1.6 is supposed to work in OS 10.6. So I don't get it, either.


While I truly appreciate the reply, as I know almost nothing about the unix root architecture of the Apple OS, I'm afraid I don't understand the steps to remove the applejack code. Enabling root mode seems more than a little scary, but the Apple Support page link does describe how to do get in and out of it. After that, what?


I thought single user mode WAS the root user, and that Terminal also got to the unix root level. I apologize for being at the limit of my understanding, but am eager to learn more about this.


Thanks for explaining why I the location noted in the Read Me text was invisible to the finder and spotlight.


I assume the command: rm/var/root/Scripts/applejack.sh removes the applejack code. Can't that just be typed in on the single user screen, or must root user first be enabled in System Preferences before restarting in single user mode?

Jan 3, 2012 12:48 AM in response to Dr. Rock

While I truly appreciate the reply, as I know almost nothing about the unix root architecture of the Apple OS, I'm afraid I don't understand the steps to remove the applejack code. Enabling root mode seems more than a little scary, but the Apple Support page link does describe how to do get in and out of it.


You know you could just as well ignore it. You can't normally see it. It isn't going to hurt anything by remaining installed.


After that, what?


What "what"? Once you log in as root you could do the terminal command I described (see below).


I thought single user mode WAS the root user, and that Terminal also got to the unix root level. I apologize for being at the limit of my understanding, but am eager to learn more about this.


Well then you have nothing to loose by trying that rm command I descibed (again, see below). If you are not at root level the rm will just fail. Nothing changed.


I assume the command: rm/var/root/Scripts/applejack.sh removes the applejack code. Can't that just be typed in on the single user screen, or must root user first be enabled in System Preferences before restarting in single user mode?


Yes, rm is the "remove" unix command. And yes, as I just said above, if single user mode is root level, then try the rm command as I specified it.


rm /var/root/Scripts/applejack.sh


If it works you can forget about enabling root and you're done.

Jan 3, 2012 11:20 AM in response to Mark Jalbert

Thank you all.

I first tried Mark's command in Terminal, but it did not accept my password. I am the administrator. The prompt to type 'Cntrl-C' to cancel didn't work either. So I just closed the window and quit Terminal. Does root level need to be activated in System Preferences for this to tactic to work?


Kudos to noondaywitch. As a newbie to this stuff, I had no idea there was a space there.

Followed X's instructions.

Booted up in single user mode and typed in the correct command. Got 'no such file or directory' in response.

The prompt: type 'applejack' for more info still appears, and it still takes two attempts at 'exit' to quit single user mode. That does not look normal.


I realize that X is correct in saying I could just ignore this. But the failure of single user mode to respond to the first 'exit' command concerns me. As a newbie to this deep level of the Mac, I don't know how much of a problem this is, other than it doesn't seem right, and I'd like to start out on 10.6 with everything normalized. If possible, I'd like to clean this up. Apologies to all for my ignorance in this area and thanks for your help and patience.

Jan 3, 2012 11:53 AM in response to Dr. Rock

Can anyone tell me the correct typing command for 'yes'?


Attempting to remove applejack from my back up disk, the command to uninstall was recognized there, but it asked me if I was sure I wanted to uninstall: [y/n]. I tried twice typing: [y], and then: yes. Both times unistall was aborted. How do you type 'yes'?


Thanks,

Dr. Rock

Jan 3, 2012 12:36 PM in response to Dr. Rock

TO UNINSTALL:

Assuming you installed AppleJack as the default location, you can just copy the following shell script into a Terminal window, and hit return. If you've installed AppleJack at some other location, put that location in the script instead.

sudo rm -f /private/var/root/Library/Scripts/applejack.sh && \

sudo rm -f /usr/share/man/man8/applejack.8 && \

sudo find /usr/share/man -name 'applejack.*.gz' -exec rm {} \; && \

sudo sed -e '/[aA]pple[jJ]ack/d' /private/var/root/.profile > /tmp/profile.$$ && \

sudo rm -f /private/var/root/.profile && \

sudo mv /tmp/profile.$$ /private/var/root/.profile; 


Jan 3, 2012 5:36 PM in response to Dr. Rock

I'm confused by your previous two posts. In your reply to me you said you successfully removed applejack. That was the whole goal here wasn't it? Then in the reply to WZZZ you said his commands didn't work and implied applejack was still there. So they are confusing replies.


As for the 'y' reply. It's an age old (to me anyway) convention for simple command line interfaces to put up a prompt and give the user the expected choices in brackets, parenthesis, braces, whatever. For example:


Do you want to quit now? (y,n)


So it is expecting a y or n as a reply.


As for reinstalling the entire system just to get rid of a single file, that's overkill, and a number of ways have been described to get rid of it, or just to ignore it.


To WZZZ...


Unless root is enabled or sudoers set to allow the root password, not admin passsword, to sudo, I would not expect the sudo rm to work to delete a file out of the root account. Am I wrong about this? I'm not sure because I always have root enabled so I can log in a screw around with that account directly if necessary.

Jan 3, 2012 6:21 PM in response to X423424X

X: Two posts are noting two separate actions. I was able to get rid of the intact file on the backup version of the OS. Forgive me for not knowing to type a y for yes. Thanks for telling me how to do that.


Second post to tell WZZZ his code did not remove the partial/corrupted applejack file on the main hard drive. Sorry for the confusion.

But so far none of the methods described to remove the remnants of applejack on the main drive have been successful.

Jan 3, 2012 6:55 PM in response to X423424X

That script came from here. I always thought sudo, superuser do, allowed one to run commands as root, period. So I'm ready to learn more about this from you.


Maybe the Dr. has to enable the root account and try running that script. Then we may know.


Not too long ago I was trying to help someone else uninstall a failed AJ. Never understood why it failed -- it's never happened to me -- or why he had so much trouble uninstalling. He ended up throwing in the towel, prematurely I thought, and just reinstalled.


Maybe I can get some help on this.


EDIT: just realized that page is for AJ 1.4/Tiger version. Maybe that's why the script won't work. Can't get into Terminal right now to see man applejack.But I think the default location and directions to uninstall are the same in the Snow version.

Uninstall unresponsive applejack

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.