Fix traceback in solaris package installation
Merge pull request #12276 from terminalmage/issue12237

Fix traceback in solaris package installation