If you have already upgraded to Mac OS X v10.6 and are experiencing this issue, reinstall Mac OS X v10.6.
If you haven't yet upgraded from Mac OS X v10.5, finish any incomplete software update installations by restarting your Mac. Once your Mac has restarted you can proceed with upgrading to Mac OS X v10.6 Snow Leopard.
See also: Mac OS X: Gray screen appears during startup.