install canon fiery package

540 views
Skip to first unread message

Bertrand Chatain

unread,
Jun 6, 2013, 3:54:48 PM6/6/13
to munk...@googlegroups.com
Hi

i need to deploy driver for our brand new printer from canon (5250 with fiery GX400).

First : two packages exist. One from canon USA websites and one from the fiery rip.

The driver from canon website is a dmg with one applications "Fiery Driver Installer" with inside the pkg

the driver from the GX400 fiery is a dmg with multi pkg (same as canon driver but not inside the applications "Fiery Driver Installer"

I try with the canon version and no luck, after munkiimport and deploy, when i had printer, system doesn't find the PPD

With the multi pkg version, the pkg is very small and i have got error at install.

Is someone have repackaged fiery driver ? Do i need to snapshoot an install ?

Thanks for your help

Jason Hueske

unread,
Jun 7, 2013, 11:38:03 AM6/7/13
to munk...@googlegroups.com
This is what I did for a C5035:

<key>installer_type</key>
<string>copy_from_dmg</string>
<key>installs</key>
<array>
<dict>
<key>md5checksum</key>
<string>b30743a05755b7e15031d82aec3b30c2</string>
<key>path</key>
<string>/Library/Printers/PPDs/Contents/Resources/en.lproj/Canon iR-ADV C5000s-B1 PS V1.0</string>
<key>type</key>
<string>file</string>
</dict>
</array>
<key>items_to_copy</key>
<array>
<dict>
<key>destination_path</key>
<string>/private/tmp/C5035</string>
<key>source_item</key>
<string>Fiery Driver Installer.app</string>
</dict>
</array>
<key>minimum_os_version</key>
<string>10.6.0</string>
<key>name</key>
<string>Canon_C5035_Fiery</string>
<key>postinstall_script</key>
<string>#!/bin/sh

installer -pkg "/private/tmp/C5035/Fiery Driver Installer.app/Contents/Resources/User Software/OSX/Printer Driver/OSX installer.pkg" -tgt /
rm -rf "/private/tmp/C5035/Fiery Driver Installer.app"

exit 0
</string>

I copy the installer .app to /tmp, run the embedded installer from there with a postinstall script, then use an md5 of the installed PPD for the installs key.

Hope this helps,
- Jason


--
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jacob Tomlinson

unread,
Aug 5, 2013, 8:44:40 AM8/5/13
to munk...@googlegroups.com
I've followed your script and everything seems fine until the line


installer -pkg "/private/tmp/C5035/Fiery Driver Installer.app/Contents/Resources/User Software/OSX/Printer Driver/OSX installer.pkg" -tgt /

At which I get the error

"The upgrade failed (The installer encountered an error which caused the installation to fail. Contact the software manufacturer for assistance.)"

If I run the line on it's own it gets to the validating packages section and then gives that error.

Any thoughts?

A.E. van Bochoven

unread,
Aug 5, 2013, 8:54:47 AM8/5/13
to munk...@googlegroups.com
Did you check /var/log/install.log?

-Arjen


Jacob Tomlinson

unread,
Aug 5, 2013, 9:28:47 AM8/5/13
to munk...@googlegroups.com
Install log shows

Aug  5 14:20:40 emd013 installer[8115]: Product archive /private/tmp/fiery/Fiery Driver Installer.app/Contents/Resources/User Software/OSX/Printer Driver/OSX Installer.pkg trustLevel=202
Aug  5 14:20:41 emd013 installer[8115]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
Aug  5 14:20:41 emd013 installer[8115]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/private/tmp/fiery/Fiery%20Driver%20Installer.app/Contents/Resources/User%20Software/OSX/Printer%20Driver/OSX%20Installer.pkg#osxInstaller.pkg
Aug  5 14:20:41 emd013 installer[8115]: Set authorization level to root for session
Aug  5 14:20:41 emd013 runner[8119]: Administrator authorization granted.
Aug  5 14:20:41 emd013 installer[8115]: Will use PK session
Aug  5 14:20:41 emd013 installer[8115]: Starting installation:
Aug  5 14:20:41 emd013 installer[8115]: Configuring volume "Macintosh HD"
Aug  5 14:20:41 emd013 installer[8115]: Preparing disk for local booted install.
Aug  5 14:20:41 emd013 installer[8115]: Free space on "Macintosh HD": 2.97 TB (2965875040256 bytes).
Aug  5 14:20:41 emd013 installer[8115]: Create temporary directory "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//Install.8115wunJOK"
Aug  5 14:20:41 emd013 installer[8115]: IFPKInstallElement (1 packages)
Aug  5 14:20:41 emd013 installer[8115]: Using authorization level of root for IFPKInstallElement
Aug  5 14:20:41 emd013 installd[8120]: installd: Starting
Aug  5 14:20:41 emd013 installd[8120]: installd: uid=0, euid=0
Aug  5 14:20:41 emd013 installd[8120]: PackageKit: ----- Begin install -----
Aug  5 14:20:41 emd013 installd[8120]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
Aug  5 14:20:41 emd013 installd[8120]: PackageKit: packages=(
            "PKLeopardPackage <file://localhost/private/tmp/fiery/Fiery%20Driver%20Installer.app/Contents/Resources/User%20Software/OSX/Printer%20Driver/OSX%20Installer.pkg#osxInstaller.pkg>"
        )
Aug  5 14:20:41 emd013 installd[8120]: PackageKit: Will do receipt-based obsoleting for package identifier com.efi.ppdinstaller (prefix path=)
Aug  5 14:20:41 emd013 installd[8120]: PackageKit: Extracting file://localhost/private/tmp/fiery/Fiery%20Driver%20Installer.app/Contents/Resources/User%20Software/OSX/Printer%20Driver/OSX%20Installer.pkg#osxInstaller.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root, uid=0)
Aug  5 14:20:41 emd013 installd[8120]: PackageKit: prevent user idle system sleep
Aug  5 14:20:41 emd013 installd[8120]: PackageKit: suspending backupd
Aug  5 14:20:41 emd013 installd[8120]: PackageKit: Executing script "./preinstall" in /private/tmp/PKInstallSandbox.tuiI17/Scripts/com.efi.ppdinstaller.zCZQC0
Aug  5 14:20:41 emd013 install_monitor[8124]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: OS Version: 10.8
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: Path : ===================/private/tmp/fiery/Fiery Driver Installer.app/Contents/Resources/User Software/OSX/Printer Driver/OSX Installer.pkg 
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPD Plugins: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/en.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/da.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/de.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/es.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/fi.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/fr.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/it.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/ru.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/ja.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/ko.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/nl.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/no.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/pt_BR.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/tr.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/sv.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/zh_TW.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: mkdir: /Library/Printers/PPDs/Contents/Resources/zh_CN.lproj: File exists
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: FolderLanguage: 
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: ls: /private/tmp/fiery/Fiery Driver Installer.app/Contents/Resources/User Software/OSX/Printer Driver/OSX Installer.pkg/: Not a directory
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: Name of the PPD lang: 
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: /tmp/PKInstallSandbox.tuiI17/Scripts/com.efi.ppdinstaller.zCZQC0/preinstall: line 349: /private/tmp/fiery/Fiery Driver Installer.app/Contents/Resources/User Software/OSX/Printer Driver/OSX Installer.pkg/: Not a directory
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: /tmp/PKInstallSandbox.tuiI17/Scripts/com.efi.ppdinstaller.zCZQC0/preinstall: line 350: /private/tmp/fiery/Fiery Driver Installer.app/Contents/Resources/User Software/OSX/Printer Driver/OSX Installer.pkg/: Not a directory
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: /tmp/PKInstallSandbox.tuiI17/Scripts/com.efi.ppdinstaller.zCZQC0/preinstall: line 352: /private/tmp/fiery/Fiery Driver Installer.app/Contents/Resources/User Software/OSX/Printer Driver/OSX Installer.pkg/: Not a directory
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: /tmp/PKInstallSandbox.tuiI17/Scripts/com.efi.ppdinstaller.zCZQC0/preinstall: line 354: /private/tmp/fiery/Fiery Driver Installer.app/Contents/Resources/User Software/OSX/Printer Driver/OSX Installer.pkg/: Not a directory
Aug  5 14:20:41 emd013 installd[8120]: ./preinstall: PCFILENAME is null !!
Aug  5 14:20:41 emd013 install_monitor[8124]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Aug  5 14:20:42 emd013 installd[8120]: PackageKit: releasing backupd
Aug  5 14:20:42 emd013 installd[8120]: PackageKit: allow user idle system sleep
Aug  5 14:20:42 emd013 installd[8120]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package <E2><80><9C>OSX installer.pkg<E2><80><9D>." UserInfo=0x7ff3d143ba80 {NSFilePath=./preinstall, NSURL=file://localhost/private/tmp/fiery/Fiery%20Driver%20Installer.app/Contents/Resources/User%20Software/OSX/Printer%20Driver/OSX%20Installer.pkg#osxInstaller.pkg, PKInstallPackageIdentifier=com.efi.ppdinstaller, NSLocalizedDescription=An error occurred while running scripts from the package <E2><80><9C>OSX installer.pkg<E2><80><9D>.} {
            NSFilePath = "./preinstall";
            NSLocalizedDescription = "An error occurred while running scripts from the package \U201cOSX installer.pkg\U201d.";
            NSURL = "file://localhost/private/tmp/fiery/Fiery%20Driver%20Installer.app/Contents/Resources/User%20Software/OSX/Printer%20Driver/OSX%20Installer.pkg#osxInstaller.pkg";
            PKInstallPackageIdentifier = "com.efi.ppdinstaller";
        }
Aug  5 14:20:42 emd013 installer[8115]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package <E2><80><9C>OSX installer.pkg<E2><80><9D>." UserInfo=0x7fafc9b1bb20 {NSFilePath=./preinstall, NSURL=file://localhost/private/tmp/fiery/Fiery%20Driver%20Installer.app/Contents/Resources/User%20Software/OSX/Printer%20Driver/OSX%20Installer.pkg#osxInstaller.pkg, PKInstallPackageIdentifier=com.efi.ppdinstaller, NSLocalizedDescription=An error occurred while running scripts from the package <E2><80><9C>OSX installer.pkg<E2><80><9D>.}
Aug  5 14:20:42 emd013 installer[8115]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Aug  5 14:21:01 emd013 installd[8120]: installd: Exiting.

A.E. van Bochoven

unread,
Aug 5, 2013, 9:35:39 AM8/5/13
to munk...@googlegroups.com
So you have an error in the pre-install script, you should take a look at that. I don't use the fiery driver, so I can't help you with that.

As this is not a munki issue, you should post your question to another group (macenterprise for instance)

-Arjen

Jacob Tomlinson

unread,
Aug 6, 2013, 4:16:35 AM8/6/13
to munk...@googlegroups.com
This only happens when run with munki. If I install graphically or using "installer -pkg blah blah" it installs fine.

Is there something munki could be doing differently that's causing this?

A.E. van Bochoven

unread,
Aug 6, 2013, 8:41:52 AM8/6/13
to munk...@googlegroups.com

On 6 aug. 2013, at 10:16, Jacob Tomlinson <ja...@jacobtomlinson.co.uk> wrote:

> This only happens when run with munki. If I install graphically or using "installer -pkg blah blah" it installs fine.

You said that the error occurred when running

> installer -pkg "/private/tmp/C5035/Fiery Driver Installer.app/Contents/Resources/User Software/OSX/Printer Driver/OSX installer.pkg" -tgt /

does this command also fail when you run it from a root session in the terminal? And when you run it at the login window?

> Is there something munki could be doing differently that's causing this?

Unfortunately there are lots of things that can go wrong when the vendor makes assumptions about the install environment (as an example, when you let munki install the driver while being logged out, there will be no user session - some installers fail).
When something *does* goes wrong you have to figure a way around that, which could mean hacking preflight scripts, or repackaging the software (via a snapshot package for instance).


-Arjen

Gregory Neagle

unread,
Aug 6, 2013, 9:12:53 AM8/6/13
to munk...@googlegroups.com
On Aug 6, 2013, at 1:16 AM, Jacob Tomlinson <ja...@jacobtomlinson.co.uk> wrote:

This only happens when run with munki. If I install graphically or using "installer -pkg blah blah" it installs fine.

Is there something munki could be doing differently that's causing this?

Sure. Munki installs as root, not with sudo from a user with a GUI context. Munki can also install when the machine is at the loginwindow. If the preflight script makes bad assumptions about the machine, the current user, or the installation environment, it can fail when installed by Munki. As Arjen suggested yesterday, you should be looking at that preflight script to determine the cause of the failure.

-Greg
Reply all
Reply to author
Forward
0 new messages