#StackBounty: #ubuntu #ansible No package matching 'docker-ce' is available with ansible

Bounty: 50

On ubuntu 18.04 I am running this ansible (version 2.5.1) role:

---
- name: Add Docker apt repository key.
  apt_key:
    url: "https://download.docker.com/linux/ubuntu/gpg"
    state: present

- name: gather facts
  setup:    

- name: Set the stable docker repository
  apt_repository: 
    repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable"
    state: present
    update_cache: yes    

- name: Install Docker
  apt:
    name: docker-ce
    state: present

With this playbook:

---


- hosts: localhost
  connection: local
  gather_facts: False
  become: true

  pre_tasks:
  - name: Install python for Ansible
    raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)

  tasks:  
  - name: Install list of packages
    apt: name={{item}} state=latest
    with_items:
         - nano
         - git
         - htop
         - gitg

  roles:
      - {role: 'docker', tags: 'docker'}

But I get the following error:

PLAY [localhost] *******************************************************************************************************************************

TASK [Install python for Ansible] **************************************************************************************************************
changed: [localhost]

TASK [docker : Add Docker apt repository key.] *************************************************************************************************
ok: [localhost]

TASK [docker : gather facts] *******************************************************************************************************************
ok: [localhost]

TASK [docker : Set the stable docker repository] ***********************************************************************************************
ok: [localhost]

TASK [docker : Install Docker] *****************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'docker-ce' is available"}
    to retry, use: --limit @/home/user/repos/ansible-vps/src/ansible_create_workstation.retry

PLAY RECAP *************************************************************************************************************************************
localhost                  : ok=4    changed=1    unreachable=0    failed=1   

So for some reason the docker-ce package cannot be found, has that changed recently or is it something else I am doing wrong?

Also when I look in: /etc/apt/sources.list it does not contain a:

deb [arch=amd64] https://download.docker.com/linux/ubuntu  ...

entry.


Get this bounty!!!

#StackBounty: #ubuntu #ansible No package matching 'docker-ce' is available with ansible

Bounty: 50

On ubuntu 18.04 I am running this ansible (version 2.5.1) role:

---
- name: Add Docker apt repository key.
  apt_key:
    url: "https://download.docker.com/linux/ubuntu/gpg"
    state: present

- name: gather facts
  setup:    

- name: Set the stable docker repository
  apt_repository: 
    repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable"
    state: present
    update_cache: yes    

- name: Install Docker
  apt:
    name: docker-ce
    state: present

With this playbook:

---


- hosts: localhost
  connection: local
  gather_facts: False
  become: true

  pre_tasks:
  - name: Install python for Ansible
    raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)

  tasks:  
  - name: Install list of packages
    apt: name={{item}} state=latest
    with_items:
         - nano
         - git
         - htop
         - gitg

  roles:
      - {role: 'docker', tags: 'docker'}

But I get the following error:

PLAY [localhost] *******************************************************************************************************************************

TASK [Install python for Ansible] **************************************************************************************************************
changed: [localhost]

TASK [docker : Add Docker apt repository key.] *************************************************************************************************
ok: [localhost]

TASK [docker : gather facts] *******************************************************************************************************************
ok: [localhost]

TASK [docker : Set the stable docker repository] ***********************************************************************************************
ok: [localhost]

TASK [docker : Install Docker] *****************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'docker-ce' is available"}
    to retry, use: --limit @/home/user/repos/ansible-vps/src/ansible_create_workstation.retry

PLAY RECAP *************************************************************************************************************************************
localhost                  : ok=4    changed=1    unreachable=0    failed=1   

So for some reason the docker-ce package cannot be found, has that changed recently or is it something else I am doing wrong?

Also when I look in: /etc/apt/sources.list it does not contain a:

deb [arch=amd64] https://download.docker.com/linux/ubuntu  ...

entry.


Get this bounty!!!

#StackBounty: #ubuntu #pycharm #ubuntu-18.04 PyCharm won't attach to process on Ubuntu 18.04

Bounty: 100

I’m having this issue where PyCharm 2018.1.3 (and previous versions) doesn’t allow me to Attach to Local Process even though I’ve changed the ptrace_scope setting outlined in the documentation here:

https://www.jetbrains.com/help/pycharm/attaching-to-local-process.html

It just spins while waiting to attach, and it eventually just gives up and kills the debugger process.

I’ve restarted and it still just doesn’t work. It did work prior to upgrading (16.04 and 17.10), but every 18.04 VM that I’ve built has this issue.

Does anyone know if there is a new setting, or configuration file to edit on this new version of Ubuntu?


Get this bounty!!!

#StackBounty: #ubuntu #pycharm #ubuntu-18.04 PyCharm won't attach to process on Ubuntu 18.04

Bounty: 100

I’m having this issue where PyCharm 2018.1.3 (and previous versions) doesn’t allow me to Attach to Local Process even though I’ve changed the ptrace_scope setting outlined in the documentation here:

https://www.jetbrains.com/help/pycharm/attaching-to-local-process.html

It just spins while waiting to attach, and it eventually just gives up and kills the debugger process.

I’ve restarted and it still just doesn’t work. It did work prior to upgrading (16.04 and 17.10), but every 18.04 VM that I’ve built has this issue.

Does anyone know if there is a new setting, or configuration file to edit on this new version of Ubuntu?


Get this bounty!!!

#StackBounty: #ubuntu #pycharm #ubuntu-18.04 PyCharm won't attach to process on Ubuntu 18.04

Bounty: 100

I’m having this issue where PyCharm 2018.1.3 (and previous versions) doesn’t allow me to Attach to Local Process even though I’ve changed the ptrace_scope setting outlined in the documentation here:

https://www.jetbrains.com/help/pycharm/attaching-to-local-process.html

It just spins while waiting to attach, and it eventually just gives up and kills the debugger process.

I’ve restarted and it still just doesn’t work. It did work prior to upgrading (16.04 and 17.10), but every 18.04 VM that I’ve built has this issue.

Does anyone know if there is a new setting, or configuration file to edit on this new version of Ubuntu?


Get this bounty!!!

#StackBounty: #ubuntu #pycharm #ubuntu-18.04 PyCharm won't attach to process on Ubuntu 18.04

Bounty: 100

I’m having this issue where PyCharm 2018.1.3 (and previous versions) doesn’t allow me to Attach to Local Process even though I’ve changed the ptrace_scope setting outlined in the documentation here:

https://www.jetbrains.com/help/pycharm/attaching-to-local-process.html

It just spins while waiting to attach, and it eventually just gives up and kills the debugger process.

I’ve restarted and it still just doesn’t work. It did work prior to upgrading (16.04 and 17.10), but every 18.04 VM that I’ve built has this issue.

Does anyone know if there is a new setting, or configuration file to edit on this new version of Ubuntu?


Get this bounty!!!

#StackBounty: #ubuntu #ansible No package matching 'docker-ce' is available with ansible

Bounty: 50

On ubuntu 18.04 I am running this ansible (version 2.5.1) role:

---
- name: Add Docker apt repository key.
  apt_key:
    url: "https://download.docker.com/linux/ubuntu/gpg"
    state: present

- name: gather facts
  setup:    

- name: Set the stable docker repository
  apt_repository: 
    repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable"
    state: present
    update_cache: yes    

- name: Install Docker
  apt:
    name: docker-ce
    state: present

With this playbook:

---


- hosts: localhost
  connection: local
  gather_facts: False
  become: true

  pre_tasks:
  - name: Install python for Ansible
    raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)

  tasks:  
  - name: Install list of packages
    apt: name={{item}} state=latest
    with_items:
         - nano
         - git
         - htop
         - gitg

  roles:
      - {role: 'docker', tags: 'docker'}

But I get the following error:

PLAY [localhost] *******************************************************************************************************************************

TASK [Install python for Ansible] **************************************************************************************************************
changed: [localhost]

TASK [docker : Add Docker apt repository key.] *************************************************************************************************
ok: [localhost]

TASK [docker : gather facts] *******************************************************************************************************************
ok: [localhost]

TASK [docker : Set the stable docker repository] ***********************************************************************************************
ok: [localhost]

TASK [docker : Install Docker] *****************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'docker-ce' is available"}
    to retry, use: --limit @/home/user/repos/ansible-vps/src/ansible_create_workstation.retry

PLAY RECAP *************************************************************************************************************************************
localhost                  : ok=4    changed=1    unreachable=0    failed=1   

So for some reason the docker-ce package cannot be found, has that changed recently or is it something else I am doing wrong?

Also when I look in: /etc/apt/sources.list it does not contain a:

deb [arch=amd64] https://download.docker.com/linux/ubuntu  ...

entry.


Get this bounty!!!

#StackBounty: #ubuntu #ansible No package matching 'docker-ce' is available with ansible

Bounty: 50

On ubuntu 18.04 I am running this ansible (version 2.5.1) role:

---
- name: Add Docker apt repository key.
  apt_key:
    url: "https://download.docker.com/linux/ubuntu/gpg"
    state: present

- name: gather facts
  setup:    

- name: Set the stable docker repository
  apt_repository: 
    repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable"
    state: present
    update_cache: yes    

- name: Install Docker
  apt:
    name: docker-ce
    state: present

With this playbook:

---


- hosts: localhost
  connection: local
  gather_facts: False
  become: true

  pre_tasks:
  - name: Install python for Ansible
    raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)

  tasks:  
  - name: Install list of packages
    apt: name={{item}} state=latest
    with_items:
         - nano
         - git
         - htop
         - gitg

  roles:
      - {role: 'docker', tags: 'docker'}

But I get the following error:

PLAY [localhost] *******************************************************************************************************************************

TASK [Install python for Ansible] **************************************************************************************************************
changed: [localhost]

TASK [docker : Add Docker apt repository key.] *************************************************************************************************
ok: [localhost]

TASK [docker : gather facts] *******************************************************************************************************************
ok: [localhost]

TASK [docker : Set the stable docker repository] ***********************************************************************************************
ok: [localhost]

TASK [docker : Install Docker] *****************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'docker-ce' is available"}
    to retry, use: --limit @/home/user/repos/ansible-vps/src/ansible_create_workstation.retry

PLAY RECAP *************************************************************************************************************************************
localhost                  : ok=4    changed=1    unreachable=0    failed=1   

So for some reason the docker-ce package cannot be found, has that changed recently or is it something else I am doing wrong?

Also when I look in: /etc/apt/sources.list it does not contain a:

deb [arch=amd64] https://download.docker.com/linux/ubuntu  ...

entry.


Get this bounty!!!

#StackBounty: #ubuntu #ansible No package matching 'docker-ce' is available with ansible

Bounty: 50

On ubuntu 18.04 I am running this ansible (version 2.5.1) role:

---
- name: Add Docker apt repository key.
  apt_key:
    url: "https://download.docker.com/linux/ubuntu/gpg"
    state: present

- name: gather facts
  setup:    

- name: Set the stable docker repository
  apt_repository: 
    repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable"
    state: present
    update_cache: yes    

- name: Install Docker
  apt:
    name: docker-ce
    state: present

With this playbook:

---


- hosts: localhost
  connection: local
  gather_facts: False
  become: true

  pre_tasks:
  - name: Install python for Ansible
    raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)

  tasks:  
  - name: Install list of packages
    apt: name={{item}} state=latest
    with_items:
         - nano
         - git
         - htop
         - gitg

  roles:
      - {role: 'docker', tags: 'docker'}

But I get the following error:

PLAY [localhost] *******************************************************************************************************************************

TASK [Install python for Ansible] **************************************************************************************************************
changed: [localhost]

TASK [docker : Add Docker apt repository key.] *************************************************************************************************
ok: [localhost]

TASK [docker : gather facts] *******************************************************************************************************************
ok: [localhost]

TASK [docker : Set the stable docker repository] ***********************************************************************************************
ok: [localhost]

TASK [docker : Install Docker] *****************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'docker-ce' is available"}
    to retry, use: --limit @/home/user/repos/ansible-vps/src/ansible_create_workstation.retry

PLAY RECAP *************************************************************************************************************************************
localhost                  : ok=4    changed=1    unreachable=0    failed=1   

So for some reason the docker-ce package cannot be found, has that changed recently or is it something else I am doing wrong?

Also when I look in: /etc/apt/sources.list it does not contain a:

deb [arch=amd64] https://download.docker.com/linux/ubuntu  ...

entry.


Get this bounty!!!

#StackBounty: #ubuntu #ansible No package matching 'docker-ce' is available with ansible

Bounty: 50

On ubuntu 18.04 I am running this ansible (version 2.5.1) role:

---
- name: Add Docker apt repository key.
  apt_key:
    url: "https://download.docker.com/linux/ubuntu/gpg"
    state: present

- name: gather facts
  setup:    

- name: Set the stable docker repository
  apt_repository: 
    repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable"
    state: present
    update_cache: yes    

- name: Install Docker
  apt:
    name: docker-ce
    state: present

With this playbook:

---


- hosts: localhost
  connection: local
  gather_facts: False
  become: true

  pre_tasks:
  - name: Install python for Ansible
    raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)

  tasks:  
  - name: Install list of packages
    apt: name={{item}} state=latest
    with_items:
         - nano
         - git
         - htop
         - gitg

  roles:
      - {role: 'docker', tags: 'docker'}

But I get the following error:

PLAY [localhost] *******************************************************************************************************************************

TASK [Install python for Ansible] **************************************************************************************************************
changed: [localhost]

TASK [docker : Add Docker apt repository key.] *************************************************************************************************
ok: [localhost]

TASK [docker : gather facts] *******************************************************************************************************************
ok: [localhost]

TASK [docker : Set the stable docker repository] ***********************************************************************************************
ok: [localhost]

TASK [docker : Install Docker] *****************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'docker-ce' is available"}
    to retry, use: --limit @/home/user/repos/ansible-vps/src/ansible_create_workstation.retry

PLAY RECAP *************************************************************************************************************************************
localhost                  : ok=4    changed=1    unreachable=0    failed=1   

So for some reason the docker-ce package cannot be found, has that changed recently or is it something else I am doing wrong?

Also when I look in: /etc/apt/sources.list it does not contain a:

deb [arch=amd64] https://download.docker.com/linux/ubuntu  ...

entry.


Get this bounty!!!