It's not just Ask Ubuntu, I've seen it here on MSO too. whats up? Did the hats break things?
Gravatar is experiencing problems - they're returning a
504 Gateway Timeout error for all requests. It has nothing to do with Stack Exchange. You'll just have to deal with it for a while, until they fix whatever their issue is. Any Gravatars still in your cache will continue to show until your browser attempts to update them again.