Receive Error on ./algo "install tools"
OS / Environment
Debian on VPS
Ansible version
uhhh I don't know honestly
Version of components from requirements.txt
msrestazure setuptools>=11.3 ansible>=2.1,<2.2.1 dopy==0.3.5 boto>=2.5 boto3 azure==2.0.0rc5 msrest=0.4.1 apache-libcloud sox pyopenssl jinja2==2.8
Summary of the problem
Every time I execute ./algo I receive this error:
`TASK [common : Install tools] ************************************************** failed: [localhost] (item=[u'git', u'screen', u'apparmor-utils', u'uuid-runtime', u'coreutils', u'sendmail', u'iptables-persistent', u'cgroup-tools ', u'openssl']) => {"cache_update_time": 1501885200, "cache_updated": false, "failed": true, "item": ["git", "screen", "apparmor-utils", "uuid-runt ime", "coreutils", "sendmail", "iptables-persistent", "cgroup-tools", "openssl"], "msg": "'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef " -o "Dpkg::Options::=--force-confold" install 'git' 'screen' 'apparmor-utils' 'uuid-runtime' 'sendmail' 'iptables-persistent' 'cgroup-tools '' failed: E: Unable to correct problems, you have held broken packages.\n", "stderr": "E: Unable to correct problems, you have held broken package s.\n", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This m ay mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet be en created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet depen dencies:\n sendmail : Depends: sendmail-bin but it is not going to be installed\n", "stdout_lines": ["Reading package lists...", "Building dependen cy tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situatio n or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The f ollowing information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " sendmail : Depends: sendmail-bin but it is not going to be installed"]}
TASK [common : debug] ********************************************************** ok: [localhost] => { "fail_hint": [ "Sorry, but something went wrong!", "Please check the troubleshooting guide.", "https://trailofbits.github.io/algo/troubleshooting.html" ] }
TASK [common : fail] *********************************************************** fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed as requested from task"}
PLAY RECAP ********************************************************************* localhost : ok=18 changed=3 unreachable=0 failed=1
(env) vnc@debian:~/algo-master$ su `
The way of deployment (cloud or local)
SSH into VPS
Expected behavior
normal install without error
Actual behavior
failed install with error
Full log
` PLAY [Configure the server] ****************************************************
TASK [setup] ******************************************************************* ok: [localhost]
TASK [Generate the SSH private key] ******************************************** ok: [localhost]
TASK [Generate the SSH public key] ********************************************* ok: [localhost]
TASK [Change mode for the SSH private key] ************************************* ok: [localhost]
TASK [Ensure the dynamic inventory exists] ************************************* ok: [localhost]
TASK [Ensure the local ssh directory is exist] ********************************* skipping: [localhost]
TASK [Copy the algo ssh key to the local ssh directory] ************************ skipping: [localhost]
TASK [local : Add the instance to an inventory group] ************************** skipping: [localhost]
TASK [local : Add the instance to an inventory group] ************************** changed: [localhost]
TASK [local : set_fact] ******************************************************** ok: [localhost]
TASK [local : Ensure the group local exists in the dynamic inventory file] ***** ok: [localhost]
TASK [local : Populate the dynamic inventory] ********************************** ok: [localhost]
PLAY [Configure the server and install required software] **********************
TASK [Check the system] ******************************************************** changed: [localhost]
TASK [Ubuntu | Install prerequisites] ****************************************** skipping: [localhost]
TASK [FreeBSD / HardenedBSD | Install prerequisites] *************************** skipping: [localhost]
TASK [FreeBSD / HardenedBSD | Configure defaults] ****************************** skipping: [localhost]
TASK [set_fact] **************************************************************** skipping: [localhost]
TASK [Gather Facts] ************************************************************ ok: [localhost]
TASK [Enable IPv6] ************************************************************* skipping: [localhost]
TASK [Generate password for the CA key] **************************************** changed: [localhost -> localhost]
TASK [Define password facts] *************************************************** ok: [localhost]
TASK [Define the commonName] *************************************************** ok: [localhost]
TASK [common : Loopback for services configured] ******************************* ok: [localhost]
TASK [common : Loopback included into the network config] ********************** ok: [localhost]
TASK [common : set_fact] ******************************************************* ok: [localhost]
TASK [common : set_fact] ******************************************************* skipping: [localhost]
TASK [common : Loopback included into the rc config] *************************** skipping: [localhost]
TASK [common : Enable the gateway features] ************************************ skipping: [localhost] => (item={u'value': u'"YES"', u'param': u'firewall_enable'}) skipping: [localhost] => (item={u'value': u'"open"', u'param': u'firewall_type'}) skipping: [localhost] => (item={u'value': u'"YES"', u'param': u'gateway_enable'}) skipping: [localhost] => (item={u'value': u'"YES"', u'param': u'natd_enable'}) skipping: [localhost] => (item={u'value': u'""', u'param': u'natd_interface'}) skipping: [localhost] => (item={u'value': u'"-dynamic -m"', u'param': u'natd_flags'})
TASK [common : Install tools] ************************************************** failed: [localhost] (item=[u'git', u'screen', u'apparmor-utils', u'uuid-runtime', u'coreutils', u'sendmail', u'iptables-persistent', u'cgroup-tools ', u'openssl']) => {"cache_update_time": 1501885200, "cache_updated": false, "failed": true, "item": ["git", "screen", "apparmor-utils", "uuid-runt ime", "coreutils", "sendmail", "iptables-persistent", "cgroup-tools", "openssl"], "msg": "'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef " -o "Dpkg::Options::=--force-confold" install 'git' 'screen' 'apparmor-utils' 'uuid-runtime' 'sendmail' 'iptables-persistent' 'cgroup-tools '' failed: E: Unable to correct problems, you have held broken packages.\n", "stderr": "E: Unable to correct problems, you have held broken package s.\n", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This m ay mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet be en created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet depen dencies:\n sendmail : Depends: sendmail-bin but it is not going to be installed\n", "stdout_lines": ["Reading package lists...", "Building dependen cy tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situatio n or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The f ollowing information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " sendmail : Depends: sendmail-bin but it is not going to be installed"]}
TASK [common : debug] ********************************************************** ok: [localhost] => { "fail_hint": [ "Sorry, but something went wrong!", "Please check the troubleshooting guide.", "https://trailofbits.github.io/algo/troubleshooting.html" ] }
TASK [common : fail] *********************************************************** fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed as requested from task"}
PLAY RECAP ********************************************************************* localhost : ok=18 changed=3 unreachable=0 failed=1 `