gonchik / munki

Automatically exported from code.google.com/p/munki
Other
0 stars 0 forks source link

Unable to run 12.2.0 update for Office 2008 #104

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Fixed the invalid values in original Office 2008 12.0 installer.
2. Created .pkginfo/catalogs and deployed the Office 2008 12.1.0 update. 
3. Added Office2008_update to the testing maifest and Office 2008 updated to 
12.1.0 through munki successfully.
4. Created .pkginfo file for Office 2008 12.2.0 update. Added the install key 
to the .pkginfo file and set the CFBundleShortVersionString to 12.2.0. Added 
the name key to the .pkginfo file too and the keys update_for and requires. For 
update_for it's Office2008 and requires is Office2008-12.1.0.0.0. (The update 
12.2.0 .dmg file is in the pkgs directory.)
5. Ran the managedsoftwareupdate in terminal.

What do you see?

Getting manifest client_manifest...
Using manifest: testing
**Checking for installs**
Getting catalog testing...
Office2008_update-12.2.0 requires Office2008-12.1.0.0.0. Getting info on 
Office2008-12.1.0.0.0...
WARNING: Could not process item Office2008-12.1.0.0.0 for install: 
WARNING: No pkginfo for Office2008-12.1.0.0.0 found in catalogs: testing
WARNING: Didn't attempt to install Office2008_update because could not resolve 
all dependencies.

What version of the product are you using? On what operating system?

Microsoft Office 2008 and munkitools 0.7.1.1173.0.
Please provide any additional information below.

It seems to me that it wants the installer for update 12.1.0. I think I had 
this same issue when I just wanted to add to the munki server update 12.1.0 and 
not the original installer.

Original issue reported on code.google.com by Kolator....@gmail.com on 6 Jul 2011 at 6:33

GoogleCodeExporter commented 8 years ago
I forgot to mention this. I deleted the require in the .pkginfo file for the 
12.2.0 file and it updated successfully. I have tried to many different strings 
for the require key.
Some:
Office2008_Update-12.1.0.0.0
Office2008_update-12.1.0.0.0
Office2008_Update-12.1.0
Office2008_update-12.1.0
Office2008-12.1.0.0.0

Original comment by Kolator....@gmail.com on 6 Jul 2011 at 6:40

GoogleCodeExporter commented 8 years ago
In step 3 you say you added Office2008_update 12.1.0 . What is the value of the 
'name' key for this item? What is the value of the 'version' key for this item? 
Does it have an "update_for" key? If so, what is its value?

Ideally, both the 12.1.0 update and the 12.2.0 update should have a name key of 
"Office2008_Update", and version keys "12.1.0" and "12.2.0", respectively. Both 
should have an "update_for" key of "Office2008" (assuming your "original" 
Office installer pkginfo has a name key of "Office2008"). Finally, the 12.2.0 
update pkginfo would have a "requires" key with the value 
"Office2008_Update-12.1.0".  This is not a arbitrary or fuzzy value -- it is 
the name, a hyphen, and the version of the pkginfo for the item that is 
required. "Office2008-12.1.0" is not the same item as 
"Office2008_Update-12.1.0" -- from your description, "Office2008-12.1.0" 
doesn't exist, and munki itself says it does not.

The examples here show a working set of original installer and updates: 
http://code.google.com/p/munki/source/browse/#svn%2Ftrunk%2Fpkginfo%20examples%2
FOffice2008_original

Original comment by gregnea...@mac.com on 7 Jul 2011 at 3:32

GoogleCodeExporter commented 8 years ago
Marking as "WontFix" --  this is not defect in the code that needs to be 
addressed.

Original comment by gregnea...@mac.com on 7 Jul 2011 at 3:33

GoogleCodeExporter commented 8 years ago
The value of Office2008_12.1.0 name key is Office2008_update and version key is 
12.1.0. It does have a requires key is Office2008-12.0.0.0.0. It also has a 
update_for key which is Office2008. For Office2008_12.2.0, the name key is 
Office2008_update, version key 12.2.0, requires key Office2008_update-12.1.0 
and update_for Office2008. I'm still getting the same warning message:

Office2008 version 12.0.0 (or newer) is already installed.
Office2008_update-12.2.0 requires Office2008_update-12.1.0. Getting info on 
Office2008_update-12.1.0...
WARNING: Could not process item Office2008_update-12.1.0 for install: 
WARNING: No pkginfo for Office2008_update-12.1.0 found in catalogs: testing
WARNING: Didn't attempt to install Office2008_update because could not resolve 
all dependencies.

I will attach the pkginfo files for them and some other stuff so you can check 
them out. The testing file is the manifest. 

Original comment by Kolator....@gmail.com on 11 Jul 2011 at 9:00

Attachments:

GoogleCodeExporter commented 8 years ago
Can we move this discussion to the munki-dev list?

First comment: you don't need to have Office2008_update in the testing 
manifest's managed_installs; the update_for relationship will cause munki to 
install it.

In the Office2008-12.1.0.pkginfo, you can remove the requires key because it's 
implied by the update_for key.

But I see no obvious problems. So I must assume that perhaps you did not run 
makecatalogs after editing the pkginfo files, especially since the warning 
messages in your first posting don't match the contents of the pkginfo files in 
your most recent comment. I'd like you to try running makecatalogs, then try 
managedsoftwareupdate again. If this fails, I'd like to see the testing catalog.

Original comment by gregnea...@mac.com on 11 Jul 2011 at 9:48

GoogleCodeExporter commented 8 years ago
I removed the Office2008_update from the manifest and also removed the requires 
key in the Office2008-12.1.0.pkginfo and still have the same issue. Yes I 
rebuild the catalogs each time. I also had an issue with Office 2008 where 
munki was giving me an error when it was trying to verify the Installer. I have 
made changes to the Installer like you mentioned in one of the wikis but not 
sure if that issue is relatived with this one.
Here is the testing and all catalogs that I'm using. 

Original comment by Kolator....@gmail.com on 12 Jul 2011 at 6:53

Attachments:

GoogleCodeExporter commented 8 years ago
I think I've found the issue. In the pkginfo for Office2008_update-12.1.0, the 
version is incorrect:

    <key>version</key>
    <string>12.1.0)</string>

Remove the right parenthesis:

    <key>version</key>
    <string>12.1.0</string>

Run makecatalogs, and I'll bet things start working as you'd expect.

Original comment by gregnea...@mac.com on 13 Jul 2011 at 3:48

GoogleCodeExporter commented 8 years ago
OK, I did it and it worked!! But there are two other issues that I have. One is 
with Office 2008 and the other is Office 2011. I'll start with Office 2008. I 
have made the changes to the installer to fix the invalid values. I found all 
of them thru the terminal using grep and then went through each file and 
changed them. The problem is when munki sees that it's not installed, it 
downloads it and then does a integrity check which it fails at. Here is the 
error.

Verifying package integrity...
ERROR: Hash value integrity check for Office2008 failed.
WARNING: Can't install Office2008 because the integrity check failed.

The issue with I have with Office 2011 is that update 14.1.2 will not install. 
I et this error message:

Installing Office 2011 14.1.2 Update (2 of 2)...
Mounting disk image Office2011-1412UpdateEN.dmg...
Install of Office 2011 14.1.2 Update failed with return code 1...
ERROR: 
------------------------------------------------------------------------------
ERROR: installer: Package name is Office 2011 14.1.2 Update
ERROR: installer: choices file '/tmp/tmp08fjUI/choices.xml' either could not be 
found or was malformed.
ERROR: 
------------------------------------------------------------------------------

I will attach all the Office 2011 files.

Original comment by Kolator....@gmail.com on 13 Jul 2011 at 7:18

Attachments:

GoogleCodeExporter commented 8 years ago
OK, I did it and it worked!! But there are two other issues that I have. One is 
with Office 2008 and the other is Office 2011. I'll start with Office 2008. I 
have made the changes to the installer to fix the invalid values. I found all 
of them thru the terminal using grep and then went through each file and 
changed them. The problem is when munki sees that it's not installed, it 
downloads it and then does a integrity check which it fails at. Here is the 
error.

Verifying package integrity...
ERROR: Hash value integrity check for Office2008 failed.
WARNING: Can't install Office2008 because the integrity check failed.

The issue with I have with Office 2011 is that update 14.1.2 will not install. 
I et this error message:

Installing Office 2011 14.1.2 Update (2 of 2)...
Mounting disk image Office2011-1412UpdateEN.dmg...
Install of Office 2011 14.1.2 Update failed with return code 1...
ERROR: 
------------------------------------------------------------------------------
ERROR: installer: Package name is Office 2011 14.1.2 Update
ERROR: installer: choices file '/tmp/tmp08fjUI/choices.xml' either could not be 
found or was malformed.
ERROR: 
------------------------------------------------------------------------------

I will attach all the Office 2011 files.

Original comment by Kolator....@gmail.com on 13 Jul 2011 at 7:19

Attachments:

GoogleCodeExporter commented 8 years ago
In the manifest I just have Office2011 in the managed_installs.

Original comment by Kolator....@gmail.com on 13 Jul 2011 at 7:19

GoogleCodeExporter commented 8 years ago
"The problem is when munki sees that it's not installed, it downloads it and 
then does a integrity check which it fails at. Here is the error.

Verifying package integrity...
ERROR: Hash value integrity check for Office2008 failed.
WARNING: Can't install Office2008 because the integrity check failed."

This is because the calculated checksum for the downloaded dmg doesn't match 
the calculated checksum for the same file when you uploaded it. One possible 
reason for this would be you changed the file on the server after the initial 
upload or replaced it with a different file. Another possible reason is that 
you uploaded a read-write disk image, which changes each time it is opened, 
causing the checksum to change. Replace it with a read-only disk image, and 
regenerate the checksum with makepkginfo.

(Again, these general questions would be better served on the munki-dev mailing 
list, where more people will see and respond)

Original comment by gregnea...@mac.com on 13 Jul 2011 at 8:17

GoogleCodeExporter commented 8 years ago
"The issue with I have with Office 2011 is that update 14.1.2 will not install. 
I et this error message:

Installing Office 2011 14.1.2 Update (2 of 2)...
Mounting disk image Office2011-1412UpdateEN.dmg...
Install of Office 2011 14.1.2 Update failed with return code 1...
ERROR: 
------------------------------------------------------------------------------
ERROR: installer: Package name is Office 2011 14.1.2 Update
ERROR: installer: choices file '/tmp/tmp08fjUI/choices.xml' either could not be 
found or was malformed.
ERROR: 
------------------------------------------------------------------------------"

This means your installer_choices_xml is invalid.
It looks like you tried to implement this:
http://code.google.com/p/munki/wiki/MunkiAndOffice2011Updates

The wiki has this installer_choices_xml:

<key>installer_choices_xml</key>
<array>
        <dict>
            <key>attributeSetting</key>
            <integer>0</integer>
            <key>choiceAttribute</key>
            <string>selected</string>
            <key>choiceIdentifier</key>
            <string>quit</string>
        </dict>
</array>

you have:

    <key>installer_choices_xml</key>
    <array>
        <dict>
            <key>attributeSetting</key>
            <integer>0</integer>
            <key>choiceSetting</key>
            <string>selected</string>
            <key>choiceIdentifier</key>
            <string>quit</string>
        </dict>
    </array>

choiceSetting should be choiceAttribute.

Original comment by gregnea...@mac.com on 13 Jul 2011 at 8:24

GoogleCodeExporter commented 8 years ago
I'm still having the problem with the integrity test for Office 2008. I 
replaced it with a read-only image and still getting the same message. I'm 
still going to copy the original installer and make changes to it and upload 
it. Maybe that will do the trick. 

Original comment by Kolator....@gmail.com on 14 Jul 2011 at 8:54