Installation failure....PKInstallErrorDomain Code=112

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
gpt1plon
Posts: 3
Joined: 1. Feb 2016, 12:59

Installation failure....PKInstallErrorDomain Code=112

Post by gpt1plon »

Hello,

I have a:

MacBook Pro (13-inch, Late 2011)
Identifiant du modèle : MacBookPro8,1
Nom du processeur : Intel Core i7

Running 10.11.1 El Captain:

when running 5.0.14 installation or qn older version for example 4.3.36, I am getting:

Feb 1 21:53:40 MacBook-Pro-de-Nadege installd[401]: PackageKit: ----- Begin install -----
Feb 1 21:53:56 MacBook-Pro-de-Nadege installd[401]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "Une erreur s’est produite pendant l’exécution des scripts du paquet « VirtualBox.pkg »." UserInfo={NSFilePath=./preflight, NSURL=file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VirtualBox.pkg, PKInstallPackageIdentifier=org.virtualbox.pkg.virtualbox, NSLocalizedDescription=Une erreur s’est produite pendant l’exécution des scripts du paquet « VirtualBox.pkg ».} {
NSFilePath = "./preflight";
NSLocalizedDescription = "Une erreur s\U2019est produite pendant l\U2019ex\U00e9cution des scripts du paquet \U00ab\U00a0VirtualBox.pkg\U00a0\U00bb.";
NSURL = "file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VirtualBox.pkg";
PKInstallPackageIdentifier = "org.virtualbox.pkg.virtualbox";
}
Feb 1 21:53:57 MacBook-Pro-de-Nadege Installer[27281]: Install failed: Le programme d’installation a rencontré une erreur qui a provoqué l’échec de l’installation. Contactez l’éditeur du logiciel pour obtenir de l’aide.
Feb 1 21:53:57 MacBook-Pro-de-Nadege Installer[27281]: Displaying 'Install Failed' UI.
Feb 1 21:53:57 MacBook-Pro-de-Nadege Installer[27281]: 'Install Failed' UI displayed message:'Le programme d’installation a rencontré une erreur qui a provoqué l’échec de l’installation. Contactez l’éditeur du logiciel pour obtenir de l’aide.'.


Basically , it stops when running package scripts after getting files written.

Does anyone would know how to fix this?
I never installed virtual box before.

Thanks.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Installation failure....PKInstallErrorDomain Code=112

Post by socratis »

You provided the installer log file. Where did that come from? Console messages or the installer log? I have a suspicion that it only logs the errors, but we're going to try and record everything. Run the 5.0.14 installer, and press Cmd-L to show the log. Select "Show All Logs". Before you close the installer window save the log, zip it and attach it here.

BTW, 4.3.36 is not suitable for use in a 10.11 host.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
gpt1plon
Posts: 3
Joined: 1. Feb 2016, 12:59

Re: Installation failure....PKInstallErrorDomain Code=112

Post by gpt1plon »

Hello,

Here it is:

Code: Select all

Feb  2 07:48:32 MacBook-Pro-de-Nadege Installer[34260]: LSExceptions [0x7fbee3429f60] loaded
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: @(#)PROGRAM:Install  PROJECT:Install-1000
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: @(#)PROGRAM:Installer  PROJECT:Installer-853
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Hardware: MacBookPro8,1 @ 2.80 GHz (x 4), 8192 MB RAM
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Running OS Build: Mac OS X 10.11.1 (15B42)
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x1
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Env: TMPDIR=/var/folders/w2/pygy12g152b9pb2016j2d59h0000gn/T/
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Env: HOME=/Users/Nadege
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Env: SHELL=/bin/bash
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Env: SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.EaGYe4lKJQ/Listeners
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Env: Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.HUbeHpIDSm/Render
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Env: LOGNAME=Nadege
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Env: XPC_SERVICE_NAME=com.apple.xpc.launchd.oneshot.0x10000023.Installer
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Env: COMMAND_MODE=unix2003
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Env: USER=Nadege
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Env: XPC_FLAGS=0x0
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Oracle VM VirtualBox 5.0.14 Installation Log
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Opened from: /Volumes/VirtualBox 1/VirtualBox.pkg
Feb  2 07:48:33 MacBook-Pro-de-Nadege Installer[34260]: Product archive /Volumes/VirtualBox 1/VirtualBox.pkg trustLevel=202
Feb  2 07:48:35 MacBook-Pro-de-Nadege Installer[34260]: JS: OS version detected: 10.11.1
Feb  2 07:48:35 MacBook-Pro-de-Nadege Installer[34260]: JS: Hardware architecture detected: x86_64
Feb  2 07:48:35 MacBook-Pro-de-Nadege Installer[34260]: JS: system.run /bin/sh .. returned: 11 result=true
Feb  2 07:48:35 MacBook-Pro-de-Nadege Installer[34260]: JS: result:true
Feb  2 07:48:39 MacBook-Pro-de-Nadege Installer[34260]: InstallerStatusNotifications plugin loaded
Feb  2 07:48:43 MacBook-Pro-de-Nadege Installer[34260]: LSExceptions [0x7fbee3429f60] unloaded
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: Administrator authorization granted.
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: ================================================================================
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: User picked Standard Install
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: Choices selected for installation:
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: 	Installation: "Oracle VM VirtualBox"
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: 	Installation: "Oracle VM VirtualBox Kernel Extensions"
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: 		VirtualBox.pkg#VBoxKEXTs.pkg : org.virtualbox.pkg.vboxkexts : 5.0.14
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: 	Installation: "Oracle VM VirtualBox"
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: 		VirtualBox.pkg#VirtualBox.pkg : org.virtualbox.pkg.virtualbox : 5.0.14
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: 	Installation: "Oracle VM VirtualBox Command Line Utilities"
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: 		VirtualBox.pkg#VirtualBoxCLI.pkg : org.virtualbox.pkg.virtualboxcli : 5.0.14
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: ================================================================================
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: It took 0.00 seconds to summarize the package selections.
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VBoxKEXTs.pkg
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VirtualBox.pkg
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VirtualBoxCLI.pkg
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: Set authorization level to root for session
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: Will use PK session
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: Using authorization level of root for IFPKInstallElement
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: Starting installation:
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: Configuring volume "Nadege"
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: Preparing disk for local booted install.
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: Free space on "Nadege": 124,26 Go (124261453824 bytes).
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: Create temporary directory "/var/folders/w2/pygy12g152b9pb2016j2d59h0000gn/T//Install.34260mb8aoU"
Feb  2 07:48:46 MacBook-Pro-de-Nadege Installer[34260]: IFPKInstallElement (3 packages)
Feb  2 07:48:47 MacBook-Pro-de-Nadege installd[401]: PackageKit: Adding client PKInstallDaemonClient pid=34260, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
Feb  2 07:48:47 MacBook-Pro-de-Nadege Installer[34260]: PackageKit: Enqueuing install with framework-specified quality of service (utility)
Feb  2 07:48:47 MacBook-Pro-de-Nadege installd[401]: PackageKit: ----- Begin install -----
Feb  2 07:48:47 MacBook-Pro-de-Nadege installd[401]: PackageKit: request=PKInstallRequest <3 packages, destination=/>
Feb  2 07:48:47 MacBook-Pro-de-Nadege installd[401]: PackageKit: packages=(
	    "PKLeopardPackage <file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VBoxKEXTs.pkg>",
	    "PKLeopardPackage <file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VirtualBox.pkg>",
	    "PKLeopardPackage <file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VirtualBoxCLI.pkg>"
	)
Feb  2 07:48:49 MacBook-Pro-de-Nadege installd[401]: PackageKit: Extracting file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VBoxKEXTs.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/31F4E86F-09C7-437C-8160-6B70B90B02D9.activeSandbox/Root/Library/Application Support/VirtualBox, uid=0)
Feb  2 07:48:58 MacBook-Pro-de-Nadege installd[401]: PackageKit: Extracting file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VirtualBox.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/31F4E86F-09C7-437C-8160-6B70B90B02D9.activeSandbox/Root/Applications, uid=0)
Feb  2 07:49:06 MacBook-Pro-de-Nadege installd[401]: PackageKit: Extracting file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VirtualBoxCLI.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/31F4E86F-09C7-437C-8160-6B70B90B02D9.activeSandbox/Root/usr/local/bin, uid=0)
Feb  2 07:49:06 MacBook-Pro-de-Nadege installd[401]: PackageKit: prevent user idle system sleep
Feb  2 07:49:06 MacBook-Pro-de-Nadege installd[401]: PackageKit: suspending backupd
Feb  2 07:49:06 MacBook-Pro-de-Nadege installd[401]: PackageKit: Executing script "./preflight" in /private/tmp/PKInstallSandbox.kDbXQC/Scripts/org.virtualbox.pkg.virtualbox.RaMJzG
Feb  2 07:49:06 MacBook-Pro-de-Nadege install_monitor[34305]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Feb  2 07:49:06 MacBook-Pro-de-Nadege install_monitor[34305]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Feb  2 07:49:07 MacBook-Pro-de-Nadege installd[401]: PackageKit: releasing backupd
Feb  2 07:49:07 MacBook-Pro-de-Nadege installd[401]: PackageKit: allow user idle system sleep
Feb  2 07:49:07 MacBook-Pro-de-Nadege installd[401]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "Une erreur s’est produite pendant l’exécution des scripts du paquet « VirtualBox.pkg »." UserInfo={NSFilePath=./preflight, NSURL=file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VirtualBox.pkg, PKInstallPackageIdentifier=org.virtualbox.pkg.virtualbox, NSLocalizedDescription=Une erreur s’est produite pendant l’exécution des scripts du paquet « VirtualBox.pkg ».} {
	    NSFilePath = "./preflight";
	    NSLocalizedDescription = "Une erreur s\U2019est produite pendant l\U2019ex\U00e9cution des scripts du paquet \U00ab\U00a0VirtualBox.pkg\U00a0\U00bb.";
	    NSURL = "file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VirtualBox.pkg";
	    PKInstallPackageIdentifier = "org.virtualbox.pkg.virtualbox";
	}
Feb  2 07:49:07 MacBook-Pro-de-Nadege Installer[34260]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "Une erreur s’est produite pendant l’exécution des scripts du paquet « VirtualBox.pkg »." UserInfo={NSFilePath=./preflight, NSURL=file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg#VirtualBox.pkg, PKInstallPackageIdentifier=org.virtualbox.pkg.virtualbox, NSLocalizedDescription=Une erreur s’est produite pendant l’exécution des scripts du paquet « VirtualBox.pkg ».}
Feb  2 07:49:07 MacBook-Pro-de-Nadege installd[401]: PackageKit: Removing client PKInstallDaemonClient pid=34260, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
Feb  2 07:49:07 MacBook-Pro-de-Nadege installd[401]: PackageKit: Running idle tasks
Feb  2 07:49:07 MacBook-Pro-de-Nadege Installer[34260]: Install failed: Le programme d’installation a rencontré une erreur qui a provoqué l’échec de l’installation. Contactez l’éditeur du logiciel pour obtenir de l’aide.
Feb  2 07:49:07 MacBook-Pro-de-Nadege Installer[34260]: IFDInstallController E352E1C0 state = 8
Feb  2 07:49:07 MacBook-Pro-de-Nadege Installer[34260]: Displaying 'Install Failed' UI.
Feb  2 07:49:07 MacBook-Pro-de-Nadege Installer[34260]: 'Install Failed' UI displayed message:'Le programme d’installation a rencontré une erreur qui a provoqué l’échec de l’installation. Contactez l’éditeur du logiciel pour obtenir de l’aide.'.
Feb  2 07:49:08 MacBook-Pro-de-Nadege installd[401]: PackageKit: Done with sandbox removals
Feb  2 07:49:34 MacBook-Pro-de-Nadege softwareupdated[258]: Adding client SUUpdateServiceClient pid=34173, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdate_notify_agent)
Feb  2 07:49:34 MacBook-Pro-de-Nadege softwareupdate_notify_agent[34173]: Notifying with params: {
	    SoftwareUpdateCount = 1;
	    SoftwareUpdatesAvailable = 1;
	    UpdatesRequireRestart = 1;
	    UpdatesToPerformLater =     (
	        "031-48296"
	    );
	}
Feb  2 07:49:34 MacBook-Pro-de-Nadege softwareupdate_notify_agent[34173]: appstoreupdateagent notified
Feb  2 07:49:34 MacBook-Pro-de-Nadege softwareupdate_notify_agent[34173]: AssertionMgr: Cancel com.apple.softwareupdate.NotifyAgentAssertion assertion for pid 34173
Feb  2 07:49:34 MacBook-Pro-de-Nadege softwareupdated[258]: Removing client SUUpdateServiceClient pid=34173, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdate_notify_agent)

Thanks
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Installation failure....PKInstallErrorDomain Code=112

Post by socratis »

Well, nothing really striking came up, except one thing, which I don't know how to interpret. Your log is first, mine is second:
MacBook-Pro-de-Nadege Installer[34260]: JS: system.run /bin/sh .. returned: 11 result=true
VB-OSX-1011           Installer[483]  : JS: system.run /bin/sh .. returned: 1 result=true
Not sure why executing "sh" would return a different code, but when your preflight runs, it ... fails. If you take a look at the preflight script, it does nothing out of the ordinary ( also, located at https://www.virtualbox.org/svn/vbox/tru ... /preflight ):

Code: Select all

#!/bin/sh

#
# Copyright (C) 2007-2015 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#

set -e

# Check environment.
if [ "${INSTALLER_TEMP}x" == "x" ]; then
    echo "Required environment variable INSTALLER_TEMP is missing. Aborting installation."
    exit 1;
fi

# Backup previously installed Extension Packs before
# installation process will completely remove previously installed
# VirtualBox distribution.
EXTPACKS_ROOT_PATH="/Applications/VirtualBox.app/Contents/MacOS/ExtensionPacks"
if [ -d "${EXTPACKS_ROOT_PATH}" ]; then
    cp -r "${EXTPACKS_ROOT_PATH}" "${INSTALLER_TEMP}"
fi

exit 0;
I'm not an expert but these don't seem like a likely point of failure.

So, have you done anything unusual with your system? Installed 3rd party packages, modified system files, etc? Because, it seems like a really basic point of failure, which I've only encountered in "modified" systems.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
gpt1plon
Posts: 3
Joined: 1. Feb 2016, 12:59

Re: Installation failure....PKInstallErrorDomain Code=112

Post by gpt1plon »

Hello,

No modification on the Mac at all.
What should I do? Raise a ticket?

Thanks
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Installation failure....PKInstallErrorDomain Code=112

Post by socratis »

One thing I noticed: you're installing from "file://localhost/Volumes/VirtualBox%201/VirtualBox.pkg", which means there is a "/Volumes/VirtualBox 1" and a "/Volumes/VirtualBox" volumes. That indicates that you have two VirtualBox volumes, that is you mounted the VirtualBox-###-OSX.dmg twice. Could you make sure that you have only one mounted .dmg? Actually, performing a host reboot wouldn't hurt as well, come to think of it, as that would clear that issue.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply