Issue installing app (signed apps)

Hi !

I’m wondering if somebody could point my in the right direction because I can’t figure out why MDS is not installing my apps (Chrome, Audacity and Gimp).

When looking at the logs I first noticed that it was because the packages weren’t signed. I then signed them using Apple Developper Certificate but I still don’t have any app (even though the installation is “successful”.

Any hints ?

2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]: Running install actions
2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]: Removing temporary directory “/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//Install.476CGSs2m”
2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]: Finalize disk “Macintosh HD”
2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]: Notifying system of updated components
2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]:
2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]: **** Summary Information ****
2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]: Operation Elapsed time
2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]: -----------------------------
2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]: disk 0.05 seconds
2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]: script 0.02 seconds
2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]: zero 0.00 seconds
2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]: install 21.72 seconds
2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]: -total- 21.79 seconds
2020-09-02 16:47:54+02 EDU-Autigny-Mac-01 installer[476]:
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: Product archive /private/var/.imagr/first-boot/items/011-102-googlechrome.pkg trustLevel=350
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: External component packages (1) trustLevel=350
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/private/var/.imagr/first-boot/items/011-102-googlechrome.pkg#0FA0E234-2444-428D-B2E5-05C56F3B2592.pkg
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: Set authorization level to root for session
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: Administrator authorization granted.
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: Will use PK session
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: Using authorization level of root for IFPKInstallElement
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: Starting installation:
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: Configuring volume “Macintosh HD”
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: Preparing disk for local booted install.
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: Free space on “Macintosh HD”: 231.71 Go (231714340864 bytes).
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: Create temporary directory “/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//Install.506ckoHFX”
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: IFPKInstallElement (1 packages)
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: Current Path: /usr/sbin/installer
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installer[506]: Current Path: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
2020-09-02 16:47:55+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: Adding client PKInstallDaemonClient pid=506, uid=0 (/usr/sbin/installer)
2020-09-02 16:47:56+02 EDU-Autigny-Mac-01 installer[506]: PackageKit: Enqueuing install with framework-specified quality of service (utility)
2020-09-02 16:47:56+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: ----- Begin install -----
2020-09-02 16:47:56+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
2020-09-02 16:47:56+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: packages=(
“PKLeopardPackage <id=855299B2-B47F-4DFE-A4D6-62C15AECF611, version=0, url=file:///var/.imagr/first-boot/items/011-102-googlechrome.pkg#0FA0E234-2444-428D-B2E5-05C56F3B2592.pkg>”
)
2020-09-02 16:47:56+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: Set reponsibility for install to 140
2020-09-02 16:47:56+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: Will do receipt-based obsoleting for package identifier 855299B2-B47F-4DFE-A4D6-62C15AECF611 (prefix path=private/tmp)
2020-09-02 16:47:56+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: Extracting file:///var/.imagr/first-boot/items/011-102-googlechrome.pkg#0FA0E234-2444-428D-B2E5-05C56F3B2592.pkg (destination=/Library/InstallerSandboxes/.PKInstallSandboxManager/1659B291-C4B6-4B8C-8123-183D900F99DE.activeSandbox/Root/private/tmp, uid=0)
2020-09-02 16:47:59+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: prevent user idle system sleep
2020-09-02 16:47:59+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: suspending backupd
2020-09-02 16:47:59+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/1659B291-C4B6-4B8C-8123-183D900F99DE.sandboxTrash for sandbox /Library/InstallerSandboxes/.PKInstallSandboxManager/1659B291-C4B6-4B8C-8123-183D900F99DE.activeSandbox
2020-09-02 16:47:59+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: Shoving /Library/InstallerSandboxes/.PKInstallSandboxManager/1659B291-C4B6-4B8C-8123-183D900F99DE.activeSandbox/Root (1 items) to /
2020-09-02 16:47:59+02 EDU-Autigny-Mac-01 install_monitor[511]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
2020-09-02 16:48:00+02 EDU-Autigny-Mac-01 installd[239]: PackageKit (package_script_service): Preparing to execute script “./postinstall” in /private/tmp/PKInstallSandbox.6dSJYT/Scripts/855299B2-B47F-4DFE-A4D6-62C15AECF611.5aZbv7
2020-09-02 16:48:00+02 EDU-Autigny-Mac-01 package_script_service[268]: PackageKit: Executing script “postinstall” in /tmp/PKInstallSandbox.6dSJYT/Scripts/855299B2-B47F-4DFE-A4D6-62C15AECF611.5aZbv7
2020-09-02 16:48:00+02 EDU-Autigny-Mac-01 package_script_service[268]: Set responsibility to pid: 140, responsible_path: /usr/bin/caffeinate
2020-09-02 16:48:00+02 EDU-Autigny-Mac-01 package_script_service[268]: ./postinstall: hdiutil: attach failed - Fichier ou répertoire inexistant
2020-09-02 16:48:00+02 EDU-Autigny-Mac-01 package_script_service[268]: Responsibility set back to self.
2020-09-02 16:48:00+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: Writing receipt for 855299B2-B47F-4DFE-A4D6-62C15AECF611 to /
2020-09-02 16:48:00+02 EDU-Autigny-Mac-01 installd[239]: Installed “” ()
2020-09-02 16:48:00+02 EDU-Autigny-Mac-01 install_monitor[511]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
2020-09-02 16:48:00+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: releasing backupd
2020-09-02 16:48:00+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: allow user idle system sleep
2020-09-02 16:48:00+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: Cleared responsibility for install from 506.
2020-09-02 16:48:00+02 EDU-Autigny-Mac-01 installd[239]: PackageKit: ----- End install -----

I’ve made some progress with this issue in case it helps someone.
Looks like it’s the repackaging by MDS that does something funny to the app. I cannot for instance install the generated .pkg manually (it installs and says it’s successful but the application is nowhere to be found).

So what I did as a workaround is that I extract the .pkg myself from the dmg image. And then use a script in MDS to install the pkg I extracted. This worked fine (I haven’t tested all the apps yet but should be OK). It means a couple of more steps for me but as I don’t have many applications it’s not a big problem.

Would be good to know what the issue with the repackaging in MDS is, but I really don’t see how I could have done anything wrong there as it’s a backgroud process.

3 Likes

I’ve run into this too, with some apps. I’ve been using Packages app to make PKGs for those apps that usually drag install, and this usually works, but open to something better. Also would you mind posting your script? Thanks for your post.

Here is my script. It’s very basic and nothing fancy but it did the job.
I’ve put my script in a repository (called “script”) and inside this repository created a “Resources” folder where I’ve copied my pkgs. Then linked the “script” folder in MDS in the appropriate section and voilà

#!/bin/bash

BASENAME={0##*/} SCRIPTDIR={0%$BASENAME}

installer -pkg “{SCRIPTDIR}/Resources/Gimp.pkg" -target / installer -pkg "{SCRIPTDIR}/Resources/VLC.pkg” -target /
installer -pkg “{SCRIPTDIR}/Resources/Chrome.pkg" -target / installer -pkg "{SCRIPTDIR}/Resources/Audacity.pkg” -target /

exit 0

4 Likes

This might be the solution I need as well. If I understand correctly, you let macos convert the .dmg to a .pkg, then copy that .pkg to MDS?