I had to restore my iPod Touch twice, but I couldn't figure out the main problem.
However, there is a script lying around that allows you to fix your "Main Script Execution Failed" while trying to download any packages off in the Installer.
If you have wifi, you're in luck. If you're using a wifi hotspot (like me!) then it depends on your luck.
For my case (since I'm a non-wifi user), here's what I did until I hit the error:
- DFU Mode
- Restored into 1.1.4
- Jailbreak using ZiPhone
- Now I go look for a wifi hotspot... Found!
- I fix the "keyboard freezing" by going to contacts and entering some rubbish, then exiting it
- I added sources in the Installer app, the keyboard doesn't freeze! Yey!
- Download BSD Subsystem and Term-vt100 (plus other things not worth mentioning, but missed out quite a lot of things too!)
- Went home
- Synced some songs
- *the next day* Went to hotspot again, because it seems I can't use Term-vt100. Asks for a stupid password! So after some research, it looks like I need to install "Term-vt100 SUID Fix"
- Huh? Main Script Execution Failed? I just download 50 apps yesterday with no problems!
So I guess, I'm out of luck. Since I have no wifi, and my Terminal app is not working, I have no choice but to do a complete restore and try all over again.
I have a working wifi!
Now, if I had wifi,
or I had a working terminal app (Term-vt100 or TerminalV should be good), I can issue these commands (you can use this using Putty via WinSCP):
rm -rf Installer.app
chmod +s Installer.app/Installer
chown -R root:wheel Installer.app
Now, if everything is working fine, and there's no problems with the Installer, issue this last command:
But I don't have wifi?
Now, if you don't have wifi (like me!), you can still issue these. Only you'll need to do an additional step.
Prerequisite: You must have already installed "ZiPhone iBrickr Fix", "Term SUID Lib Fix", and any terminal app like "Term-vt100" or "TerminalV", if not, you definitely need a working wifi and follow the previous step.
Step 1: Download and install iphonebrowser (google it, I'm sure it's the first one)
Step 2: Using your normal browser, download the Installer file from this site http://repository.apptapp.com/packages/System/Installer.zip
Step 3: Unzip it, and you should have a folder named "Installer.app"
Step 4: Now launch iphonebrowser, then delete /Applications/Installer.app from your device
Step 5: Now, copy the newly unzipped Installer.app into /Applications folder
Step 6: Now launch Term-vt100 (or TerminalV) on your iPhone and type in:
chmod -R 777 /Applications/*
That's all! Now you should reboot your iPhone, and try again. If it works, good for you! If it doesn't, then type this (after the above methods fails, this step might not be necessary):
chmod +s /Applications/Installer.app/Installer
chown -R root:wheel /Applications/Installer.app
This, effectively re-installs Installer app with another version, and setting all the permissions and owners respectively.
Now, that solved MY problem.
Update: Added instructions for using only the iPhone without wifi.
Update: Updated instructions, based on a friendly user feedback. Thanks!