The main edition of the Linux Mint is based on Ubuntu which itself is based on Debian.
If you try to add an Ubuntu APT repository in the Linux Mint with the command, like sudo apt-add-repository "deb [arch=amd64] <URL> $(lsb_release -cs) main", you may get this error:
E: The repository ‘<URL> <codeName> Release’ does not have a Release file. N: Updating from such a repository can’t be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
This is because the $(lsb_release -cs) command returns not the codename of the Ubuntu release but the codename of the Linux Mint.
To solve this error in the most cases it should be enough to replace the $(lsb_release -cs) with the Ubuntu version the Linux Mint distribution is based on.
In this note i will show how to find the Ubuntu version the Linux Mint is based on. (more…)