Was trying to deploy an event receiver to a site collection and received the error “Only a site collection administrator can activate or upgrade.”
Problem was that the user I was logged on to the development server with to deploy the solution was not a site administrator.