Collecting PyMySQL Downloading https://files.pythonhosted.org/packages/ed/39/15045ae46f2a123019aa968dfcba0396c161c20f855f11dea6796bcaae95/PyMySQL-0.9.3-py2.py3-none-any.whl (47kB) Installing collected packages: PyMySQL Successfully installed PyMySQL-0.9.3 You are using pip version 8.1.1, however version 19.0.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting cherrypy<18.0.0 Downloading https://files.pythonhosted.org/packages/de/62/caa09bdd89ff16ef0c6caf9453ef45e28a4a0cb88739267fbb14a16336a8/CherryPy-17.4.1-py2.py3-none-any.whl (421kB) Collecting cheroot>=6.2.4 (from cherrypy<18.0.0) Downloading https://files.pythonhosted.org/packages/89/10/96d1db9062afd476e6d63895dd3e41ced836228f904532bc640106be20ef/cheroot-6.5.4-py2.py3-none-any.whl (74kB) Collecting contextlib2 (from cherrypy<18.0.0) Downloading https://files.pythonhosted.org/packages/a2/71/8273a7eeed0aff6a854237ab5453bc9aa67deb49df4832801c21f0ff3782/contextlib2-0.5.5-py2.py3-none-any.whl Collecting more-itertools (from cherrypy<18.0.0) Downloading https://files.pythonhosted.org/packages/dd/f4/cdfbb6f07f767e0cd8a11b16adfecc735b6eb87dbebda026ce8898e1cc22/more-itertools-6.0.0.tar.gz (68kB) Collecting portend>=2.1.1 (from cherrypy<18.0.0) Downloading https://files.pythonhosted.org/packages/81/43/21afd5914b74d4271184ee76f4093b45aa6a580dc6627d72dfc33664c6ac/portend-2.3-py2.py3-none-any.whl Collecting zc.lockfile (from cherrypy<18.0.0) Downloading https://files.pythonhosted.org/packages/58/c2/d7c89bdad237b4b7837609172be3e8bf5630796c0020494a15b97ece8eb1/zc.lockfile-1.4.tar.gz Collecting six>=1.11.0 (from cherrypy<18.0.0) Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl Collecting backports.functools-lru-cache (from cheroot>=6.2.4->cherrypy<18.0.0) Downloading https://files.pythonhosted.org/packages/03/8e/2424c0e65c4a066e28f539364deee49b6451f8fcd4f718fefa50cc3dcf48/backports.functools_lru_cache-1.5-py2.py3-none-any.whl Collecting tempora>=1.8 (from portend>=2.1.1->cherrypy<18.0.0) Downloading https://files.pythonhosted.org/packages/6a/73/22900a52243fdcb2251a10bdb7c6a75fc8d40ab59ec25c01e26823af5126/tempora-1.14-py2.py3-none-any.whl Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/dist-packages (from zc.lockfile->cherrypy<18.0.0) Collecting pytz (from tempora>=1.8->portend>=2.1.1->cherrypy<18.0.0) Downloading https://files.pythonhosted.org/packages/61/28/1d3920e4d1d50b19bc5d24398a7cd85cc7b9a75a490570d5a30c57622d34/pytz-2018.9-py2.py3-none-any.whl (510kB) Collecting jaraco.functools>=1.20 (from tempora>=1.8->portend>=2.1.1->cherrypy<18.0.0) Downloading https://files.pythonhosted.org/packages/12/a4/3e7366d0f5e75dcad7be88524c8cbd0f3a9fb1db243269550981740c57fe/jaraco.functools-2.0-py2.py3-none-any.whl Building wheels for collected packages: more-itertools, zc.lockfile Running setup.py bdist_wheel for more-itertools: started Running setup.py bdist_wheel for more-itertools: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/d7/8a/37/026dec21baebd47a0c08276bf3a4be178889e0856bc59fa17f Running setup.py bdist_wheel for zc.lockfile: started Running setup.py bdist_wheel for zc.lockfile: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/09/27/a8/323eeff503e981b09d45ca3a0f085eb03c8a249e87157dd23f Successfully built more-itertools zc.lockfile Installing collected packages: more-itertools, six, backports.functools-lru-cache, cheroot, contextlib2, pytz, jaraco.functools, tempora, portend, zc.lockfile, cherrypy Successfully installed backports.functools-lru-cache-1.5 cheroot-6.5.4 cherrypy-17.4.1 contextlib2-0.5.5 jaraco.functools-2.0 more-itertools-6.0.0 portend-2.3 pytz-2018.9 six-1.12.0 tempora-1.14 zc.lockfile-1.4 You are using pip version 8.1.1, however version 19.0.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting requests Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB) Collecting certifi>=2017.4.17 (from requests) Downloading https://files.pythonhosted.org/packages/60/75/f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa/certifi-2019.3.9-py2.py3-none-any.whl (158kB) Collecting chardet<3.1.0,>=3.0.2 (from requests) Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB) Collecting idna<2.9,>=2.5 (from requests) Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB) Collecting urllib3<1.25,>=1.21.1 (from requests) Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB) Installing collected packages: certifi, chardet, idna, urllib3, requests Successfully installed certifi-2019.3.9 chardet-3.0.4 idna-2.8 requests-2.21.0 urllib3-1.24.1 You are using pip version 8.1.1, however version 19.0.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: apt-utils cron dh-python distro-info-data gir1.2-glib-2.0 iso-codes libapt-inst2.0 libdbus-glib-1-2 libgirepository-1.0-1 libpython3-stdlib lsb-release python-apt-common python3 python3-apt python3-dbus python3-gi python3-minimal python3-pycurl python3-software-properties python3.5 python3.5-minimal unattended-upgrades Suggested packages: anacron logrotate checksecurity exim4 | postfix | mail-transport-agent isoquery lsb python3-doc python3-tk python3-venv python3-apt-dbg python-apt-doc python-dbus-doc python3-dbus-dbg libcurl4-gnutls-dev python-pycurl-doc python3-pycurl-dbg python3.5-venv python3.5-doc binfmt-support bsd-mailx mail-transport-agent The following NEW packages will be installed: apt-utils cron dh-python distro-info-data gir1.2-glib-2.0 iso-codes libapt-inst2.0 libdbus-glib-1-2 libgirepository-1.0-1 libpython3-stdlib lsb-release python-apt-common python3 python3-apt python3-dbus python3-gi python3-minimal python3-pycurl python3-software-properties python3.5 python3.5-minimal software-properties-common unattended-upgrades 0 upgraded, 23 newly installed, 0 to remove and 0 not upgraded. Need to get 5256 kB of archives. After this operation, 31.7 MB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 cron amd64 3.0pl1-128ubuntu2 [68.4 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3.5-minimal amd64 3.5.2-2ubuntu0~16.04.5 [1598 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-minimal amd64 3.5.1-3 [23.3 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3.5 amd64 3.5.2-2ubuntu0~16.04.5 [165 kB] Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 libpython3-stdlib amd64 3.5.1-3 [6818 B] Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dh-python all 2.20151103ubuntu1.1 [74.1 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3 amd64 3.5.1-3 [8710 B] Err:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapt-inst2.0 amd64 1.2.29 404 Not Found [IP: 91.189.88.149 80] Err:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt-utils amd64 1.2.29 404 Not Found [IP: 91.189.88.149 80] Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 distro-info-data all 0.28ubuntu0.9 [4534 B] Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lsb-release all 9.20160110ubuntu0.2 [11.8 kB] Get:12 http://archive.ubuntu.com/ubuntu xenial/main amd64 libgirepository-1.0-1 amd64 1.46.0-3ubuntu1 [88.3 kB] Get:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 gir1.2-glib-2.0 amd64 1.46.0-3ubuntu1 [127 kB] Get:14 http://archive.ubuntu.com/ubuntu xenial/main amd64 iso-codes all 3.65-1 [2268 kB] Get:15 http://archive.ubuntu.com/ubuntu xenial/main amd64 libdbus-glib-1-2 amd64 0.106-1 [67.1 kB] Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-apt-common all 1.1.0~beta1ubuntu0.16.04.2 [16.0 kB] Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-apt amd64 1.1.0~beta1ubuntu0.16.04.2 [137 kB] Get:18 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-dbus amd64 1.2.0-3 [83.1 kB] Get:19 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-gi amd64 3.20.0-0ubuntu1 [153 kB] Get:20 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-pycurl amd64 7.43.0-1ubuntu1 [42.3 kB] Err:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-software-properties all 0.96.20.7 404 Not Found [IP: 91.189.88.149 80] Err:22 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 software-properties-common all 0.96.20.7 404 Not Found [IP: 91.189.88.149 80] Err:23 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 unattended-upgrades all 0.90ubuntu0.9 404 Not Found [IP: 91.189.88.149 80] Fetched 4943 kB in 33s (147 kB/s) E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/a/apt/libapt-inst2.0_1.2.29_amd64.deb 404 Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/a/apt/apt-utils_1.2.29_amd64.deb 404 Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/python3-software-properties_0.96.20.7_all.deb 404 Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/software-properties-common_0.96.20.7_all.deb 404 Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/unattended-upgrades/unattended-upgrades_0.90ubuntu0.9_all.deb 404 Not Found [IP: 91.189.88.149 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? ./startAnsibleServer.sh: line 11: apt-add-repository: command not found Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: ieee-data libyaml-0-2 python-crypto python-ecdsa python-httplib2 python-jinja2 python-markupsafe python-netaddr python-paramiko python-selinux python-six python-yaml Suggested packages: sshpass python-crypto-dbg python-crypto-doc python-jinja2-doc ipython python-netaddr-docs The following NEW packages will be installed: ansible ieee-data libyaml-0-2 python-crypto python-ecdsa python-httplib2 python-jinja2 python-markupsafe python-netaddr python-paramiko python-selinux python-six python-yaml 0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded. Need to get 2906 kB of archives. After this operation, 17.6 MB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libyaml-0-2 amd64 0.1.6-3 [47.6 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-crypto amd64 2.6.1-6ubuntu0.16.04.3 [246 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-markupsafe amd64 0.23-2build2 [15.5 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-jinja2 all 2.8-1 [109 kB] Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-six all 1.10.0-3 [10.9 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-ecdsa all 0.13-2 [34.0 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-paramiko all 1.16.0-1ubuntu0.2 [110 kB] Get:8 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-yaml amd64 3.11-3build1 [105 kB] Get:9 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-httplib2 all 0.9.1+dfsg-1 [34.2 kB] Get:10 http://archive.ubuntu.com/ubuntu xenial/main amd64 ieee-data all 20150531.1 [830 kB] Get:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-netaddr all 0.7.18-1 [174 kB] Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 ansible all 2.0.0.2-2ubuntu1.1 [1018 kB] Get:13 http://archive.ubuntu.com/ubuntu xenial/universe amd64 python-selinux amd64 2.4-3build2 [173 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 2906 kB in 21s (134 kB/s) Selecting previously unselected package libyaml-0-2:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 30031 files and directories currently installed.) Preparing to unpack .../libyaml-0-2_0.1.6-3_amd64.deb ... Unpacking libyaml-0-2:amd64 (0.1.6-3) ... Selecting previously unselected package python-crypto. Preparing to unpack .../python-crypto_2.6.1-6ubuntu0.16.04.3_amd64.deb ... Unpacking python-crypto (2.6.1-6ubuntu0.16.04.3) ... Selecting previously unselected package python-markupsafe. Preparing to unpack .../python-markupsafe_0.23-2build2_amd64.deb ... Unpacking python-markupsafe (0.23-2build2) ... Selecting previously unselected package python-jinja2. Preparing to unpack .../python-jinja2_2.8-1_all.deb ... Unpacking python-jinja2 (2.8-1) ... Selecting previously unselected package python-six. Preparing to unpack .../python-six_1.10.0-3_all.deb ... Unpacking python-six (1.10.0-3) ... Selecting previously unselected package python-ecdsa. Preparing to unpack .../python-ecdsa_0.13-2_all.deb ... Unpacking python-ecdsa (0.13-2) ... Selecting previously unselected package python-paramiko. Preparing to unpack .../python-paramiko_1.16.0-1ubuntu0.2_all.deb ... Unpacking python-paramiko (1.16.0-1ubuntu0.2) ... Selecting previously unselected package python-yaml. Preparing to unpack .../python-yaml_3.11-3build1_amd64.deb ... Unpacking python-yaml (3.11-3build1) ... Selecting previously unselected package python-httplib2. Preparing to unpack .../python-httplib2_0.9.1+dfsg-1_all.deb ... Unpacking python-httplib2 (0.9.1+dfsg-1) ... Selecting previously unselected package ieee-data. Preparing to unpack .../ieee-data_20150531.1_all.deb ... Unpacking ieee-data (20150531.1) ... Selecting previously unselected package python-netaddr. Preparing to unpack .../python-netaddr_0.7.18-1_all.deb ... Unpacking python-netaddr (0.7.18-1) ... Selecting previously unselected package ansible. Preparing to unpack .../ansible_2.0.0.2-2ubuntu1.1_all.deb ... Unpacking ansible (2.0.0.2-2ubuntu1.1) ... Selecting previously unselected package python-selinux. Preparing to unpack .../python-selinux_2.4-3build2_amd64.deb ... Unpacking python-selinux (2.4-3build2) ... Setting up libyaml-0-2:amd64 (0.1.6-3) ... Setting up python-crypto (2.6.1-6ubuntu0.16.04.3) ... Setting up python-markupsafe (0.23-2build2) ... Setting up python-jinja2 (2.8-1) ... Setting up python-six (1.10.0-3) ... Setting up python-ecdsa (0.13-2) ... Setting up python-paramiko (1.16.0-1ubuntu0.2) ... Setting up python-yaml (3.11-3build1) ... Setting up python-httplib2 (0.9.1+dfsg-1) ... Setting up ieee-data (20150531.1) ... Setting up python-netaddr (0.7.18-1) ... Setting up ansible (2.0.0.2-2ubuntu1.1) ... Setting up python-selinux (2.4-3build2) ... Processing triggers for libc-bin (2.23-0ubuntu10) ... Traceback (most recent call last): File "RestServer.py", line 34, in import cherrypy File "/usr/local/lib/python2.7/dist-packages/cherrypy/__init__.py", line 66, in from ._cperror import ( File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cperror.py", line 129, in from more_itertools import always_iterable File "/usr/local/lib/python2.7/dist-packages/more_itertools/__init__.py", line 1, in from more_itertools.more import * # noqa File "/usr/local/lib/python2.7/dist-packages/more_itertools/more.py", line 329 def _collate(*iterables, key=lambda a: a, reverse=False): ^ SyntaxError: invalid syntax