Algo says [WARNING]: Updating cache and auto-installing missing dependency: python3-apt
Expected behavior
Algo installs wireguard
Additional context
I'm on Ubuntu 16.04 with OpenVZ virtualization
Full log
[WARNING]: Could not match supplied host pattern, ignoring: vpn-host
PLAY [localhost] ***********************************************************************************
TASK [Gathering Facts] *****************************************************************************
ok: [localhost]
TASK [Playbook dir stat] ***************************************************************************
ok: [localhost]
TASK [Ensure Ansible is not being run in a world writable directory] *******************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [Ensure the requirements installed] ***********************************************************
ok: [localhost]
TASK [Set required ansible version as a fact] ******************************************************
ok: [localhost] => (item=ansible==2.8.8)
TASK [Verify Python meets Algo VPN requirements] ***************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [Verify Ansible meets Algo VPN requirements] **************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
PLAY [Ask user for the input] **********************************************************************
TASK [Gathering Facts] *****************************************************************************
ok: [localhost]
[Cloud prompt]
What provider would you like to use?
1. DigitalOcean
2. Amazon Lightsail
3. Amazon EC2
4. Microsoft Azure
5. Google Compute Engine
6. Hetzner Cloud
7. Vultr
8. Scaleway
9. OpenStack (DreamCompute optimised)
10. CloudStack (Exoscale optimised)
11. Install to existing Ubuntu 18.04 or 19.10 server (for more advanced users)
Enter the number of your desired provider
:
11^M[K
TASK [Cloud prompt] ********************************************************************************
ok: [localhost]
TASK [Set facts based on the input] ****************************************************************
ok: [localhost]
[Cellular On Demand prompt]
Do you want macOS/iOS clients to enable "Connect On Demand" when connected to cellular networks?
[y/N]
:
n^M[K
TASK [Cellular On Demand prompt] *******************************************************************
ok: [localhost]
[Wi-Fi On Demand prompt]
Do you want macOS/iOS clients to enable "Connect On Demand" when connected to Wi-Fi?
[y/N]
:
n^M[K
TASK [Wi-Fi On Demand prompt] **********************************************************************
ok: [localhost]
[Retain the PKI prompt]
Do you want to retain the keys (PKI)? (required to add users in the future, but less secure)
[y/N]
:
y^M[K
TASK [Retain the PKI prompt] ***********************************************************************
ok: [localhost]
[DNS adblocking prompt]
Do you want to enable DNS ad blocking on this VPN server?
[y/N]
:
y^M[K
TASK [DNS adblocking prompt] ***********************************************************************
ok: [localhost]
[SSH tunneling prompt]
Do you want each user to have their own account for SSH tunneling?
[y/N]
:
n^M[K
TASK [SSH tunneling prompt] ************************************************************************
ok: [localhost]
TASK [Set facts based on the input] ****************************************************************
ok: [localhost]
PLAY [Provision the server] ************************************************************************
TASK [Gathering Facts] *****************************************************************************
ok: [localhost]
--> Please include the following block of text when reporting issues:
Algo running on: Ubuntu 16.04.6 LTS (Virtualized: openvz)
Created from git clone. Last commit: eeda23b Initial support for Ubuntu 20.04 (#1770)
Python 3.7.7
Runtime variables:
algo_provider "local"
algo_ondemand_cellular "False"
algo_ondemand_wifi "False"
algo_ondemand_wifi_exclude "X251bGw="
algo_dns_adblocking "True"
algo_ssh_tunneling "False"
wireguard_enabled "True"
dns_encryption "True"
TASK [Display the invocation environment] **********************************************************
changed: [localhost -> localhost]
TASK [Install the requirements] ********************************************************************
ok: [localhost -> localhost]
[local : pause]
Enter the IP address of your server: (or use localhost for local installation):
[localhost]
:
^M[K
TASK [local : pause] *******************************************************************************
ok: [localhost]
TASK [local : Set the facts] ***********************************************************************
ok: [localhost]
[local : pause]
Enter the public IP address or domain name of your server: (IMPORTANT! This is used to verify the certificate)
[localhost]
:
000.000.000.000^M[K
TASK [local : pause] *******************************************************************************
ok: [localhost]
TASK [local : Set the facts] ***********************************************************************
ok: [localhost]
TASK [Set subjectAltName as a fact] ****************************************************************
ok: [localhost]
TASK [Add the server to an inventory group] ********************************************************
changed: [localhost]
TASK [debug] ***************************************************************************************
ok: [localhost] => {
"IP_subject_alt_name": "000.000.000.000"
}
[WARNING]: Reset is not implemented for this connection
TASK [Wait 600 seconds for target connection to become reachable/usable] ***************************
ok: [localhost -> localhost] => (item=localhost)
PLAY [Configure the server and install required software] ******************************************
TASK [common : Check the system] *******************************************************************
ok: [localhost]
included: /root/algo/roles/common/tasks/ubuntu.yml for localhost
TASK [common : Gather facts] ***********************************************************************
ok: [localhost]
TASK [common : Install unattended-upgrades] ********************************************************
[WARNING]: Updating cache and auto-installing missing dependency: python3-apt
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not import python modules: apt, apt_pkg. Please install python3-apt package."}
included: /root/algo/playbooks/rescue.yml for localhost
TASK [debug] ***************************************************************************************
ok: [localhost] => {
"fail_hint": [
"Sorry, but something went wrong!",
"Please check the troubleshooting guide.",
"https://trailofbits.github.io/algo/troubleshooting.html"
]
}
TASK [Fail the installation] ***********************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"}
PLAY RECAP *****************************************************************************************
localhost : ok=32 changed=2 unreachable=0 failed=1 skipped=21 rescued=1 ignored=0
Describe the bug
Algo says [WARNING]: Updating cache and auto-installing missing dependency: python3-apt
Expected behavior
Algo installs wireguard
Additional context
I'm on Ubuntu 16.04 with OpenVZ virtualization
Full log