OS X El Capitan suddenly can't open DMG files
I had the same problem, and managed to open .dmg files by going into Disk Utility>File>Open Disk Image. Once opened in Disk Utility, Double Click (Right Click) the icon and click show in Finder. Then I could install what I wanted! Hop it works for you!