When installing a Docker on Linux Mint you can experience an error saying that Docker doesn’t have a release file for your distribution.
E: The repository 'https://download.docker.com/linux/ubuntu tara Release' does not have a Release file.
To solve this issue you have to provide Ubuntu code name for which the Docker is providing a repository. And this replacement will work because Linux Mint is built on top of Ubuntu.
So, to add the Docker repository to your Mint’s distribution you have to use:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable"
In this step, we are simply replacing the Linux Mint codename (returned by
lsb_release -cs) with the Ubuntu base codename (returned by
. /etc/os-release; echo "$UBUNTU_CODENAME").