Can't install docker on mint 20 ulyana

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
renakdup
Level 1
Level 1
Posts: 2
Joined: Sun Jul 19, 2020 4:03 am

Can't install docker on mint 20 ulyana

Post by renakdup »

Hi, I have clear linux mint 20. When I have tried to install docker by docs https://docs.docker.com/engine/install/ ... repository.
I have got this message:

Code: Select all

sudo apt-get install docker-ce docker-ce-cli containerd.io
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 containerd.io
E: Couldn't find any package by glob 'containerd.io'
E: Couldn't find any package by regex 'containerd.io'
What have I made not true?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
smurphos
Level 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Can't install docker on mint 20 ulyana

Post by smurphos »

Hi welcome to the forums.

What's the output if inxi -r run in a terminal?
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
renakdup
Level 1
Level 1
Posts: 2
Joined: Sun Jul 19, 2020 4:03 am

Re: Can't install docker on mint 20 ulyana

Post by renakdup »

Code: Select all

Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com ulyana main upstream import backport #id:linuxmint_main
           2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
           1: deb [arch=amd64] https://repo.skype.com/deb stable main
t0gu

Re: Can't install docker on mint 20 ulyana

Post by t0gu »

I've always have this problem soo i made a script to install..

1. save the code bellow as install-docker.sh

Code: Select all

#!/bin/bash

sudo apt-get update

# install dependencies 
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common

# add the gpg key for docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

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

sudo apt-get update

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


# add the user system to sudo group, no sudo command
sudo usermod -aG docker $USER

# prints docker version =)
docker --version
2. after save, open a terminal at the location where you save this script
3. Use the command above:

Code: Select all

chmod +x install-docker.sh
4. In the same terminal just press ./install-docker.sh
5. put your sudo password and these will be done =)

i'm use Linux mint 20 and these solution works =)

Peace o/

Twitter
@t0guu
texe
Level 1
Level 1
Posts: 1
Joined: Thu Aug 27, 2020 2:01 pm

Re: Can't install docker on mint 20 ulyana

Post by texe »

t0gu wrote: Mon Jul 20, 2020 2:35 pm
# add the repository in the Linux mint 20
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable"

sudo apt-get update

# install docker e docker-compose
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable"
Are you sure? You added twice repository in your script. Instead of this:

Code: Select all

# install docker e docker-compose
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable"
you should put this:

Code: Select all

# install docker e docker-compose
sudo apt install docker-ce docker-compose
ross
Level 1
Level 1
Posts: 2
Joined: Wed Jul 15, 2020 12:51 pm

Re: Can't install docker on mint 20 ulyana

Post by ross »

Thanks t0gu and texe! With your solutions combined, it worked for me.
kasun
Level 1
Level 1
Posts: 1
Joined: Sun Jul 11, 2021 3:27 am

Re: Can't install docker on mint 20 ulyana

Post by kasun »

1.please add following command to set up the stable repository

Code: Select all

$ echo \
  "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  focal stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
User avatar
spamegg
Level 11
Level 11
Posts: 3691
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: Can't install docker on mint 20 ulyana

Post by spamegg »

Docker documentation is wrong/outdated. Just use sudo apt install docker that's it!
llovepancakes
Level 1
Level 1
Posts: 34
Joined: Sun Jun 21, 2020 11:02 pm

Re: Can't install docker on mint 20 ulyana

Post by llovepancakes »

spamegg wrote: Sun Jul 11, 2021 6:41 am Docker documentation is wrong/outdated. Just use sudo apt install docker that's it!
why does it need a different github wmdocker and not the original when asked to install? and the docker.io is different to your suggest but whats the difference?
tintenpatronen111
Level 1
Level 1
Posts: 6
Joined: Fri Aug 06, 2021 5:10 am

Re: Can't install docker on mint 20 ulyana

Post by tintenpatronen111 »

Just use

Code: Select all

sudo curl -sSL https://get.docker.com/ | sh
https://stackoverflow.com/questions/303 ... th-apt-get
Locked

Return to “Software & Applications”