Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SBik2

macrumors 6502a
Original poster
Jul 14, 2006
732
1
/private/var/root
i have a perfectly working fine jailbroken 1.1.3 iphone.. but in installer when i try to install apps.. i get the "main script execution failed error...
any help?
 
I have this exact problem?

I followed this;

Whenever I try to install something in Installer.app, it gets to "Installing package" and then crashes back to the Home screen! What am I doing wrong?

You likely aren't doing anything wrong. The first partition that Applications reside on has probably just filled up, and Installer.app is crashing because it has nowhere left to put anything. You can use symlinks to move your Applications to another (larger) partition so you can use the rest of the space on your device.

Connect to your iPhone via ssh using either "ssh root@<IPADDRESS>" (Mac) or "putty -ssh root@<IPADDRESS>" (Windows) as above and enter these commands:

* "cd /"
* "cp -rf Applications /private/var/root/"
* "mv Applications Applications.old"
* "ln -s /private/var/root/Applications /Applications"

If you type "ls -la / | grep Applications" now to check whether these commands worked, the final part of the line that's printed should say "Applications -> /private/var/root/Applications". IF it does not say this, STOP and go post in the forum thread with what it does say. If everything looks good, run the following command and then reboot your phone.

* "cd /"
* "rm -rf /Applications.old"

and can confirm all is exactly as shown here

/private/var$ cd /
/$ ls -la / | grep Applications
lrwxr-xr-x 1 root admin 30 Jan 31 20:39 Applications -> /private/var/root/Applications

however each time I open Installer and select ANY item to install it will download the package the start to install it and instantly show the following;

Error
Main script execution failed!

Now this must be to do with the symbolic linking done above so the question is has anyone else had this problem and if so how do we go about repairing it?

Would the problem relate to the folder permissions?

rwxr-xr-x

Currently have a great looking 1.1.3 which I can WinSCP into not not much else :(

Regards
Funboy
 
Hi , same issue , ..a permissions fix solved it :

Code:
# ls -l A*
lrwxr-xr-x   1 root  admin  30 Jan 30 21:55 Applications -> /private/var/root/Applications
# cd Applications

#cd Installer.app 
# ll
total 392
drwxrwxrwx   6 root    wheel     272 Jan 30 21:54 .svn
drwxrwxrwx   3 root    wheel     204 Jan 31 01:15 AppTapp.framework
-rw-r--r--   1 mobile  wheel     141 Jan 31 01:15 Background.png
-rw-r--r--   1 mobile  wheel    1998 Jan 31 01:15 Category.png
-rw-r--r--   1 mobile  wheel    2359 Jan 31 01:15 CategorySmart.png
-rw-r--r--   1 mobile  wheel    1177 Jan 31 01:15 Default.png
-rw-r--r--   1 mobile  wheel    1847 Jan 31 01:15 Featured.png
-rw-r--r--   1 mobile  wheel    2181 Jan 31 01:15 FeaturedSelected.png
-rw-r--r--   1 mobile  wheel     723 Jan 31 01:15 Info.plist
-rw-r--r--   1 mobile  wheel     913 Jan 31 01:15 Install.png
-rw-r--r--   1 mobile  wheel    1077 Jan 31 01:15 InstallSelected.png
-rwxr-xr-x   1 mobile  wheel  111196 Jan 31 01:15 Installer
-rw-r--r--   1 mobile  wheel    2310 Jan 31 01:15 Package.png
-rw-r--r--   1 mobile  wheel    2584 Jan 31 01:15 PackageNew.png
-rw-r--r--   1 mobile  wheel    2414 Jan 31 01:15 Source.png
-rw-r--r--   1 mobile  wheel    2593 Jan 31 01:15 SourceTrusted.png
-rw-r--r--   1 mobile  wheel    2138 Jan 31 01:15 Sources.png
-rw-r--r--   1 mobile  wheel    2766 Jan 31 01:15 SourcesSelected.png
-rw-r--r--   1 mobile  wheel     677 Jan 31 01:15 Uninstall.png
-rw-r--r--   1 mobile  wheel     971 Jan 31 01:15 UninstallSelected.png
-rw-r--r--   1 mobile  wheel     905 Jan 31 01:15 Update.png
-rw-r--r--   1 mobile  wheel    1298 Jan 31 01:15 UpdateSelected.png
-rw-r--r--   1 mobile  wheel    6388 Jan 31 01:15 icon.png
# chmod 777 * 
# ll         
total 392
drwxrwxrwx   6 root    wheel     272 Jan 30 21:54 .svn
drwxrwxrwx   3 root    wheel     204 Jan 31 01:15 AppTapp.framework
-rwxrwxrwx   1 mobile  wheel     141 Jan 31 01:15 Background.png
-rwxrwxrwx   1 mobile  wheel    1998 Jan 31 01:15 Category.png
-rwxrwxrwx   1 mobile  wheel    2359 Jan 31 01:15 CategorySmart.png
-rwxrwxrwx   1 mobile  wheel    1177 Jan 31 01:15 Default.png
-rwxrwxrwx   1 mobile  wheel    1847 Jan 31 01:15 Featured.png
-rwxrwxrwx   1 mobile  wheel    2181 Jan 31 01:15 FeaturedSelected.png
-rwxrwxrwx   1 mobile  wheel     723 Jan 31 01:15 Info.plist
-rwxrwxrwx   1 mobile  wheel     913 Jan 31 01:15 Install.png
-rwxrwxrwx   1 mobile  wheel    1077 Jan 31 01:15 InstallSelected.png
-rwxrwxrwx   1 mobile  wheel  111196 Jan 31 01:15 Installer
-rwxrwxrwx   1 mobile  wheel    2310 Jan 31 01:15 Package.png
-rwxrwxrwx   1 mobile  wheel    2584 Jan 31 01:15 PackageNew.png
-rwxrwxrwx   1 mobile  wheel    2414 Jan 31 01:15 Source.png
-rwxrwxrwx   1 mobile  wheel    2593 Jan 31 01:15 SourceTrusted.png
-rwxrwxrwx   1 mobile  wheel    2138 Jan 31 01:15 Sources.png
-rwxrwxrwx   1 mobile  wheel    2766 Jan 31 01:15 SourcesSelected.png
-rwxrwxrwx   1 mobile  wheel     677 Jan 31 01:15 Uninstall.png
-rwxrwxrwx   1 mobile  wheel     971 Jan 31 01:15 UninstallSelected.png
-rwxrwxrwx   1 mobile  wheel     905 Jan 31 01:15 Update.png
-rwxrwxrwx   1 mobile  wheel    1298 Jan 31 01:15 UpdateSelected.png
-rwxrwxrwx   1 mobile  wheel    6388 Jan 31 01:15 icon.png
 
i have a perfectly working fine jailbroken 1.1.3 iphone.. but in installer when i try to install apps.. i get the "main script execution failed error...
any help?
Reinstall the BSD subsytem one more time...
 
ssh into the phone and run this command:

chmod ug+s /Applications/Installer.app/Installer

Fixed it for me.
 
I uninstalled Community Resources and reinstalled it. Fixed the problem. No chudmown^1+fubu755=own/dir mumbo jumbo to type.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.