Installer “main script execution failed” fix
January 28th, 2008 | by Justin Nolan |If you didn’t update Installer BEFORE updating to 1.1.3, or did but still get this error and need to fix permissions, try entering these commands via ssh:
cd /
cd Applications/
wget http://repository.apptapp.com/packages/System/Installer.zip
rm -rf Installer.app
unzip Installer.zip
chmod +s Installer.app/Installer
chown -R root:wheel Installer.app
rm Installer.zip
This replaces your copy of Installer with the latest version, and sets proper permissions.

74 Responses to “Installer “main script execution failed” fix”
By LeQueb on Jan 28, 2008 | Reply
Thanks for the great work of documenting de hacks that fast! But i run into a problem here because i have way to access my iPod trough SSH. It was well installed before the 1.1.3 hack, but now i get ” port 22: Operation timed out”. So i actually tried to extract the installer “http://repository.apptapp.com/packages/System/Installer.zip” upload it to the iPod, via FTP, and check the permission and ownership and everything seems good but i still get the error “main script execution failed†after a reboot of the iPod. What am i doing wrong?
Cheers
By Germán Ospina on Jan 28, 2008 | Reply
This worked perfectly! I needed this to finally have a full functioning phone. thanks a million
By Ross W on Jan 30, 2008 | Reply
WOW! THANKS!
By Corona on Jan 30, 2008 | Reply
Just want to add my thanks, nice easy guide got me out of trouble.
By Ross W on Jan 30, 2008 | Reply
For anyone wondering oh to get access your iphones ssh on mac
Open Terminal
type ssh root@IPHONE’S IP ADDRESS
hit enter
enter password (will appear invisible, but it’s there!)
hit enter
then start… do each line separately, followed by hitting enter.
cd /
cd Applications/
wget http://repository.apptapp.com/packages/System/Installer.zip
rm -rf Installer.app
unzip Installer.zip
chmod +s Installer.app/Installer
chown -R root:wheel Installer.app
rm Installer.zip
Hope this helps out someone!
By Mandro on Jan 31, 2008 | Reply
Excellent. Back to 100% as before the upgrade to 1.1.3 Thanks.
By remyzero7 on Feb 1, 2008 | Reply
Thanks! Looked all over for this, you really saved me.
By ned on Feb 1, 2008 | Reply
I tried this but i cant get OpenSSH on my iphone becuase it comes up with the error of main script excution failed!! Help you can e-mail me please !!! thanks
By Henrik on Feb 1, 2008 | Reply
Thanks, I works perfectly for me.
By hey on Feb 1, 2008 | Reply
what is SSH
where is it on the iphone
By brian on Feb 1, 2008 | Reply
zsh: command not found: unzip
i get the above when typing “unzip Installer.zip”
little help please
By Mandro on Feb 2, 2008 | Reply
I guess I talked too soon. After I did the commands in SSH I started to install some of the applications, then I suddenly receive that the installer had an update and I tried to update it and it said that I have no space, (and I do have space) I tried to do these same steps in SSH and it’s telling me the same thing, it starts downloading the file from the address and it stops at 20% and tells me that I don’t have space..
Suggestions?
By Daniel Schlaug on Feb 2, 2008 | Reply
The good stuff. Props!
For Mandro’s problem I believe you have a rather classic problem. The 8 GB on the iPhone is split into one 300 MB system partition and another for all the data. The applications folder resides in the 300 MB partition which causes the application space to drain entirely when you start installing apps with installer.
Try this
cp -pr /Applications /private/var/Applications
mv /Applications /Applications.backup
ln -s /private/var/Applications /Applications
That should do it, to check if it worked type
cd /
ls -la
If there’s something like
Applications -> /private/var/Applications
included in the list it worked. Test your apps and stuff and when you’re certain nothing’s wrong delete the backup of the old Applications folder from the system partition like so:
rm -r /Applications.backup
If something goes wrong and you want to restore to how it was before do this:
rm /Applications
mv /Applications.backup /Applications
rm -R /private/var/Applications
By alb on Feb 2, 2008 | Reply
Same thing: no much space
By mayank on Feb 2, 2008 | Reply
when I type wget
zsh: command not found: wget
By jorn on Feb 3, 2008 | Reply
## You may THINK you have space, but Applications and other system “stuff” are on a different partition, and that may be full.
By Philippe on Feb 3, 2008 | Reply
@Ross W
how do I get my iphone’s ip adress?
and what is that password?
thanks !
By help on Feb 3, 2008 | Reply
how do u enter command? r u talking about on cute ftp? still how u enter command?
By Deafeater on Feb 4, 2008 | Reply
I Love You….
Has been looking for this for a week.
By Mr_kemikal on Feb 4, 2008 | Reply
Thank’s be to you… Got my iPhone up and running.. You are the best walking product that create the good and share your knowledge show what is best for the people. . Greatly appreciated. #999#
By Cory on Feb 4, 2008 | Reply
how do you run wget line what program do you use cause I KEEP GETTING WGET ERROR command not found please help
By Masterdam on Feb 5, 2008 | Reply
I keep getting the pop up Edit Home Screen Dismiss, when i dismiss the message keeps popping up?? Cant do nothing? I rebooted the phone via console, but the message keeps popping up?? Anyone? Thanks, Masterdam
By Mandro on Feb 5, 2008 | Reply
For Daniel Schlaug
Thanks, these commands worked great. I logged into the iPhone through WinSCP and notice that the Applications Folder is now a short cut, so I assume that what the commands did was to place the application folder in another partition of the phone so the Installer would not give me the the error that I don’t have enough space. Am I correct in this assumption?
Thanks a lot for your help Daniel, I really appreciate it!!
By GSPOOKY13 on Feb 5, 2008 | Reply
I’M NEW TO THIS SSH THING, AND I NEED HELP, CAN ANYBODY TELL ME WHERE TO TYPE THIS COMMANDS.
THANK YOU
By herbie on Feb 6, 2008 | Reply
@GSPOOKY13 Launch terminal then type SSH root as per Ross W’s instructions. You need your iphone to be on the same wireless network as your PC. To find the phon’s ip address look at settings - wifi - then tap the > next to the network SSID and you can see the ip address. Mine is 192.168.1.55 so to SSH onto the phone I launch terminal and type SSH root@192.168.1.55 and the phone then asks for the password, which should be alpine. Rgds
By hesham on Feb 6, 2008 | Reply
please, i had this error “main script execution failed”, but nothing in the desktop’s menu want to open or move or anything, it is very very slowwww and dont want to do anything!!!!
can anyone help in this ?
By Syntheon on Feb 7, 2008 | Reply
when de “wget” function doesn’t work:
install this file (pkg): http://andrew.merenbach.com/?q=node/7
By Jacob on Feb 7, 2008 | Reply
Can we get some feedback on the question for the below:
I keep getting the pop up Edit Home Screen Dismiss, when i dismiss the message keeps popping up?? Cant do nothing? I rebooted the phone via console, but the message keeps popping up?? Anyone? Thanks, Masterdam
By Carlos on Feb 8, 2008 | Reply
Help!!!
I installed the”Installer Space-Limit Fix”from newattiphone and start getting the main execution error…
But when i log with ssh and type “cd /applications” i got “cd: no such file or directory: applications/” what i CAN see (using AFP) is that i have, on “root’s home” , a “ROOT_Applications”directory and in the “iPhone root file system directory/ private/var/root/ROOT_Applications” on both i have my apps… Any suggestions??
PLEASE HELP MOST NEEDED
By Carlos on Feb 8, 2008 | Reply
By the way i have a 1.1.3 iphone jailbroke and unlocked with anysim
By Justin Nolan on Feb 8, 2008 | Reply
Guys, if you need support, please post in the forums. It’s too hard trying to keep track of comments in an old article.
By J@vier on Feb 9, 2008 | Reply
Work great.. thanks
By Gorm on Feb 10, 2008 | Reply
chown: Installer.app/AppTapp.framework/AppTapp: Operation not permitted
chown: Installer.app/AppTapp.framework/Info.plist: Operation not permitted
chown: Installer.app/AppTapp.framework: Operation not permitted
chown: Installer.app/Background.png: Operation not permitted
chown: Installer.app/Category.png: Operation not permitted
chown: Installer.app/CategorySmart.png: Operation not permitted
chown: Installer.app/Default.png: Operation not permitted
chown: Installer.app/Featured.png: Operation not permitted
chown: Installer.app/FeaturedSelected.png: Operation not permitted
chown: Installer.app/icon.png: Operation not permitted
chown: Installer.app/Info.plist: Operation not permitted
chown: Installer.app/Install.png: Operation not permitted
chown: Installer.app/Installer: Operation not permitted
chown: Installer.app/InstallSelected.png: Operation not permitted
chown: Installer.app/Package.png: Operation not permitted
chown: Installer.app/PackageNew.png: Operation not permitted
chown: Installer.app/Source.png: Operation not permitted
chown: Installer.app/Sources.png: Operation not permitted
chown: Installer.app/SourcesSelected.png: Operation not permitted
chown: Installer.app/SourceTrusted.png: Operation not permitted
chown: Installer.app/Uninstall.png: Operation not permitted
chown: Installer.app/UninstallSelected.png: Operation not permitted
chown: Installer.app/Update.png: Operation not permitted
chown: Installer.app/UpdateSelected.png: Operation not permitted
chown: Installer.app: Operation not permitted
By Gorm on Feb 10, 2008 | Reply
Sorry about the double post but I get this error above when I write: chown -R root:wheel Installer.app
By Thomas on Feb 11, 2008 | Reply
I can’t download the terminal app to check this because i get the main script error when trying to install that.
By Stormin73 on Feb 17, 2008 | Reply
OK. I have read everything, but cannot get the “Main script execution failed” bug out. I cannot get past the “wget” issue. Says “no such command”. I have used Erica’s Ported utlities” that has wget. it is in the BIN folder. Use Cyberduck and Terminal on my Mac. Sorry but I am not the most gifter at this, but since I can’t do anything in Installer (no BSD Subsystem) I am dead. Ugraded to 1.1.3 and jailbroke/Acticated using iNdependence. Even did the chmod command on the iNdependece site but to no avail.
By jspade on Feb 18, 2008 | Reply
Masterdam - did you get the message “Edit Home Screen” from popping up?? I just started to have the same problem!! I dont know how to stop it!! If you found a way to stop it PLEASE tell me!! Thanks!!
By amortada on Feb 18, 2008 | Reply
when i tried the script through the terminal app ” on my Mac” i get that ” zsh: command not found: wget” when i type the line wget http://repository.apptapp.com/packages/System/Installer.zip
What can i do, am i doing somthing wrong ??
By Stormin73 on Feb 18, 2008 | Reply
Actually, I found a thread that said if you run Ziphone (the GUI version 2.1) and just run Jailbreak, it will fix. And it did for me - Installer worked, however, another complete set of problems has been created that I don’t know if they are related or not to any of this. My iphone now freezes when ever I make any changes to the Springboard or download an app. have to run Jailbreak again on Ziphone to release the freeze.
By Justin Nolan on Feb 18, 2008 | Reply
For people having issues, I would recommend doing a normal restore to 1.1.3 in iTunes, and using ZiPhone to jailbreak.
By reallion on Feb 20, 2008 | Reply
Could you tell me how I’m gonna do in PC, I mean windows. I dont have apple computer. Is there any program to do this in PC? Need help!!!
By Mandem on Feb 21, 2008 | Reply
Thanks a lot man, honestly!
By Alessandro on Feb 21, 2008 | Reply
I have the same problem too…
My iPhone is an 1.1.3OOTB and unlocked via ziphone(2.4 command line).
i cannot access to my iPhone with ssh cause i can’t install the BSD subsystem.
Can anyone help me?
Much appreciated (send me an email or answer here)
Thanks in advance
By mz on Feb 23, 2008 | Reply
same as alasandro PLZ HELP SOS!
By hate_a3 on Feb 24, 2008 | Reply
I keep getting the pop up Edit Home Screen Dismiss, when i dismiss the message keeps popping up?? Cant do nothing? I rebooted the phone via console, but the message keeps popping up?? Anyone? Thanks, Masterdam
====> i have the same problem, anyone know how to fix it??? pls email me at hate_a3@yahoo.com, i dont wanna lose it, pls help :((
By Andres Maldonado on Feb 25, 2008 | Reply
My iPhone doesn’t install ANY program and I’m a rookie. I was reading there somehting of the SSH or something like that, but I don’t know what is that, so if there is any easy way please let me know. The messegae that appears is the following:
Error
Package download failed!
It appears in every app I try to install. I have All Sources and they where working fine untill a few days ago!
Please if you can, email me back with the response.
By dan on Feb 25, 2008 | Reply
i have the same problem as carlos
PLEASE help me.
i installed newattiphones “installer space limit
fix”
and now i am also not able to download anymore
installer packages.
the main execution failed message keeps
popping up
By Levi on Feb 27, 2008 | Reply
I am also getting the “Main script execution failed” error when I try to download any apps to my iphone with the installer. Reading through all the above, the fix through SSH seems promising, however I run into the same trouble as some others, when I type the 3rd line in the terminal (wget http://repository.apptapp.com/packages/System/Installer.zip) and hit enter, I also get the following error: “zsh: command not found: wget”
According to someone on this site, this error can be overcome by installing this file (pkg): http://andrew.merenbach.com/?q=node/7
My question is, how do I do that? I have tried to downlad this small (cypher) zip file, and unzipped it, but what do I do next? In the insall.txt, it says put it in the “/usr/bin or /usr/local/bin” - I have no clue how to due this or what this means?
Obviously I am brand new to SSH (my first time), therefore can someone plese help me resolve this issue, so I can try to finally input those few command lines suggested to see if it will fix my problem of “Main script execution failed” error ???
Can somebody walk me through step by step how to fix this, please, please, please!!!!
Does anyone no if there is an easier way of fixing this “Main script execution failed” error? Or is there a solution coming soon (maybe via ZiPone or something similar)???
Thanks,
Levi
By Pawel on Feb 29, 2008 | Reply
I was also getting command not found when trying to run wget so I found this on another forum:
You can download installer app directly by downloading it from http://repository.apptapp.com/packages/System/Installer.zip and then copy to your Applications dir using your SCP app of choice, but you’ll need to ssh into your phone afterward and do:
Code:
cd /Applications
rm -rf Installer.app
unzip Installer.zip
chmod +s Installer.app/Installer
chown -R root:wheel Installer.app
chmod 4755 /Applications/Installer.app/Installer
rm Installer.zip
reboot
By Val on Mar 5, 2008 | Reply
After this operation do all my sources remain in the installer? And do all programs in the “uninstall” list remain as well?
By Val on Mar 5, 2008 | Reply
PAWEL!
Thank you very much, your post was very helpful! Regarding my last question it is YES.
By Mike on Mar 7, 2008 | Reply
Easy Fix Just Uninstall bsd Subsystem Both And Reinstall Them Worked For Me
By Mike on Mar 7, 2008 | Reply
Easy Fix Just Uninstall bsd Subsystem Both And Reinstall Them Worked For Me for the error
By Fill on Mar 9, 2008 | Reply
i have 1.1.2 otb jailbreaked and unlocked iphone and when i try to uninstall just iBirthDay.app the “Main script execution faild” error apears. It’s still shown in my Uninstall part of Installer.app as not uninstaled but when i go to SpringBoard, it’s not there. Every other program can be Installed and Uninstalled without any problem. i even try to update iBirthDay and still nothing (same error is shown)
Can i use this solution for solving this problem on my 1.1.2 iphone
Thanks in advance!
By Trancer on Mar 16, 2008 | Reply
Hi, Pawel,
Does your suggestion work for iPhone upgraded (i.e. restored) to v.1.1.4 by using ZiPhone?
Thanks.
By Max on Mar 18, 2008 | Reply
Thanks Pawel, your solution works prefect on my iphone.
By MrBaZ on Mar 25, 2008 | Reply
Pawel
u r Great
Thanks man
By Nano on Apr 15, 2008 | Reply
You’re the man! I am newbie, got a 1.1.4 iphone with Cydia installed and this is the only place I found explaining how to get Installer installed and working!
By phat on Apr 17, 2008 | Reply
made a connection with ssh to my iphone with transmit. could move installer.zip to the applications folder. after that i took terminal and logged in with ssh root@192.168.21.118, password alpine. had access, no problem, but the terminal says “permission denied” when i get to the line “rm -rf Installer.app”
does anyone know to help me?
By Abhishek on Apr 28, 2008 | Reply
That was a super post. the wget command did not work so i installed installer again by downloading to my pc and moving it to the applications folder. Now it works fine. However, i have some applications which were installed before through installer which now dont show as installed in installer (dont show in uninstall). Also number of my themes have gone missing. I suspect that there are two installer programs in the phone now and wonder if its possible to remove it and some of the programs i had installed through it. Any suggestions?
By Leprechaun on May 5, 2008 | Reply
I have an 8 gb iPod touch and I keep getting the “main script execution failed” error and when I try to SSH it with terminal it says that the connection was closed by a remote host. I’ve looked all over and haven’t found a solution. please help me…
By Hanzana on May 7, 2008 | Reply
I put de wget command in every ‘bin’ on my iPhone. Still nothing work.
I am not getting the ‘main script execution’ failure bu still have the ‘package download failed’
Please help
Hanzana
By Hanzana on May 8, 2008 | Reply
The new iDemocracy fixed the problem for me. Great tool
By JONNY>>> on May 15, 2008 | Reply
, try entering these commands via ssh:
———————————————–
How can I open ssh and type it in? I see it just in my “uninstall” button in installer?
Please anwser I need help!!!!!!!!!!!!!!
By JONNY>>> on May 15, 2008 | Reply
Is it maybe the mobile terminal?
By JONNY>>> on May 19, 2008 | Reply
can someone help me please ???
By DT on May 21, 2008 | Reply
Johnny I got to this thread from a link ON THIS VERY SITE that explains thoroughly how to fix the error youre getting. Do some research before you beg for help,
By varun on May 23, 2008 | Reply
I am running into Levi (and others’) wget error. I thought of Pawel’s solution, but the link doesn’t seem to work any longer–it instead goes to a site with an open letter. Can someone either e-mail me the file or host a mirror?
By dmm on Jun 3, 2008 | Reply
what do i do in windows vista….i have same error on 1.1.4 version of iphone
By Brad on Jun 26, 2008 | Reply
I get the same “wget” problem. Downloading the installer app directly doesn’t work because of what dmm said ^^
what is the new address for this file? and how do you get “wget” to work on a windows??
thanks!
By Jack on Jul 17, 2008 | Reply
Ok so I keep seeing all of these guides to fix this Main Script Execution error but they all include downloading SSH or Terminal which I can’t because I get that error message…
I dont’ know what I can do. Does this just mean that I can’t download anymore apps from installer? And if so can I just restore my ipod and fix it? Please e-mail me with a solution or advice at tubbystrut@gmail.com
By deepak on Sep 17, 2008 | Reply
dear sir ,
i have a iphone 1.1.4 (4a102 ) model - MB384LL , i downloaded the costomize 2.0 and i cant use it bcos it pops up ” i m offline ” & i have all accesss to wifi and edge besides this i also cannot download the suid lif fiz n the error pops up ” main script execution failed ”
can u please please help me out with this .