I just wanted to update my certificate, I have done it successfully several times already the same way, but this time I have encountered an error that I cannot understand:
***@meanstack-2:~$ cd /opt/bitnami/ && sudo ./use_meanstack
root@meanstack-2:/opt/bitnami# /home/***/certbot-auto renew
Bootstrapping dependencies for Debian-based OSes... (you can skip this with --no-bootstrap)
...
0 upgraded, 0 newly installed, 0 to remove and 74 not upgraded.
Creating virtual environment...
Installing Python packages...
Had a problem while installing Python packages.
pip prints the following errors:
=====================================================
Exception:
Traceback (most recent call last):
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/commands/install.py", line 272, in run
with self._build_session(options) as session:
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/basecommand.py", line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/download.py", line 329, in __init__
self.headers["User-Agent"] = user_agent()
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/download.py", line 93, in user_agent
from pip._vendor import distro
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/_vendor/distro.py", line 1050, in <module>
_distro = LinuxDistribution()
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/_vendor/distro.py", line 594, in __init__
if include_lsb else {}
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/_vendor/distro.py", line 933, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout)
CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1
=====================================================
Certbot has problem setting up the virtual environment.
We were not be able to guess the right solution from your pip
output.
...
I use Apache 2.4.18 (Bitnami MEAN Stack) on Debian 7 Wheezy