I have a problem.
When trying repairing permissions on my harddisk I get error -9997 and the diskutility won't repair , what is causing this and what can I do to fix it ?
Boot with you Install disk and then instead of running the install use the included Disk Utility and do a repair on one the hard drive.
I could not find the error code you posted. Disk Utility Repair Permission by compare the Receipts ( /YourHardDrive/Library/Receipts/ ) base permissions to the programs' permissions installed.
I found the solution myself
The disk also gave an error remark using diskutility that there where no packages found. So I reinstalled the packages from the original dvd and surprice permissions could be restored.