Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No package matching 'docker-ce' is available #58

Closed
smacz42 opened this issue Jul 19, 2019 · 7 comments
Closed

No package matching 'docker-ce' is available #58

smacz42 opened this issue Jul 19, 2019 · 7 comments

Comments

@smacz42
Copy link

smacz42 commented Jul 19, 2019

Expected Behavior

All packages required for docker are installed.

Actual behavior

TASK [docker : Install Docker] ***************************************************************************************************************************************************************************************************************
fatal: [example.com]: FAILED! => {"changed": false, "msg": "No package matching 'docker-ce' is available"}

Manual test

root@manager-test:~# apt 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

Workaround

apt install docker-ce-cli

EDIT

Host OS: Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-154-generic i686)

@nickjj
Copy link
Owner

nickjj commented Jul 19, 2019

Have you run apt-get update on your host at least once before running this role?

@smacz42
Copy link
Author

smacz42 commented Jul 19, 2019 via email

@nickjj
Copy link
Owner

nickjj commented Jul 19, 2019

Looks like something recently changed but docker-ce should still be available according to https://docs.docker.com/install/linux/docker-ce/ubuntu/.

Seems like maybe they decided to split docker-ce and docker-ce-cli into 2 packages where the first one is the daemon where as the second one is the client but on Ubuntu 18.04 installing just docker-ce seems to be enough to get both the daemon and the client.

@nickjj
Copy link
Owner

nickjj commented Jul 20, 2019

I'm not convinced there's an issue with the role.

The role is running to completion for me on Ubuntu 16.04 with no extra things being done outside of this role other than doing standard things you would do on a host such as enabling third party apt repos.

You can see the result of the run at: https://travis-ci.org/nickjj/ansible-docker/builds/561203274

When you ran the role, did the tasks that set up Docker's repo run successfully?

@smacz42
Copy link
Author

smacz42 commented Jul 20, 2019 via email

@smacz42
Copy link
Author

smacz42 commented Jul 20, 2019

Well, I have it in the scrollback of my terminal, and have made sure my playbooks are at the same revision as yesterday, but I'm no longer seeing the error. I'll let you know if this comes up again, but I'm no longer seeing this issue. Thanks for taking the time to look into it.

@smacz42 smacz42 closed this as completed Jul 20, 2019
@smacz42
Copy link
Author

smacz42 commented Nov 18, 2019

FWIW, I ran into the same issue today, and think i'm looking at PEBCAK. I deployed a DO droplet that was 32 bit and ran into this error. Once I deployed a 64 bit image, it worked just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants