Hello! I'm trying to quick install Funkwhale on digital ocean droplet running Ubuntu 18.04, but I'm running into an error on "install system packages" that seems to be related to ansible not using the correct version of python. However, this is my first time doing anything with ansible, and since the quick install is wrapped in a shell script, I'm not really sure how to troubleshoot/fix the issue.
[Beginning installation]
[1/4] Checking python3 version
[1/4] 3.8.12 with sufficient version found, skipping
[1/4] Found Python 3.8.12, skipping upgrade
[2/4] Installing ansible dependencies...
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu bionic InRelease [242 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:4 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
Get:5 http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease [74.6 kB]
Hit:6 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Hit:8 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic InRelease
Get:9 https://packages.matrix.org/debian bionic InRelease [5,131 B]
Get:7 https://packages.matrix.org/debian bionic InRelease [5,131 B]
Get:10 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packages [2,464 kB]
Fetched 2,963 kB in 3s (1,043 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-psycopg2 is already the newest version (2.7.4-1).
curl is already the newest version (7.58.0-2ubuntu3.16).
git is already the newest version (1:2.17.1-1ubuntu0.9).
locales is already the newest version (2.27-3ubuntu1.5).
python3-apt is already the newest version (1.6.5ubuntu0.7).
sudo is already the newest version (1.8.21p2-3ubuntu1.4).
locales-all is already the newest version (2.27-3ubuntu1.5).
python3-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.5).
0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
[2/4] Installing Ansible...
Requirement already satisfied: ansible==2.8.2 in /root/.local/lib/python3.8/site-packages
Requirement already satisfied: jinja2 in /usr/lib/python3/dist-packages (from ansible==2.8.2)
Requirement already satisfied: PyYAML in /usr/lib/python3/dist-packages (from ansible==2.8.2)
Requirement already satisfied: cryptography in /usr/lib/python3/dist-packages (from ansible==2.8.2)
[2/4] Creating ansible configuration files in /srv/funkwhale/ansible...
[2/4] Downloading Funkwhale playbook dependencies
- changing role funkwhale from master to master
- extracting funkwhale to /root/.ansible/roles/funkwhale
- funkwhale (master) was installed successfully
[3/4] Installing Funkwhale using ansible playbook in /srv/funkwhale/ansible...
[3/4] Applying playbook with:
/root/.local/bin/ansible-playbook -i /srv/funkwhale/ansible/inventory.ini /srv/funkwhale/ansible/playbook.yml -u root --diff
[WARNING]: Skipping plugin (/root/.local/lib/python3.8/site-packages/ansible/plugins/connection/winrm.py) as it
seems to be invalid: invalid syntax (spawnbase.py, line 224)
PLAY [funkwhale_servers] *********************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************
ok: [127.0.0.1]
TASK [funkwhale : set a password for postgresql DB (remote psql server only)] ****************************************
skipping: [127.0.0.1]
TASK [funkwhale : Set frontend path] *********************************************************************************
ok: [127.0.0.1]
TASK [funkwhale : Install system packages] ***************************************************************************
[WARNING]: Updating cache and auto-installing missing dependency: python3-apt
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Could not import python modules: apt, apt_pkg. Please install python3-apt package."}
PLAY RECAP ***********************************************************************************************************
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0