this post was submitted on 14 Jul 2023
8 points (90.0% liked)

Lemmy Support

4657 readers
3 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

I am trying to upgrade using the ansible playbook from 18.0 to the latest.

I issue ‘git pull’ and ‘ansible-playbook -i inventory/hosts lemmy.yml --become --ask-pass --ask-become-pass’. This worked the first time I upgraded to 18.0, but now I get:

TASK [Install Docker Module and docker-compose for Python] ****************************************************** fatal: [root@lemmy.mitchday.com]: FAILED! => {“changed”: false, “cmd”: [“/usr/bin/python3”, “-m”, “pip.main”, “install”, “-U”, “docker”, “docker-compose”], “msg”: "\n:stderr: error: externally-managed-environment\n\n× This environment is externally managed\n╰─> To install Python packages system-wide, try apt install\n …

Is there something obvious I’m missing? Much appreciated. Mostly confused what has changed since my own system config has not since the last successful upgrade and the changelog doesn’t indicate any needed config changes.

top 1 comments
sorted by: hot top controversial new old
[–] meyotch 4 points 1 year ago

I think I figured it out. I'm now running 18.2.

I had to change the lemmy.yml file under Install Docker Module and docker-compose for Python.

The new section uses apt to install python instead of pip. It reads:

- name: Install Docker Module and docker-compose for Python
  apt:
    name:
      - python3-docker
      - docker-compose
    state: latest

My instance in now up to date. Hope this helps someone.