Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker install on Linux Mint 19 Tara [closed]

Tags:

I tried to install docker on Linux Details as below -

    Mint version 19,      Code name : Tara,     PackageBase : Ubuntu Bionic     Cinnamon (64-bit) 

Referenced link: https://docs.docker.com/install/linux/docker-ce/ubuntu/

Steps:

1. sudo apt-get remove docker docker-engine docker.io  2. sudo apt-get update  3. sudo apt-get install apt-transport-https ca-certificates curl software-properties-common  4. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -  5. sudo apt-key fingerprint 0EBFCD88  6. sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"  7. sudo apt-get update  8. sudo apt-get install docker-ce 

For step 6 I checked lsb_release -cs

xxxxxxxxx:~$ lsb_release -cs tara 

I see issue at step 7.

xxxxxxxxxxx:~$ sudo apt-get update Ign:1 http://packages.linuxmint.com tara InRelease Hit:2 http://packages.linuxmint.com tara Release                                                                                                                         Hit:3 http://la-mirrors.evowise.com/ubuntu bionic InRelease                                                                                                              Hit:4 http://la-mirrors.evowise.com/ubuntu bionic-updates InRelease                                                                                                      Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                             Hit:7 http://la-mirrors.evowise.com/ubuntu bionic-backports InRelease                                                                                                    Hit:8 http://archive.canonical.com/ubuntu bionic InRelease                                                                                                               Get:9 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]                     Hit:10 http://dl.google.com/linux/chrome/deb stable Release                                                 Ign:11 https://download.docker.com/linux/ubuntu tara InRelease                                              Err:13 https://download.docker.com/linux/ubuntu tara Release                            404  Not Found [IP: 2600:9000:2045:3c00:3:db06:4200:93a1 443] Reading package lists... Done                       E: The repository 'https://download.docker.com/linux/ubuntu tara 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. 

As an effect for step 8 I see below error.

xxxxxxxx:~$ sudo apt-get install docker-ce 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 

Looks like there is some issue with linux mint Tara or Ubuntu Bionic with Docker.

Can someone tell me how to resolve the issue and install docker?

like image 475
Shivraj Avatar asked Sep 27 '18 22:09

Shivraj


People also ask

Can I install Docker on Linux Mint?

Docker can be installed from the official repository of Linux Mint using the Docker snap and the . deb package of Docker.

Can I install Docker on Linux VM?

Docker depends on the Linux kernel to operate correctly. Since it doesn't virtualize components, its host OS needs to have access to the Linux kernel and other Linux components. That means you can only use Docker to run the Linux OS and not Windows or Mac OS.

How to install Docker Community Edition on Linux Mint 19?

In this guide, we will do the installation of Docker Community Edition on Linux Mint 19 using below steps. Start the installation by ensuring that all the packages used by docker as dependencies are installed. Import Docker GPG key used for signing Docker packages.

How to install Docker on Ubuntu?

You can go inside “ ubuntu/dists/focal/pool/stable/amd64/ ” and download .deb package for the Docker Engine version you wish to install. Once you have downloaded the packages go inside the directory where the file is downloaded and run the following command. 3. Install Docker Using Installation Script

How to install Linux Mint 19 Tara on Windows?

Hence, enabling you to work or browse for help while installing Linux Mint 19 Tara. If you want to install it right away instead of trying it out, Choose Install Linux Mint 19 . Otherwise, if you choose to install it after trying it out, you can double-click the Install Linux Mint icon (appears on the desktop and start menu).

What is Docker and how do I use it?

Learn how to use snap packages on Ubuntu and Ubuntu-based distros. So, what is Docker? Docker is a special tool that’s designed especially for easier creation, deployment, and running Linux apps using “containers”. In Docker’s terms, “containers” are a pre-bundled environment where Linux apps can run in an expected and repeatable fashion.


1 Answers

The Docker repository at https://download.docker.com/linux/ubuntu doesn't know about Linux Mint's code name tara. Use Ubuntu's codename, bionic.

That is, your step 6 above should be this instead:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable" 

This works because Linux Mint is built on top of Ubuntu. 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").


Because you already ran the incorrect command (with the Linux Mint codename), you might find that you continue to see warnings with apt-get update. To fix these, you can delete the corresponding file (the one that says tara from /etc/apt/sources.list.d/, or use another GUI or command line tool to do this for you.

like image 159
mkasberg Avatar answered Oct 12 '22 15:10

mkasberg