Native installation on Ubuntu 16.04 problem

Hi I’m trying to install Open edx followin the Native Installation guide.

I try to install several times with the same result:

TASK [rbenv : create rbenv dir if it does not exist] ***************************
changed: [localhost]

TASK [rbenv : install build depends] *******************************************
failed: [localhost] (item=curl) => {“failed”: true, “item”: “curl”, “msg”: “Failed to lock apt for exclusive operation”}
failed: [localhost] (item=build-essential) => {“failed”: true, “item”: “build-essential”, “msg”: “Failed to lock apt for exclusive operation”}
failed: [localhost] (item=libcurl4-openssl-dev) => {“failed”: true, “item”: “libcurl4-openssl-dev”, “msg”: “Failed to lock apt for exclusive operation”}
failed: [localhost] (item=libreadline-dev) => {“failed”: true, “item”: “libreadline-dev”, “msg”: “Failed to lock apt for exclusive operation”}
failed: [localhost] (item=libssl-dev) => {“failed”: true, “item”: “libssl-dev”, “msg”: “Failed to lock apt for exclusive operation”}
failed: [localhost] (item=libxml2-dev) => {“failed”: true, “item”: “libxml2-dev”, “msg”: “Failed to lock apt for exclusive operation”}
failed: [localhost] (item=libxslt1-dev) => {“failed”: true, “item”: “libxslt1-dev”, “msg”: “Failed to lock apt for exclusive operation”}
failed: [localhost] (item=zlib1g-dev) => {“failed”: true, “item”: “zlib1g-dev”, “msg”: “Failed to lock apt for exclusive operation”}

RUNNING HANDLER [nginx : reload nginx] *****************************************
to retry, use: --limit @/var/tmp/configuration/playbooks/openedx_native.retry

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

========================================
Ansible failed!

If you need help, see https://open.edx.org/getting-help .
When asking for help, please provide as much information as you can.
These might be helpful:
Your log file is at logs/install-20200525-164139.log
Your environment:
OPENEDX_RELEASE=open-release/ironwood.master

Installation finished at 2020-05-25 20:09:16

The full log file is here

Any idea how to fix it.

Hi César,

This kind of error can happen when you are trying to use apt while another user is doing too or if the user who is currently running the sudo command doesn’t have enough rights to do so (like running apt).

Since other playbooks are already running apt commands successfully, like mongodb-3.2 playbook, are you sure that no other apt processes are running in the background?

Hi Geoffrey, I really don’t know if other apt process is running, I will run the install process again and follow it with htop to ensure no other apt process is running.

I ran the installation process with the root user and the process fails at the rbenv installation.

The second try I use a non sudoer user and the process fails at the installation of the demo course.

TASK [demo : import demo course] ***********************************************
fatal: [localhost]: FAILED! =>