Applications - Utilities - Disk Utility
Open Disk Utility, select the startup disk (or disk or partition in which you wish to upgrade the OS), select First Aid, then click the Repair Disk Permissions button. Done. Run the new operating system's installer, select upgrade, install, restart, then open Disk Utility and Repair Disk Permissions again.