Skip to content

Instantly share code, notes, and snippets.

@xsbr
Created April 1, 2016 13:44
Show Gist options
  • Save xsbr/d7fc2f8f4c32b8f6d6a264e8b277ac3e to your computer and use it in GitHub Desktop.
Save xsbr/d7fc2f8f4c32b8f6d6a264e8b277ac3e to your computer and use it in GitHub Desktop.
Upgrade Python to 2.7.x on Debian 6 Squeeze and Install letsencrypt
Hello,
This is a "copy/paste style" How To update Python and then install the LetsEncrypt Client on Debian 6 "Squeeze"
Install some dependencies:
apt-get install build-essential python-pip git libssl-dev libffi-dev python-dev
pip install pythonbrew
pythonbrew_install
source "$HOME/.pythonbrew/etc/bashrc"
Updating Python to version 2.7.10 :
pythonbrew install 2.7.10
pythonbrew switch 2.7.10
pythonbrew use 2.7.10
Installing some Python dependencies:
pip install virtualenv
pip install pyopenssl ndg-httpsclient pyasn1
pip install cryptography
Installing LetsEncrypt Client:
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto
source: https://community.letsencrypt.org/t/how-to-update-python-and-installing-lets-encrypt-client-on-debian-6-squeeze/7118
@AGhribiCoop
Copy link

That no longer works on Debian 6. Can not find python-dev, python-pip and libffi-dev.

@solokazama
Copy link

it works, thanx.

use debian archives if needed:

DEBIAN ARCHIVE

deb http://archive.debian.org/debian/ squeeze main non-free contrib
deb-src http://archive.debian.org/debian/ squeeze main non-free contrib

@Sopamo
Copy link

Sopamo commented Mar 20, 2018

I had to do: pip install pythonbrew --index-url=https://pypi.python.org/simple/

@manuel-84
Copy link

How can it work if Debian 6 doesn't have TLS1.2. I get this error:

Downloading/unpacking pythonbrew
Getting page https://pypi.python.org/simple/pythonbrew
Could not fetch URL https://pypi.python.org/simple/pythonbrew: <urlopen error [Errno 1] _ssl.c:490: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment