When you try to install:
~$ brew cask install xquartz
We get an error:
==> hdiutil: mount failed - no mountable file systems
Report your problem to HomeBrew
Closing the bug.