After about 1 hour of testing and going back and forth between fix solutions, I finally gave up and I’m just asking here.
So I want to use Let’s encrypt on my Raspberry pi 2. i followed this tutorial. However I’m getting an error about ‘virtualenv’ (full output below). I look to mutiple sulotions about this problem.
I already installed the package using pip, but to no avail.
Reading package lists... Done
W: GPG error: http://http.debian.net wheezy-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY *some key here* NO_PUBKEY *another key here*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package virtualenv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'virtualenv' has no installation candidate`
After adding both keys, it’s still not working.
I still get this error:
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package virtualenv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'virtualenv' has no installation candidate
I have seen other people run in to this error, and for them it was solved by installing it manually with pip.
I did that but still nothing.
This then needs to be reachable from the internet in general ( for LE to verify it).
So, can you reach that location ? is your domain on a publicly accessible IP address ? have you got any .htaccess rules or firewall rules preventing access to that location ?
Well I can add the dir .well-known and acme-challenge.
However the long code is different every time…
So i can’t just predict which one the server is gonna use…
Am I doing something wrong?
That’s fine. The code will be different every time ( as will the contents of the file).
If you add a file ( say http://my-site-here/.well-known/acme-challenge/test123) with contents “result-456” … can you reach it in your browser from the general internet ?
I’m using letsencrypt on Raspberry pi 2 and it is working from official Github repository. I just cloned repository, and launched letsencrypt-auto with webroot.