No internet connection (iMac)
Check that the ethernet cable is plugged in at both ends.
All iMacs should be connected via ethernet and should not need wi-fi access. If an ethernet cable is plugged in, disable wi-fi so the system does not try to automatically connect.