Press Ctrl + Alt + T on your keyboard to open Terminal. When it opens, run the commands below:
sudo apt-get install dmg2img
Once installed, change the directory to where the .dmg file is located and run the following command:
This will convert the .dmg to an .img file. Run the following command to convert the .img to an .iso file.
mv <file_name>.img <file_name>.iso