Can't install docker-ce

Trying to setup a third node on Linux Mint 19.3 Tricia. Any suggestions?

E:The repository ‘ tricia Release’ does not have a Release file.

thaistar@Rig-08:~$ sudo apt-get install docker-ce docker-ce-cli
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘docker-ce’ has no installation candidate
E: Unable to locate package docker-ce-cli
E: Unable to locate package
E: Couldn’t find any package by glob ‘
E: Couldn’t find any package by regex ‘

You need to replace “tricia” with the name of the Ubuntu distro it is based on.

You could also install the package, which works without adding any repositories. Currently this is generally the recommended way of installing docker because of way it is packaged.

So this command from the docs is wrong:
sudo add-apt-repository "deb [arch=amd64] (lsb_release -cs) stable" since (lsb_release -cs) returns tricia and not bionic.

These commands worked:
sudo add-apt-repository “deb [arch=amd64] bionic stable”
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli

No, the docs are right. You’re following the instructions for Ubuntu. If you use another distro, you need to adjust the instructions accordingly as you did now.

Not really. For example, using the command on Ubuntu 19.10 fails as well. You have to manually set the version to 18.04 (bionic) if you are using a newer version. Linux Mint is based on Ubuntu.

Why wouldn’t that pick up cosmic as the distro?

It would pick up the correct OS name (disco/eoan?), which is the problem: docker doesn’t provide packages for the most recent Ubuntu versions