Try to get working apt HTTPs and 3.1 compatible pip.