Skip to content

Instantly share code, notes, and snippets.

@greenmoss
Last active April 1, 2017 19:28
Show Gist options
  • Save greenmoss/c055fd84c1d8ff633cc9fc92d7c115eb to your computer and use it in GitHub Desktop.
Save greenmoss/c055fd84c1d8ff633cc9fc92d7c115eb to your computer and use it in GitHub Desktop.
letsencrypt-auto fails at installing python-augeas
Bootstrapping dependencies for Debian-based OSes...
Ign http://us.archive.ubuntu.com trusty InRelease
Get:1 http://us.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Hit http://us.archive.ubuntu.com trusty-backports InRelease
Hit http://us.archive.ubuntu.com trusty Release.gpg
Get:2 http://us.archive.ubuntu.com trusty-updates/main Sources [395 kB]
Get:3 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Ign http://ppa.launchpad.net trusty InRelease
Get:4 http://us.archive.ubuntu.com trusty-updates/restricted Sources [6,327 B]
Get:5 http://us.archive.ubuntu.com trusty-updates/universe Sources [176 kB]
Hit http://ppa.launchpad.net trusty Release.gpg
Get:6 http://us.archive.ubuntu.com trusty-updates/multiverse Sources [7,763 B]
Get:7 http://us.archive.ubuntu.com trusty-updates/main amd64 Packages [968 kB]
Hit http://ppa.launchpad.net trusty Release
Get:8 http://us.archive.ubuntu.com trusty-updates/restricted amd64 Packages [17.1 kB]
Get:9 http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages [402 kB]
Get:10 http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [14.3 kB]
Get:11 http://security.ubuntu.com trusty-security/main Sources [128 kB]
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Get:12 http://us.archive.ubuntu.com trusty-updates/main i386 Packages [928 kB]
Hit http://ppa.launchpad.net trusty/main i386 Packages
Get:13 http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages [16.9 kB]
Get:14 http://us.archive.ubuntu.com trusty-updates/universe i386 Packages [403 kB]
Hit http://ppa.launchpad.net trusty/main Translation-en
Get:15 http://security.ubuntu.com trusty-security/restricted Sources [4,941 B]
Get:16 http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages [14.6 kB]
Get:17 http://us.archive.ubuntu.com trusty-updates/main Translation-en [479 kB]
Get:18 http://security.ubuntu.com trusty-security/universe Sources [50.6 kB]
Get:19 http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en [7,430 B]
Get:20 http://security.ubuntu.com trusty-security/multiverse Sources [3,203 B]
Get:21 http://us.archive.ubuntu.com trusty-updates/restricted Translation-en [3,975 B]
Get:22 http://us.archive.ubuntu.com trusty-updates/universe Translation-en [213 kB]
Hit http://us.archive.ubuntu.com trusty-backports/main Sources
Get:23 http://security.ubuntu.com trusty-security/main amd64 Packages [601 kB]
Hit http://us.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://us.archive.ubuntu.com trusty-backports/universe Sources
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://us.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://us.archive.ubuntu.com trusty Release
Hit http://us.archive.ubuntu.com trusty/main Sources
Hit http://us.archive.ubuntu.com trusty/restricted Sources
Hit http://us.archive.ubuntu.com trusty/universe Sources
Hit http://us.archive.ubuntu.com trusty/multiverse Sources
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty/main i386 Packages
Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en
Get:24 http://security.ubuntu.com trusty-security/restricted amd64 Packages [14.0 kB]
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty/universe Translation-en
Get:25 http://security.ubuntu.com trusty-security/universe amd64 Packages [155 kB]
Get:26 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4,143 B]
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US
Get:27 http://security.ubuntu.com trusty-security/main i386 Packages [561 kB]
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US
Get:28 http://security.ubuntu.com trusty-security/restricted i386 Packages [13.8 kB]
Get:29 http://security.ubuntu.com trusty-security/universe i386 Packages [155 kB]
Get:30 http://security.ubuntu.com trusty-security/multiverse i386 Packages [4,292 B]
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Fetched 5,879 kB in 7s (778 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
dialog is already the newest version.
gcc is already the newest version.
python is already the newest version.
python-dev is already the newest version.
ca-certificates is already the newest version.
libaugeas0 is already the newest version.
libffi-dev is already the newest version.
libssl-dev is already the newest version.
python-virtualenv is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Creating virtual environment...
Running virtualenv with interpreter /usr/bin/python2.7
New python executable in /root/.local/share/letsencrypt/bin/python2.7
Also creating executable in /root/.local/share/letsencrypt/bin/python
Installing setuptools, pip...done.
Updating letsencrypt and virtual environment dependencies...
Downloading/unpacking setuptools from https://pypi.python.org/packages/dd/d5/0c24cf773269681b2ce088b7afbaadddc2273cf0bd91c3f3961458097de2/setuptools-34.3.3-py2.py3-none-any.whl#md5=a8839fd6a07db7a50cc03e154545c63f
Downloading setuptools-34.3.3-py2.py3-none-any.whl (389kB): 389kB downloaded
Downloading/unpacking appdirs>=1.4.0 (from setuptools)
Downloading appdirs-1.4.3-py2.py3-none-any.whl
Downloading/unpacking six>=1.6.0 (from setuptools)
Downloading six-1.10.0-py2.py3-none-any.whl
Downloading/unpacking packaging>=16.8 (from setuptools)
Downloading packaging-16.8-py2.py3-none-any.whl
Downloading/unpacking pyparsing (from packaging>=16.8->setuptools)
Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB): 56kB downloaded
Installing collected packages: setuptools, appdirs, six, packaging, pyparsing
Found existing installation: setuptools 2.2
Uninstalling setuptools:
Successfully uninstalled setuptools
Successfully installed setuptools appdirs six packaging pyparsing
Cleaning up...
Downloading/unpacking pip from https://pypi.python.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl#md5=297dbd16ef53bcef0447d245815f5144
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Installing collected packages: pip
Found existing installation: pip 1.5.4
Uninstalling pip:
Successfully uninstalled pip
Successfully installed pip
Cleaning up...
Collecting letsencrypt
/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading letsencrypt-0.7.0-py2-none-any.whl
Collecting letsencrypt-apache
Downloading letsencrypt_apache-0.7.0-py2-none-any.whl
Collecting certbot (from letsencrypt)
Downloading certbot-0.12.0-py2-none-any.whl (238kB)
100% |████████████████████████████████| 245kB 2.8MB/s
Collecting certbot-apache (from letsencrypt-apache)
Downloading certbot_apache-0.12.0-py2-none-any.whl (124kB)
100% |████████████████████████████████| 133kB 4.7MB/s
Requirement already up-to-date: six in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot->letsencrypt)
Collecting PyOpenSSL (from certbot->letsencrypt)
Downloading pyOpenSSL-16.2.0-py2.py3-none-any.whl (43kB)
100% |████████████████████████████████| 51kB 7.0MB/s
Collecting mock (from certbot->letsencrypt)
Downloading mock-2.0.0-py2.py3-none-any.whl (56kB)
100% |████████████████████████████████| 61kB 6.0MB/s
Collecting parsedatetime>=1.3 (from certbot->letsencrypt)
Downloading parsedatetime-2.3-py2-none-any.whl (40kB)
100% |████████████████████████████████| 40kB 6.5MB/s
Collecting zope.interface (from certbot->letsencrypt)
Downloading zope.interface-4.3.3.tar.gz (150kB)
100% |████████████████████████████████| 153kB 3.9MB/s
Collecting pyrfc3339 (from certbot->letsencrypt)
Downloading pyRFC3339-1.0-py2.py3-none-any.whl
Collecting acme==0.12.0 (from certbot->letsencrypt)
Downloading acme-0.12.0-py2.py3-none-any.whl (95kB)
100% |████████████████████████████████| 102kB 5.7MB/s
Collecting cryptography>=0.7 (from certbot->letsencrypt)
Downloading cryptography-1.8.1.tar.gz (423kB)
100% |████████████████████████████████| 430kB 1.7MB/s
Collecting zope.component (from certbot->letsencrypt)
Downloading zope.component-4.3.0.tar.gz (85kB)
100% |████████████████████████████████| 92kB 6.0MB/s
Requirement already up-to-date: setuptools>=1.0 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot->letsencrypt)
Collecting pytz (from certbot->letsencrypt)
Downloading pytz-2017.2-py2.py3-none-any.whl (484kB)
100% |████████████████████████████████| 491kB 1.3MB/s
Collecting ConfigArgParse>=0.9.3 (from certbot->letsencrypt)
Downloading ConfigArgParse-0.11.0.tar.gz (40kB)
100% |████████████████████████████████| 40kB 5.9MB/s
Collecting configobj (from certbot->letsencrypt)
Downloading configobj-5.0.6.tar.gz
Collecting python-augeas (from certbot-apache->letsencrypt-apache)
Using cached python-augeas-1.0.0.tar.gz
Collecting funcsigs>=1; python_version < "3.3" (from mock->certbot->letsencrypt)
Downloading funcsigs-1.0.2-py2.py3-none-any.whl
Collecting pbr>=0.11 (from mock->certbot->letsencrypt)
Downloading pbr-2.0.0-py2.py3-none-any.whl (98kB)
100% |████████████████████████████████| 102kB 5.4MB/s
Collecting future (from parsedatetime>=1.3->certbot->letsencrypt)
Downloading future-0.16.0.tar.gz (824kB)
100% |████████████████████████████████| 829kB 966kB/s
Collecting requests[security]>=2.10 (from acme==0.12.0->certbot->letsencrypt)
Downloading requests-2.13.0-py2.py3-none-any.whl (584kB)
100% |████████████████████████████████| 593kB 1.3MB/s
Collecting idna>=2.1 (from cryptography>=0.7->certbot->letsencrypt)
Downloading idna-2.5-py2.py3-none-any.whl (55kB)
100% |████████████████████████████████| 61kB 6.8MB/s
Collecting asn1crypto>=0.21.0 (from cryptography>=0.7->certbot->letsencrypt)
Downloading asn1crypto-0.22.0-py2.py3-none-any.whl (97kB)
100% |████████████████████████████████| 102kB 5.5MB/s
Requirement already up-to-date: packaging in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography>=0.7->certbot->letsencrypt)
Collecting enum34 (from cryptography>=0.7->certbot->letsencrypt)
Downloading enum34-1.1.6-py2-none-any.whl
Collecting ipaddress (from cryptography>=0.7->certbot->letsencrypt)
Downloading ipaddress-1.0.18-py2-none-any.whl
Collecting cffi>=1.4.1 (from cryptography>=0.7->certbot->letsencrypt)
Downloading cffi-1.10.0-cp27-cp27mu-manylinux1_x86_64.whl (392kB)
100% |████████████████████████████████| 399kB 1.9MB/s
Collecting zope.event (from zope.component->certbot->letsencrypt)
Downloading zope.event-4.2.0-py2-none-any.whl
Requirement already up-to-date: appdirs>=1.4.0 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from setuptools>=1.0->certbot->letsencrypt)
Requirement already up-to-date: pyparsing in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from packaging->cryptography>=0.7->certbot->letsencrypt)
Collecting pycparser (from cffi>=1.4.1->cryptography>=0.7->certbot->letsencrypt)
Downloading pycparser-2.17.tar.gz (231kB)
100% |████████████████████████████████| 235kB 2.9MB/s
Installing collected packages: idna, asn1crypto, enum34, ipaddress, pycparser, cffi, cryptography, PyOpenSSL, funcsigs, pbr, mock, future, parsedatetime, zope.interface, pytz, pyrfc3339, requests, acme, zope.event, zope.component, ConfigArgParse, configobj, certbot, letsencrypt, python-augeas, certbot-apache, letsencrypt-apache
Running setup.py install for pycparser ... done
Running setup.py install for cryptography ... done
Running setup.py install for future ... done
Running setup.py install for zope.interface ... done
Running setup.py install for zope.component ... done
Running setup.py install for ConfigArgParse ... done
Running setup.py install for configobj ... done
Running setup.py install for python-augeas ... error
Complete output from command /root/.local/share/letsencrypt/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-XnzR8o/python-augeas/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-y7EIXb-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/letsencrypt/include/site/python2.7/python-augeas:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/augeas
copying augeas/__init__.py -> build/lib.linux-x86_64-2.7/augeas
copying augeas/ffi.py -> build/lib.linux-x86_64-2.7/augeas
running build_ext
generating cffi module 'build/temp.linux-x86_64-2.7/augeas.c'
creating build/temp.linux-x86_64-2.7
building 'augeas' extension
creating build/temp.linux-x86_64-2.7/build
creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/augeas.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/augeas.o
In file included from build/temp.linux-x86_64-2.7/augeas.c:434:0:
/usr/include/augeas.h:24:25: fatal error: libxml/tree.h: No such file or directory
#include <libxml/tree.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/root/.local/share/letsencrypt/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-XnzR8o/python-augeas/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-y7EIXb-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/letsencrypt/include/site/python2.7/python-augeas" failed with error code 1 in /tmp/pip-build-XnzR8o/python-augeas/
/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment