I've been doing a lot of buying and selling of my Mac equipment lately in order to get some more recent stuff, and my most recent purchase was a 27" late 2015 iMac, which I got by trading in an older one. This computer is really different though, because of its 5K resolution (5120x2880). I hadn't realized at the time that this might cause problems with Linux distros, but it does. I wanted to run Ubuntu 17.04 on it, but no dice - neither an existing installation or a live installation disk would boot. I would always end up with a dark purple screen. I searched for solutions and came up with a few posts suggesting a change to the grub boot parameters (adding nointremap or nomodeset or acpi=off) would fix this, but it didn't. I tried Ubuntu 16.04 and got the same result, so I then tried some other distros as well as the Ubuntu 17.10 beta 2. The latest Fedora wouldn't boot at all, nor would Elementary. Clonezilla would boot to the first screen and then freeze. Ubuntu 17.10 beta and OpenSuse Leap would boot, but they would take 5 minutes to do so. I didn't try installing OpenSuse, but I did Ubuntu. It did install, and changing its grub boot parameter would allow it to boot up, but again taking many minutes. When it did boot up, network-manager would not connect to the internet with either ethernet or wifi.
I don't know if it matters, but this iMac is the mid-level one with the 3.3 ghz i5 and a Radeon R9 M395 video card; maybe that particular video card is more problematic than the default. At this point I was ready to tear my hair out, but I tried one more distro: Linux Mint Cinnamon 18.2. Changing the boot parameter to nointremap, it booted right up, installed OK, and the installation booted up normally once I permanently added nointremap to the boot sequence! I haven't been interested in either Linux Mint or the Cinnamon desktop for a long time, but I figured I'd better make this to my liking if it's the only thing that would work properly. I spent a lot of time customizing it to my liking, which basically means changing icons and making the panel look like Ubuntu Unity. Turns out that you can do this by adding a vertical bar on the left side of the monitor and pinning my most used applications to it. I can live with this! My only complaint is the lack of fine-grain magnification adjustment in Cinnamon; the only choices are default or 2x magnification for high dpi. (Ubuntu allows you to magnify to tenths.) But the 2x works for me.
Even though I'm happy with Mint, I'm still bugged about not being able to install Ubuntu. Others have been able to get Ubuntu to boot on a 5k iMac, so why couldn't I (unless it's the specific video card)? Mint 18.2 is a derivative of Ubuntu 16.04, so why should it boot so easily when 16.04 wouldn't boot at all? What is different about 17.10 beta that it can boot (though with a lot of stalling) when the previous version cannot? Also, I don't like the fact that I can't boot a Clonezilla disk on this because I use it a lot. I'm wondering what I can try to get Ubuntu and Clonezilla to boot from a live USB, and install in the case of Ubuntu. Might it work if I simply copied all of the grub boot parameters in Mint and use them with Ubuntu? I might try that next, but any suggestions would be welcome.