What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

Discussion Docker not installing

nslegacy

Junior Member
PG Version
8.7.5
Mount Type
Local Drives
Server Type
Local - Dedicated Server
I saw a few posts about this, but I couldn't find a resolution. I'm getting the following error on a fresh install of Ubuntu 16.04. I also tried updating to 18.04 and still getting the same error:

Starting Docker (Please Be Patient)
Failed to start docker.service: Unit docker.service not found.
INFO - FAILED: Docker Failed to Install! Exiting PGBlitz!

I followed the install video, everything works fine until it gets to the point of trying to install docker. I've tried the latest version 8.7.5, as well as the version in the video 8.6.10. No matter which version, it gets the same error.

I was able to get around this by running the following:

sudo apt-get install docker.io

but when I was at the prompts to install cores, nothing would install, and it wouldn't recognize if an app was installed/running.

I'm still new to most of this, so I apologize in advance if I'm not providing the necessary info. Please let me know anything else that may be needed.

Thanks.
 

Cthe1

Respected Member
Try following this guide, first uninstall the old version docker.io. Thats not the right package.

 

nslegacy

Junior Member
Try following this guide, first uninstall the old version docker.io. Thats not the right package.

I followed that and when I get to "install docket engine community" step 2 it gives an error saying it can't find those. I'm at work but can provide the exact error when I return tonight.
 

nslegacy

Junior Member
this is the error I get after running:

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
However the following packages replace it:
docker-ce-cli:amd64

W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/docker.list:1 and /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:1
W: Target Translations (stable/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/docker.list:1 and /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:1
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/docker.list:1 and /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:1
W: Target DEP-11 (stable/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list.d/docker.list:1 and /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:1
W: Target DEP-11-icons (stable/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/docker.list:1 and /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:1
W: Target Packages (edge/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:1 and /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:2
W: Target Packages (edge/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:1 and /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:2
W: Target Translations (edge/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:1 and /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:2
W: Target Translations (edge/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:1 and /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:2
W: Target DEP-11 (edge/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:1 and /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:2
W: Target DEP-11-icons (edge/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:1 and /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list:2
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'
 

Cthe1

Respected Member
I followed that and when I get to "install docket engine community" step 2 it gives an error saying it can't find those. I'm at work but can provide the exact error when I return tonight.
Have you successfully completed the step > Set up the repository?
Looks like the repository is missing :)
 

nslegacy

Junior Member
I thought I did, but now I'm reading it again (without tired eyes) I think I missed a step and didn't replace "lsb_release."

I'll try replacing that tonight as stated in the note and see if it works.
 

nslegacy

Junior Member
I seriously don't know what I'm doing wrong.

I enter the command to install the repository and it just goes back to the command line. It shows up in my "other software" under software and updates.

I update the apps, provides:
$ sudo apt-get update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:3 https://download.docker.com/linux/ubuntu xenial InRelease [66.2 kB]
Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:6 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages [10.7 kB]
Fetched 76.9 kB in 0s (110 kB/s)
Reading package lists... Done

And when I try to install docker-ce:
$ 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
However the following packages replace it:
docker-ce-cli:amd64

E: Package 'docker-ce' has no installation candidate
 

Cthe1

Respected Member
What is output of this command?
Code:
lsb_release -a
When you execute this command, do you insert the whole command? (else it will fail):
Code:
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
Try using the whole command without the line breaks.
Code:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
If there is any errors, please copy/paste them here :)

You could use the docker install script, if all others fails.
Code:
curl -fsSL get.docker.com | CHANNEL=stable sh
 

nslegacy

Junior Member
What is output of this command?
Code:
lsb_release -a
When you execute this command, do you insert the whole command? (else it will fail):
Code:
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
Try using the whole command without the line breaks.
Code:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
If there is any errors, please copy/paste them here :)

You could use the docker install script, if all others fails.
Code:
curl -fsSL get.docker.com | CHANNEL=stable sh

for lsb_release -a:
~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic

$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done

$ sudo apt-get update
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done

$ 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
However the following packages replace it:
docker-ce-cli:amd64

E: Package 'docker-ce' has no installation candidate
 

Cthe1

Respected Member
Hmm 🤔 Can't see any errors in your .

Try adding the edge instead of stabile.
Code:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stabile edge"
If that don't work, try the install script from Docker
Code:
curl -fsSL get.docker.com | CHANNEL=stable sh
 
Assists Greatly with Development Costs

nslegacy

Junior Member
Hmm 🤔 Can't see any errors in your .

Try adding the edge instead of stabile.
Code:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stabile edge"
If that don't work, try the install script from Docker
Code:
curl -fsSL get.docker.com | CHANNEL=stable sh
$ curl -fsSL get.docker.com | CHANNEL=stable sh
# Executing docker install script, commit: 6bf300318ebaab958c4adc341a8c7bb9f3a54a1a
+ sudo -E sh -c apt-get update -qq >/dev/null
+ sudo -E sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sudo -E sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key add -qq - >/dev/null
Warning: apt-key output should not be parsed (stdout is not a terminal)
+ sudo -E sh -c echo "deb [arch=i386] https://download.docker.com/linux/ubuntu bionic stable" > /etc/apt/sources.list.d/docker.list
+ sudo -E sh -c apt-get update -qq >/dev/null
+ [ -n ]
+ sudo -E sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
E: Package 'docker-ce' has no installation candidate
 

Cthe1

Respected Member
What about the edge? did you try to add that to the repository.

Ps. Maybe you need to remove the old docker lines in your sources, think it have added 2 of the same with that install script.

edit this file > /etc/apt/sources.list.d/docker.list
 

nslegacy

Junior Member
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stabile edge"
[sudo] password for pgblitz:
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:4 http://linux.teamviewer.com/deb stable InRelease
Get:5 https://download.docker.com/linux/ubuntu bionic/edge amd64 Packages [8,666 B]
Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [586 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 DEP-11 Metadata [295 kB]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main i386 DEP-11 Metadata [38.7 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [73.8 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [41.5 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [147 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [980 kB]
Get:15 http://security.ubuntu.com/ubuntu bionic-security/universe i386 DEP-11 Metadata [42.2 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe i386 DEP-11 Metadata [254 kB]
Get:17 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16.4 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [192 kB]
Get:19 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [111 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [443 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 DEP-11 Metadata [2,468 B]
Get:22 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 DEP-11 Metadata [2,464 B]
Get:23 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe i386 DEP-11 Metadata [7,924 B]
Fetched 3,493 kB in 3s (1,079 kB/s)
Reading package lists... Done
W: Skipping acquire of configured file 'stabile/binary-amd64/Packages' as repository 'https://download.docker.com/linux/ubuntu bionic InRelease' doesn't have the component 'stabile' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stabile/i18n/Translation-en_US' as repository 'https://download.docker.com/linux/ubuntu bionic InRelease' doesn't have the component 'stabile' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stabile/i18n/Translation-en' as repository 'https://download.docker.com/linux/ubuntu bionic InRelease' doesn't have the component 'stabile' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stabile/dep11/Components-i386.yml' as repository 'https://download.docker.com/linux/ubuntu bionic InRelease' doesn't have the component 'stabile' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stabile/dep11/icons-48x48.tar' as repository 'https://download.docker.com/linux/ubuntu bionic InRelease' doesn't have the component 'stabile' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stabile/dep11/icons-64x64.tar' as repository 'https://download.docker.com/linux/ubuntu bionic InRelease' doesn't have the component 'stabile' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stabile/cnf/Commands-i386' as repository 'https://download.docker.com/linux/ubuntu bionic InRelease' doesn't have the component 'stabile' (component misspelt in sources.list?)
N: Skipping acquire of configured file 'stable/binary-i386/Packages' as repository 'https://download.docker.com/linux/ubuntu bionic InRelease' doesn't support architecture 'i386'

sorry, I'm not sure how to edit that file.
 

Cthe1

Respected Member
There is something weird with your installation.
Have just tested it with a fresh install on a Hetzner Cloud instance, works the first time, just following the guide on Dockers Documentation: https://docs.docker.com/install/linux/docker-ce/ubuntu/
Code:
[email protected]:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:  Ubuntu 18.04.3 LTS
Release:  18.04
Codename: bionic


Code:
apt-get install docker-ce docker-ce-cli containerd.io
Reading package lists... 0%
Reading package lists... 100%
Reading package lists... Done

Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree       

Reading state information... 0%
Reading state information... 2%
Reading state information... Done

Recommended packages:
  aufs-tools cgroupfs-mount | cgroup-lite pigz libltdl7
The following NEW packages will be installed:
  containerd.io docker-ce docker-ce-cli
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 87.8 MB of archives.
After this operation, 389 MB of additional disk space will be used.
What hosting company are you using, and are you just using their clean image of Ubuntu?

If you want to get rid of that error in your sources file.
Remove/uncomment the lines with docker in the bottom of the sources.list file.

Use this command sudo nano /etc/apt/sources.list renember to save the file when exiting the nano editor

Here you can see my last line, that works.
Screenshot 2019-09-27 at 20.45.29.png
 

nslegacy

Junior Member
Wrong with the install of Ubuntu? I'm not hosting with anyone, It's a brand new install on an extra PC I had.
 

nslegacy

Junior Member
Idk what was wrong with it but I reinstalled to a different pc and it worked fine.

Least it went through the whole script this time.

Thank you for your assistance. Much appreciated.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads


Top NZB NewsGroups!

Members - Up To a 58% Discount!

Development Donations

 

Online statistics

Members online
7
Guests online
93
Total visitors
100
Top