[lion] XCode 4.1 doesn't install with lion

hi


first, sorry for my english...


I had an Imac 2010 with a hard drive 1.5 To who had 1 To free


1) i make upgrade snow leopard to lion

2) Xcode was installed for SL before i made upgrade

3) from appstore, i download XCode 4.1

4) few seconds after install begin, i received this message :


"The installer encountered an error that caused the installation to fail. Please consult /var/log/install.log for more details"


5) i decided to install lion from an usb key


6) i download for the second time XCode 4.1 but i received the same message


Could you help me please


if i open terminal and tape this "nano /var/log/install.log" i obtain this

Jul 22 00:44:27 new-host-3 Install Mac OS X Lion[355]: @(#)PROGRAM:Install PROJECT:Install-684
Jul 22 00:44:27 new-host-3 Install Mac OS X Lion[355]: @(#)PROGRAM:IA PROJECT:InstallAssistant-197
Jul 22 00:44:27 new-host-3 Install Mac OS X Lion[355]: Hardware: iMac11,3 @ 2.93 GHz (x 8), 8192 MB RAM
Jul 22 00:44:27 new-host-3 Install Mac OS X Lion[355]: Running OS Build: Mac OS X 10.7 (11A511)
Jul 22 00:44:27 new-host-3 Install Mac OS X Lion[355]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
Jul 22 00:44:27 new-host-3 Install Mac OS X Lion[355]: Env: PWD=/
Jul 22 00:44:27 new-host-3 Install Mac OS X Lion[355]: Env: SHLVL=1
Jul 22 00:44:27 new-host-3 Install Mac OS X Lion[355]: Env: __OSINSTALL_ENVIRONMENT=1
Jul 22 00:44:27 new-host-3 Install Mac OS X Lion[355]: Env: CI_DEFAULT_OPENCL_USAGE=0
Jul 22 00:44:27 new-host-3 Install Mac OS X Lion[355]: Env: OS_INSTALL=1
Jul 22 00:44:27 new-host-3 Install Mac OS X Lion[355]: Env: _=/System/Installation/CDIS/LCA.app/Contents/MacOS/LCA
Jul 22 00:44:27 new-host-3 Install Mac OS X Lion[355]: Using distribution archive from /Volumes/Image Volume/Packages/OSInstall.mpkg
Jul 22 00:44:28 new-host-3 Install Mac OS X Lion[355]: Using product <OSInstallDVDProduct> based on media at /Volumes/Image Volume at distance 10
Jul 22 00:44:28 new-host-3 Install Mac OS X Lion[355]: Using product <OSInstallESDProduct> based on distribution at /Volumes/Image Volume/Packages/OSInstall.mpkg at distance 5
Jul 22 00:44:28 new-host-3 Install Mac OS X Lion[355]: Checking Software Update catalog URL http://swscan.apple.com/content/catalogs/others/index-lion-snowleopard-leopard.m erged-1.suc$
Jul 22 00:44:28 new-host-3 diskmanagementd[343]: DM ->T+[DMToolBootPreference getPartitionBootability:]: inUDS=0x10674dc30=disk0s2=Macintosh HD
Jul 22 00:44:28 new-host-3 diskmanagementd[343]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMBootable=1 (bootable right now without any further action)
Jul 22 00:44:28 new-host-3 diskmanagementd[343]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMBootCapable=0 (bootable if you call MKCFPrepareBootDevice)
Jul 22 00:44:28 new-host-3 diskmanagementd[343]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMBootSurgeryRequired=0 (for primitive MBR on BIOS, add boot block and loader)
Jul 22 00:44:28 new-host-3 diskmanagementd[343]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMFSSurgeryRequired=0 (for primitive MBR on BIOS, add boot block and loader)
Jul 22 00:44:28 new-host-3 diskmanagementd[343]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMNewfsRequired=0 (bootable with MKCFPrep but it will rudely carve)
Jul 22 00:44:28 new-host-3 diskmanagementd[343]: DM <-T+[DMToolBootPreference getPartitionBootability:]: MKerr=0 out=4=0x4
Jul 22 00:44:28 new-host-3 Install Mac OS X Lion[355]: No available package ref for compatibility update. Ignoring.
Jul 22 00:44:41 new-host-3 Install Mac OS X Lion[355]: Created IATool object:8c3a140
Jul 22 00:44:42 new-host-3 Install Mac OS X Lion[355]: No available package ref for compatibility update. Ignoring.
Jul 22 00:44:42 new-host-3 Install Mac OS X Lion[355]: Preventing machine sleep.
Jul 22 00:44:42 new-host-3 Install Mac OS X Lion[355]: Using product IA_PKSecureNetEnabledProduct <file://localhost/Volumes/Macintosh%20HD/Mac%20OS%20X%20Install%20Data/> at distance 5
Jul 22 00:44:42 new-host-3 Install Mac OS X Lion[355]: Using mutable product path: /Volumes/Macintosh HD/Mac OS X Install Data
Jul 22 00:44:44 new-host-3 Install Mac OS X Lion[355]: Using product <OSSoftwareUpdateCatalogProduct> from product keys 11A511_ServerEssentials at distance 25
Jul 22 00:44:45 new-host-3 Install Mac OS X Lion[355]: Retrieving 50 packages (3.716 GB)
Jul 22 00:44:45 new-host-3 Install Mac OS X Lion[355]: Retrieved package com.apple.MacOSX.lang.da (file://localhost/Volumes/Image%20Volume/Packages/Danish.pkg)
Jul 22 00:44:46 new-host-3 Install Mac OS X Lion[355]: Retrieved package com.apple.MacOSX.lang.pl (file://localhost/Volumes/Image%20Volume/Packages/Polish.pkg)
Jul 22 00:44:49 new-host-3 Install Mac OS X Lion[355]: Retrieved package com.apple.pkg.MediaFiles (file://localhost/Volumes/Image%20Volume/Packages/MediaFiles.pkg)
Jul 22 00:44:49 new-host-3 Install Mac OS X Lion[355]: Retrieved package com.apple.pkg.AddressBook (file://localhost/Volumes/Image%20Volume/Packages/AddressBook.pkg)
Jul 22 00:44:50 new-host-3 Install Mac OS X Lion[355]: Retrieved package com.apple.MacOSX.lang.de (file://localhost/Volumes/Image%20Volume/Packages/German.pkg)
Jul 22 00:44:50 new-host-3 Install Mac OS X Lion[355]: Retrieved package com.apple.MacOSX.lang.sv (file://localhost/Volumes/Image%20Volume/Packages/Swedish.pkg)

iMac, Mac OS X (10.6.8)

Posted on Jul 22, 2011 9:47 AM

Reply
97 replies

Jul 22, 2011 11:29 AM in response to Hot Dog Hot Dog

thanks


here is the result


if you can understand something, i will be happy


Jul 22 19:09:33 imac-de-david installd[845]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package “DeveloperTools.pkg”." UserInfo=0x7feec501c300 {NSLocalizedDescription=An error occurred while extracting files from the package “DeveloperTools.pkg”., NSFilePath=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, NSURL=file://localhost/Volumes/Stock/Install%20Xcode.app/Contents/Resources/Pac kages/DeveloperTools.pkg, PKInstallPackageIdentifier=com.apple.pkg.DeveloperToolsLeo, NSUnderlyingError=0x7feec61764b0 "The file couldn’t be opened because it isn’t in the correct format."} {

NSFilePath = "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root";

NSLocalizedDescription = "An error occurred while extracting files from the package \U201cDeveloperTools.pkg\U201d.";

NSURL = "file://localhost/Volumes/Stock/Install%20Xcode.app/Contents/Resources/Packages /DeveloperTools.pkg";

NSUnderlyingError = "Error Domain=NSCocoaErrorDomain Code=259 \"The file couldn\U2019t be opened because it isn\U2019t in the correct format.\"";

PKInstallPackageIdentifier = "com.apple.pkg.DeveloperToolsLeo";

}

Jul 22 19:09:33 imac-de-david installer[843]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package “DeveloperTools.pkg”." UserInfo=0x7f9edb1119a0 {NSUnderlyingError=0x7f9edb1127e0 "The file couldn’t be opened because it isn’t in the correct format.", NSFilePath=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, NSURL=file://localhost/Volumes/Stock/Install%20Xcode.app/Contents/Resources/Pac kages/DeveloperTools.pkg, PKInstallPackageIdentifier=com.apple.pkg.DeveloperToolsLeo, NSLocalizedDescription=An error occurred while extracting files from the package “DeveloperTools.pkg”.}

Jul 22 19:09:33 imac-de-david installer[843]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

imac-de-david:~ daphi3$

Jul 22, 2011 12:06 PM in response to jimweast

Something is wrong within the installer package. This specifically:


"The file couldn’t be opened because it isn’t in the correct format."} {

NSFilePath = "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root"



I would run it again, just in case, if not, perhaps something corrupted during download.


Sorry about that. try fixing permissions.


Message was edited by: Eric Cote

Jul 22, 2011 12:26 PM in response to jimweast

I have the same problem. The log says:


Jul 22 21:09:19 faultier installd[5810]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “DeveloperTools.pkg”." UserInfo=0x7fec448b1690 {NSFilePath=./preinstall, NSURL=file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Pack ages/DeveloperTools.pkg, PKInstallPackageIdentifier=com.apple.pkg.DeveloperToolsLeo, NSLocalizedDescription=An error occurred while running scripts from the package “DeveloperTools.pkg”.} {

NSFilePath = "./preinstall";

NSLocalizedDescription = "An error occurred while running scripts from the package \U201cDeveloperTools.pkg\U201d.";

NSURL = "file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Packages/ DeveloperTools.pkg";

PKInstallPackageIdentifier = "com.apple.pkg.DeveloperToolsLeo";

}

Jul 22 21:09:19 faultier installer[5802]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “DeveloperTools.pkg”." UserInfo=0x7fca2cd2beb0 {NSFilePath=./preinstall, NSURL=file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Pack ages/DeveloperTools.pkg, PKInstallPackageIdentifier=com.apple.pkg.DeveloperToolsLeo, NSLocalizedDescription=An error occurred while running scripts from the package “DeveloperTools.pkg”.}

Jul 22 21:09:19 faultier installer[5802]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

[lion] XCode 4.1 doesn't install with lion

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