To install Linux on a Mac computer, follow the steps below:

  1.    Download the Linux Distribution installer of your choice from https://www.linux.org/pages/download/
  2.    Download Balena Etcher to create a bootable pen drive to install Linux on your Mac from https://etcher.balena.io/ 
  3.    After the pen drive has been created, insert it to your Mac USB port and hold [alt key] while starting your computer to force usb boot
  4.    Proceed with the Linux installation
  5.    After Linux has been installed, login to Linux using the credentials you have chosen during installation 
  6.    Install the updates open the terminal and typing the following commands: 
sudo apt-get update && apt-get upgrade && apt-get dist-upgrade

Here's a breakdown of each command:

  • sudo apt-get update:
    This command updates the package lists by downloading the latest information about available packages from the configured repositories.
  • sudo apt-get upgrade:
    This command upgrades the packages that are already installed on your system to their latest versions, based on the updated package lists. 
  • sudo apt-get dist-upgrade:
    This command performs a full system upgrade, which means it upgrades packages and also handles changes in dependencies, potentially removing or installing new packages as needed to resolve those dependencies.

If the wifi drivers are not installed on your computer, you might have to search for the appropriate drivers. For a Mac Retina mid-2012 I have used the following command to install the network drivers:

sudo apt install firmware-b43-installer

Then

sudo apt install aircrack-ng

If the above commands fail, use the following commands to fix the issue:

sudo -s
sudo apt-get update 
sudo apt-get upgrade
sudo apt-get dist-upgrade