Problem with Certbot on Raspbian
by usodiario from LinuxQuestions.org on (#51T6K)
Hello, I am doing tests with Raspbian Raspberry Pi 4 4GB following a tutorial and I need to install Certbot with the following command:
Code:wget https://dl.eff.org/certbot-auto
sudo mv certbot-auto /usr/local/bin/certbot-auto
sudo chown root /usr/local/bin/certbot-auto
sudo chmod 0755 /usr/local/bin/certbot-auto
/usr/local/bin/certbot-auto --install-only
But I am getting the following problem:
Code:wget https://dl.eff.org/certbot-auto
sudo mv certbot-auto /usr/local/bin/certbot-auto
sudo chown root /usr/local/bin/certbot-auto
sudo chmod 0755 /usr/local/bin/certbot-auto
root@mail:~#/usr/local/bin/certbot-auto --install-only
Bootstrapping dependencies for Debian-based OSes... (you can skip this with --no-bootstrap)
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20190110).
gcc is already the newest version (4:8.3.0-1+rpi2).
gcc set to manually installed.
python is already the newest version (2.7.16-1).
openssl is already the newest version (1.1.1d-0+deb10u2+rpt1).
The following additional packages will be installed:
libexpat1-dev libpython-dev libpython2-dev libpython2.7-dev python-pip-whl
python-pkg-resources python2-dev python2.7-dev python3-distutils python3-lib2to3
python3-virtualenv
Suggested packages:
augeas-doc augeas-tools libssl-doc python-setuptools
The following NEW packages will be installed:
augeas-lenses libaugeas0 libexpat1-dev libffi-dev libpython-dev libpython2-dev
libpython2.7-dev libssl-dev python-dev python-pip-whl python-pkg-resources
python-virtualenv python2-dev python2.7-dev python3-distutils python3-lib2to3
python3-virtualenv virtualenv
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
Need to get 543 kB/35.9 MB of archives.
After this operation, 60.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf python2-dev armhf 2.7.16-1 [1,216 B]
Get:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf python-dev armhf 2.7.16-1 [1,192 B]
Get:3 http://mirrors.switch.ca/raspbian/raspbian buster/main armhf python-pkg-resources all 40.8.0-1 [182 kB]
Get:4 http://raspbian.freemirror.org/raspbian buster/main armhf python-virtualenv all 15.1.0+ds-2 [61.5 kB]
Get:5 http://mirrors.switch.ca/raspbian/raspbian buster/main armhf python3-lib2to3 all 3.7.3-1 [76.7 kB]
Get:6 http://mirrors.switch.ca/raspbian/raspbian buster/main armhf python3-distutils all 3.7.3-1 [142 kB]
Get:7 http://raspbian.freemirror.org/raspbian buster/main armhf python3-virtualenv all 15.1.0+ds-2 [58.1 kB]
Get:8 http://raspbian.freemirror.org/raspbian buster/main armhf virtualenv all 15.1.0+ds-2 [20.1 kB]
Fetched 543 kB in 4s (135 kB/s)
Selecting previously unselected package augeas-lenses.
(Reading database ... 53996 files and directories currently installed.)
Preparing to unpack .../00-augeas-lenses_1.11.0-3_all.deb ...
Unpacking augeas-lenses (1.11.0-3) ...
Selecting previously unselected package libaugeas0:armhf.
Preparing to unpack .../01-libaugeas0_1.11.0-3_armhf.deb ...
Unpacking libaugeas0:armhf (1.11.0-3) ...
Selecting previously unselected package libexpat1-dev:armhf.
Preparing to unpack .../02-libexpat1-dev_2.2.6-2+deb10u1_armhf.deb ...
Unpacking libexpat1-dev:armhf (2.2.6-2+deb10u1) ...
Selecting previously unselected package libffi-dev:armhf.
Preparing to unpack .../03-libffi-dev_3.2.1-9_armhf.deb ...
Unpacking libffi-dev:armhf (3.2.1-9) ...
Selecting previously unselected package libpython2.7-dev:armhf.
Preparing to unpack .../04-libpython2.7-dev_2.7.16-2+deb10u1_armhf.deb ...
Unpacking libpython2.7-dev:armhf (2.7.16-2+deb10u1) ...
Selecting previously unselected package libpython2-dev:armhf.
Preparing to unpack .../05-libpython2-dev_2.7.16-1_armhf.deb ...
Unpacking libpython2-dev:armhf (2.7.16-1) ...
Selecting previously unselected package libpython-dev:armhf.
Preparing to unpack .../06-libpython-dev_2.7.16-1_armhf.deb ...
Unpacking libpython-dev:armhf (2.7.16-1) ...
Selecting previously unselected package libssl-dev:armhf.
Preparing to unpack .../07-libssl-dev_1.1.1d-0+deb10u2+rpt1_armhf.deb ...
Unpacking libssl-dev:armhf (1.1.1d-0+deb10u2+rpt1) ...
Selecting previously unselected package python2.7-dev.
Preparing to unpack .../08-python2.7-dev_2.7.16-2+deb10u1_armhf.deb ...
Unpacking python2.7-dev (2.7.16-2+deb10u1) ...
Selecting previously unselected package python2-dev.
Preparing to unpack .../09-python2-dev_2.7.16-1_armhf.deb ...
Unpacking python2-dev (2.7.16-1) ...
Selecting previously unselected package python-dev.
Preparing to unpack .../10-python-dev_2.7.16-1_armhf.deb ...
Unpacking python-dev (2.7.16-1) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../11-python-pip-whl_18.1-5+rpt1_all.deb ...
Unpacking python-pip-whl (18.1-5+rpt1) ...
Selecting previously unselected package python-pkg-resources.
Preparing to unpack .../12-python-pkg-resources_40.8.0-1_all.deb ...
Unpacking python-pkg-resources (40.8.0-1) ...
Selecting previously unselected package python-virtualenv.
Preparing to unpack .../13-python-virtualenv_15.1.0+ds-2_all.deb ...
Unpacking python-virtualenv (15.1.0+ds-2) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../14-python3-lib2to3_3.7.3-1_all.deb ...
Unpacking python3-lib2to3 (3.7.3-1) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../15-python3-distutils_3.7.3-1_all.deb ...
Unpacking python3-distutils (3.7.3-1) ...
Selecting previously unselected package python3-virtualenv.
Preparing to unpack .../16-python3-virtualenv_15.1.0+ds-2_all.deb ...
Unpacking python3-virtualenv (15.1.0+ds-2) ...
Selecting previously unselected package virtualenv.
Preparing to unpack .../17-virtualenv_15.1.0+ds-2_all.deb ...
Unpacking virtualenv (15.1.0+ds-2) ...
Setting up augeas-lenses (1.11.0-3) ...
Setting up python-pkg-resources (40.8.0-1) ...
Setting up libffi-dev:armhf (3.2.1-9) ...
Setting up libexpat1-dev:armhf (2.2.6-2+deb10u1) ...
Setting up libaugeas0:armhf (1.11.0-3) ...
Setting up libssl-dev:armhf (1.1.1d-0+deb10u2+rpt1) ...
Setting up python-pip-whl (18.1-5+rpt1) ...
Setting up python3-lib2to3 (3.7.3-1) ...
Setting up python-virtualenv (15.1.0+ds-2) ...
Setting up python3-distutils (3.7.3-1) ...
Setting up libpython2.7-dev:armhf (2.7.16-2+deb10u1) ...
Setting up python3-virtualenv (15.1.0+ds-2) ...
Setting up virtualenv (15.1.0+ds-2) ...
Setting up libpython2-dev:armhf (2.7.16-1) ...
Setting up python2.7-dev (2.7.16-2+deb10u1) ...
Setting up python2-dev (2.7.16-1) ...
Setting up libpython-dev:armhf (2.7.16-1) ...
Setting up python-dev (2.7.16-1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Creating virtual environment...
Installing Python packages...
Had a problem while installing Python packages.
pip prints the following errors:
=====================================================
Collecting ConfigArgParse==1.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 12))
Downloading https://files.pythonhosted.org/packages/66/37/dd9fcb3b19c1dceea450ee994952e311a96dd827bb09ee19169c3427e0d3/ConfigArgParse-1.0.tar.gz (40kB)
Collecting certifi==2019.11.28 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 14))
Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
Collecting cffi==1.13.2 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 17))
Downloading https://files.pythonhosted.org/packages/2d/bf/960e5a422db3ac1a5e612cb35ca436c3fc985ed4b7ed13a1b4879006f450/cffi-1.13.2.tar.gz (460kB)
Collecting chardet==3.0.4 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 51))
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting configobj==5.0.6 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 54))
Downloading https://files.pythonhosted.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz
Collecting cryptography==2.8 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 56))
Downloading https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz (504kB)
Collecting distro==1.4.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 78))
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine('No status line received - the server has closed the connection',))': /simple/distro/
Downloading https://files.pythonhosted.org/packages/ea/35/82f79b92fa4d937146c660a6482cee4f3dfa1f97ff3d2a6f3ecba33e712e/distro-1.4.0-py2.py3-none-any.whl
Collecting enum34==1.1.6 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 81))
Downloading https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
Collecting funcsigs==1.0.2 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 86))
Downloading https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
Collecting idna==2.8 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 89))
Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
Collecting ipaddress==1.0.23 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 92))
Downloading https://files.pythonhosted.org/packages/c2/f8/49697181b1651d8347d24c095ce46c7346c37335ddc7d255833e7cde674d/ipaddress-1.0.23-py2.py3-none-any.whl
Collecting josepy==1.2.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 95))
Downloading https://files.pythonhosted.org/packages/de/bb/4949857070b6601eacc209478823745cd79d72cf1c0bb8407aebb772677b/josepy-1.2.0-py2.py3-none-any.whl (57kB)
Collecting mock==1.3.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 98))
Downloading https://files.pythonhosted.org/packages/b2/50/664a70b87408bb6c14c1af2337efa64eb8d1af80c933531758b8fb41ec25/mock-1.3.0-py2.py3-none-any.whl (56kB)
Collecting parsedatetime==2.5 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 101))
Downloading https://files.pythonhosted.org/packages/4e/26/7612745a21452f6d822c0868ff7168dd8cf592645b2a553a177e1de43901/parsedatetime-2.5-py2-none-any.whl (40kB)
Collecting pbr==5.4.4 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 104))
Downloading https://files.pythonhosted.org/packages/7a/db/a968fd7beb9fe06901c1841cb25c9ccb666ca1b9a19b114d1bbedf1126fc/pbr-5.4.4-py2.py3-none-any.whl (110kB)
Collecting pyOpenSSL==19.1.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 107))
Downloading https://files.pythonhosted.org/packages/9e/de/f8342b68fa9e981d348039954657bdf681b2ab93de27443be51865ffa310/pyOpenSSL-19.1.0-py2.py3-none-any.whl (53kB)
Collecting pyRFC3339==1.1 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 110))
Downloading https://files.pythonhosted.org/packages/c1/7a/725f5c16756ec6211b1e7eeac09f469084595513917ea069bc023c40a5e2/pyRFC3339-1.1-py2.py3-none-any.whl
Collecting pycparser==2.19 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 113))
Downloading https://www.piwheels.org/simple/pycparser/pycparser-2.19-py2.py3-none-any.whl (111kB)
Collecting pyparsing==2.4.6 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 115))
Downloading https://files.pythonhosted.org/packages/5d/bc/1e58593167fade7b544bfe9502a26dc860940a79ab306e651e7f13be68c2/pyparsing-2.4.6-py2.py3-none-any.whl (67kB)
Collecting python-augeas==0.5.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 118))
Downloading https://files.pythonhosted.org/packages/41/e6/4b6740cb3e31b82252099994cea751c648b846aa7874343c31d68c2215be/python-augeas-0.5.0.tar.gz (90kB)
Collecting pytz==2019.3 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 120))
Downloading https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl (509kB)
Collecting requests==2.22.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 123))
Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)
Collecting requests-toolbelt==0.9.1 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 126))
Downloading https://files.pythonhosted.org/packages/60/ef/7681134338fc097acef8d9b2f8abe0458e4d87559c689a8c306d0957ece5/requests_toolbelt-0.9.1-py2.py3-none-any.whl (54kB)
Collecting six==1.14.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 129))
Downloading https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Collecting urllib3==1.25.8 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 132))
Downloading https://files.pythonhosted.org/packages/e8/74/6e4f91745020f967d09332bb2b8b9b10090957334692eb88ea4afe91b77f/urllib3-1.25.8-py2.py3-none-any.whl (125kB)
Collecting zope.component==4.6 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 135))
Downloading https://www.piwheels.org/simple/zope-component/zope.component-4.6-py2.py3-none-any.whl (70kB)
Collecting zope.deferredimport==4.3.1 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 137))
Downloading https://files.pythonhosted.org/packages/63/e3/05b02057b56cd9c59d848b67aff1cc701e1d2237055ebd0d0c1f44331186/zope.deferredimport-4.3.1-py2.py3-none-any.whl
Collecting zope.deprecation==4.4.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 140))
Downloading https://files.pythonhosted.org/packages/f9/26/b935bbf9d27e898b87d80e7873a0200cebf239253d0afe7a59f82fe90fff/zope.deprecation-4.4.0-py2.py3-none-any.whl
Collecting zope.event==4.4 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 143))
Downloading https://files.pythonhosted.org/packages/c5/96/361edb421a077a4c208b4a5c212737d78ae03ce67fbbcd01621c49f332d1/zope.event-4.4-py2.py3-none-any.whl
Collecting zope.hookable==5.0.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 146))
Downloading https://files.pythonhosted.org/packages/35/7e/d7ffdd410a9b4aa97d175af1718baa6b741ec6a60baa668354dd3da4e26c/zope.hookable-5.0.0.tar.gz
Collecting zope.interface==4.7.1 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 186))
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine('No status line received - the server has closed the connection',))': /simple/zope-interface/
Downloading https://files.pythonhosted.org/packages/c3/05/bf3130eb799548882ce61b7c3d2dbc5d4d5cc6e821efa8786c5273d56844/zope.interface-4.7.1.tar.gz (151kB)
Collecting zope.proxy==4.3.3 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 226))
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine('No status line received - the server has closed the connection',))': /simple/zope-proxy/
Downloading https://files.pythonhosted.org/packages/e2/44/bea546c55488c044351e51ebf23bf440b19876e0069a418cadc1bd5736f7/zope.proxy-4.3.3.tar.gz (44kB)
Collecting letsencrypt==0.7.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 274))
Downloading https://files.pythonhosted.org/packages/fd/21/0c6f33829fadec8aca0c1ebb4d6f8101c05899356a58d1b2e506cb77cf18/letsencrypt-0.7.0-py2-none-any.whl
Collecting certbot==1.3.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 278))
Downloading https://files.pythonhosted.org/packages/4b/3d/afa627553cdd9b69553637fd15d07bee32f31e9401e5413fd7806367e54a/certbot-1.3.0-py2.py3-none-any.whl (231kB)
Collecting acme==1.3.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 281))
Downloading https://files.pythonhosted.org/packages/3d/11/19d48550ad114026657c657a3da6c9b278e7d3d8a53aa2180d5c5216c67a/acme-1.3.0-py2.py3-none-any.whl
Collecting certbot-apache==1.3.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 284))
Downloading https://files.pythonhosted.org/packages/80/83/d5ba575061fd936050ee9f87fe008a6802877c6263f3b7958d7b0e5c8bfe/certbot_apache-1.3.0-py2.py3-none-any.whl (86kB)
Collecting certbot-nginx==1.3.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 287))
Downloading https://files.pythonhosted.org/packages/aa/62/673bdbf118bd01bddcad887b1ea2134b07f6382477084e32029d57326ba8/certbot_nginx-1.3.0-py2.py3-none-any.whl (45kB)
Requirement already satisfied: setuptools>=1.0 in /opt/eff.org/certbot/venv/lib/python2.7/site-packages (from josepy==1.2.0->-r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 95))
THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
pycparser==2.19 from https://www.piwheels.org/simple/pycparser/pycparser-2.19-py2.py3-none-any.whl#sha256=bc15573b7c6edd24407526dbbc7a0bd33d80d8af44231c37f58d73f56ff9cab6 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 113)):
Expected sha256 a988718abfad80b6b157acce7bf130a30876d27603738ac39f140993246b25b3
Got bc15573b7c6edd24407526dbbc7a0bd33d80d8af44231c37f58d73f56ff9cab6
zope.component==4.6 from https://www.piwheels.org/simple/zope-component/zope.component-4.6-py2.py3-none-any.whl#sha256=74f55521dec189c08d98341edce929eba6bb2404662d1878f1b289af46f6f6a5 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 135)):
Expected sha256 ec2afc5bbe611dcace98bb39822c122d44743d635dafc7315b9aef25097db9e6
Got 74f55521dec189c08d98341edce929eba6bb2404662d1878f1b289af46f6f6a5
=====================================================
Certbot has problem setting up the virtual environment.
We were not be able to guess the right solution from your pip
output.
Consult https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment
for possible solutions.
You may also find some support resources at https://certbot.eff.org/support/ .
root@mail:~#
They seem like problems with Python, but honestly I don't know what I need to solve it, there isn't much information related to this.
Thank you


Code:wget https://dl.eff.org/certbot-auto
sudo mv certbot-auto /usr/local/bin/certbot-auto
sudo chown root /usr/local/bin/certbot-auto
sudo chmod 0755 /usr/local/bin/certbot-auto
/usr/local/bin/certbot-auto --install-only
But I am getting the following problem:
Code:wget https://dl.eff.org/certbot-auto
sudo mv certbot-auto /usr/local/bin/certbot-auto
sudo chown root /usr/local/bin/certbot-auto
sudo chmod 0755 /usr/local/bin/certbot-auto
root@mail:~#/usr/local/bin/certbot-auto --install-only
Bootstrapping dependencies for Debian-based OSes... (you can skip this with --no-bootstrap)
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20190110).
gcc is already the newest version (4:8.3.0-1+rpi2).
gcc set to manually installed.
python is already the newest version (2.7.16-1).
openssl is already the newest version (1.1.1d-0+deb10u2+rpt1).
The following additional packages will be installed:
libexpat1-dev libpython-dev libpython2-dev libpython2.7-dev python-pip-whl
python-pkg-resources python2-dev python2.7-dev python3-distutils python3-lib2to3
python3-virtualenv
Suggested packages:
augeas-doc augeas-tools libssl-doc python-setuptools
The following NEW packages will be installed:
augeas-lenses libaugeas0 libexpat1-dev libffi-dev libpython-dev libpython2-dev
libpython2.7-dev libssl-dev python-dev python-pip-whl python-pkg-resources
python-virtualenv python2-dev python2.7-dev python3-distutils python3-lib2to3
python3-virtualenv virtualenv
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
Need to get 543 kB/35.9 MB of archives.
After this operation, 60.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf python2-dev armhf 2.7.16-1 [1,216 B]
Get:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf python-dev armhf 2.7.16-1 [1,192 B]
Get:3 http://mirrors.switch.ca/raspbian/raspbian buster/main armhf python-pkg-resources all 40.8.0-1 [182 kB]
Get:4 http://raspbian.freemirror.org/raspbian buster/main armhf python-virtualenv all 15.1.0+ds-2 [61.5 kB]
Get:5 http://mirrors.switch.ca/raspbian/raspbian buster/main armhf python3-lib2to3 all 3.7.3-1 [76.7 kB]
Get:6 http://mirrors.switch.ca/raspbian/raspbian buster/main armhf python3-distutils all 3.7.3-1 [142 kB]
Get:7 http://raspbian.freemirror.org/raspbian buster/main armhf python3-virtualenv all 15.1.0+ds-2 [58.1 kB]
Get:8 http://raspbian.freemirror.org/raspbian buster/main armhf virtualenv all 15.1.0+ds-2 [20.1 kB]
Fetched 543 kB in 4s (135 kB/s)
Selecting previously unselected package augeas-lenses.
(Reading database ... 53996 files and directories currently installed.)
Preparing to unpack .../00-augeas-lenses_1.11.0-3_all.deb ...
Unpacking augeas-lenses (1.11.0-3) ...
Selecting previously unselected package libaugeas0:armhf.
Preparing to unpack .../01-libaugeas0_1.11.0-3_armhf.deb ...
Unpacking libaugeas0:armhf (1.11.0-3) ...
Selecting previously unselected package libexpat1-dev:armhf.
Preparing to unpack .../02-libexpat1-dev_2.2.6-2+deb10u1_armhf.deb ...
Unpacking libexpat1-dev:armhf (2.2.6-2+deb10u1) ...
Selecting previously unselected package libffi-dev:armhf.
Preparing to unpack .../03-libffi-dev_3.2.1-9_armhf.deb ...
Unpacking libffi-dev:armhf (3.2.1-9) ...
Selecting previously unselected package libpython2.7-dev:armhf.
Preparing to unpack .../04-libpython2.7-dev_2.7.16-2+deb10u1_armhf.deb ...
Unpacking libpython2.7-dev:armhf (2.7.16-2+deb10u1) ...
Selecting previously unselected package libpython2-dev:armhf.
Preparing to unpack .../05-libpython2-dev_2.7.16-1_armhf.deb ...
Unpacking libpython2-dev:armhf (2.7.16-1) ...
Selecting previously unselected package libpython-dev:armhf.
Preparing to unpack .../06-libpython-dev_2.7.16-1_armhf.deb ...
Unpacking libpython-dev:armhf (2.7.16-1) ...
Selecting previously unselected package libssl-dev:armhf.
Preparing to unpack .../07-libssl-dev_1.1.1d-0+deb10u2+rpt1_armhf.deb ...
Unpacking libssl-dev:armhf (1.1.1d-0+deb10u2+rpt1) ...
Selecting previously unselected package python2.7-dev.
Preparing to unpack .../08-python2.7-dev_2.7.16-2+deb10u1_armhf.deb ...
Unpacking python2.7-dev (2.7.16-2+deb10u1) ...
Selecting previously unselected package python2-dev.
Preparing to unpack .../09-python2-dev_2.7.16-1_armhf.deb ...
Unpacking python2-dev (2.7.16-1) ...
Selecting previously unselected package python-dev.
Preparing to unpack .../10-python-dev_2.7.16-1_armhf.deb ...
Unpacking python-dev (2.7.16-1) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../11-python-pip-whl_18.1-5+rpt1_all.deb ...
Unpacking python-pip-whl (18.1-5+rpt1) ...
Selecting previously unselected package python-pkg-resources.
Preparing to unpack .../12-python-pkg-resources_40.8.0-1_all.deb ...
Unpacking python-pkg-resources (40.8.0-1) ...
Selecting previously unselected package python-virtualenv.
Preparing to unpack .../13-python-virtualenv_15.1.0+ds-2_all.deb ...
Unpacking python-virtualenv (15.1.0+ds-2) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../14-python3-lib2to3_3.7.3-1_all.deb ...
Unpacking python3-lib2to3 (3.7.3-1) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../15-python3-distutils_3.7.3-1_all.deb ...
Unpacking python3-distutils (3.7.3-1) ...
Selecting previously unselected package python3-virtualenv.
Preparing to unpack .../16-python3-virtualenv_15.1.0+ds-2_all.deb ...
Unpacking python3-virtualenv (15.1.0+ds-2) ...
Selecting previously unselected package virtualenv.
Preparing to unpack .../17-virtualenv_15.1.0+ds-2_all.deb ...
Unpacking virtualenv (15.1.0+ds-2) ...
Setting up augeas-lenses (1.11.0-3) ...
Setting up python-pkg-resources (40.8.0-1) ...
Setting up libffi-dev:armhf (3.2.1-9) ...
Setting up libexpat1-dev:armhf (2.2.6-2+deb10u1) ...
Setting up libaugeas0:armhf (1.11.0-3) ...
Setting up libssl-dev:armhf (1.1.1d-0+deb10u2+rpt1) ...
Setting up python-pip-whl (18.1-5+rpt1) ...
Setting up python3-lib2to3 (3.7.3-1) ...
Setting up python-virtualenv (15.1.0+ds-2) ...
Setting up python3-distutils (3.7.3-1) ...
Setting up libpython2.7-dev:armhf (2.7.16-2+deb10u1) ...
Setting up python3-virtualenv (15.1.0+ds-2) ...
Setting up virtualenv (15.1.0+ds-2) ...
Setting up libpython2-dev:armhf (2.7.16-1) ...
Setting up python2.7-dev (2.7.16-2+deb10u1) ...
Setting up python2-dev (2.7.16-1) ...
Setting up libpython-dev:armhf (2.7.16-1) ...
Setting up python-dev (2.7.16-1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Creating virtual environment...
Installing Python packages...
Had a problem while installing Python packages.
pip prints the following errors:
=====================================================
Collecting ConfigArgParse==1.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 12))
Downloading https://files.pythonhosted.org/packages/66/37/dd9fcb3b19c1dceea450ee994952e311a96dd827bb09ee19169c3427e0d3/ConfigArgParse-1.0.tar.gz (40kB)
Collecting certifi==2019.11.28 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 14))
Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
Collecting cffi==1.13.2 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 17))
Downloading https://files.pythonhosted.org/packages/2d/bf/960e5a422db3ac1a5e612cb35ca436c3fc985ed4b7ed13a1b4879006f450/cffi-1.13.2.tar.gz (460kB)
Collecting chardet==3.0.4 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 51))
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting configobj==5.0.6 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 54))
Downloading https://files.pythonhosted.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz
Collecting cryptography==2.8 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 56))
Downloading https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz (504kB)
Collecting distro==1.4.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 78))
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine('No status line received - the server has closed the connection',))': /simple/distro/
Downloading https://files.pythonhosted.org/packages/ea/35/82f79b92fa4d937146c660a6482cee4f3dfa1f97ff3d2a6f3ecba33e712e/distro-1.4.0-py2.py3-none-any.whl
Collecting enum34==1.1.6 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 81))
Downloading https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
Collecting funcsigs==1.0.2 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 86))
Downloading https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
Collecting idna==2.8 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 89))
Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
Collecting ipaddress==1.0.23 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 92))
Downloading https://files.pythonhosted.org/packages/c2/f8/49697181b1651d8347d24c095ce46c7346c37335ddc7d255833e7cde674d/ipaddress-1.0.23-py2.py3-none-any.whl
Collecting josepy==1.2.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 95))
Downloading https://files.pythonhosted.org/packages/de/bb/4949857070b6601eacc209478823745cd79d72cf1c0bb8407aebb772677b/josepy-1.2.0-py2.py3-none-any.whl (57kB)
Collecting mock==1.3.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 98))
Downloading https://files.pythonhosted.org/packages/b2/50/664a70b87408bb6c14c1af2337efa64eb8d1af80c933531758b8fb41ec25/mock-1.3.0-py2.py3-none-any.whl (56kB)
Collecting parsedatetime==2.5 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 101))
Downloading https://files.pythonhosted.org/packages/4e/26/7612745a21452f6d822c0868ff7168dd8cf592645b2a553a177e1de43901/parsedatetime-2.5-py2-none-any.whl (40kB)
Collecting pbr==5.4.4 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 104))
Downloading https://files.pythonhosted.org/packages/7a/db/a968fd7beb9fe06901c1841cb25c9ccb666ca1b9a19b114d1bbedf1126fc/pbr-5.4.4-py2.py3-none-any.whl (110kB)
Collecting pyOpenSSL==19.1.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 107))
Downloading https://files.pythonhosted.org/packages/9e/de/f8342b68fa9e981d348039954657bdf681b2ab93de27443be51865ffa310/pyOpenSSL-19.1.0-py2.py3-none-any.whl (53kB)
Collecting pyRFC3339==1.1 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 110))
Downloading https://files.pythonhosted.org/packages/c1/7a/725f5c16756ec6211b1e7eeac09f469084595513917ea069bc023c40a5e2/pyRFC3339-1.1-py2.py3-none-any.whl
Collecting pycparser==2.19 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 113))
Downloading https://www.piwheels.org/simple/pycparser/pycparser-2.19-py2.py3-none-any.whl (111kB)
Collecting pyparsing==2.4.6 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 115))
Downloading https://files.pythonhosted.org/packages/5d/bc/1e58593167fade7b544bfe9502a26dc860940a79ab306e651e7f13be68c2/pyparsing-2.4.6-py2.py3-none-any.whl (67kB)
Collecting python-augeas==0.5.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 118))
Downloading https://files.pythonhosted.org/packages/41/e6/4b6740cb3e31b82252099994cea751c648b846aa7874343c31d68c2215be/python-augeas-0.5.0.tar.gz (90kB)
Collecting pytz==2019.3 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 120))
Downloading https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl (509kB)
Collecting requests==2.22.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 123))
Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)
Collecting requests-toolbelt==0.9.1 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 126))
Downloading https://files.pythonhosted.org/packages/60/ef/7681134338fc097acef8d9b2f8abe0458e4d87559c689a8c306d0957ece5/requests_toolbelt-0.9.1-py2.py3-none-any.whl (54kB)
Collecting six==1.14.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 129))
Downloading https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Collecting urllib3==1.25.8 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 132))
Downloading https://files.pythonhosted.org/packages/e8/74/6e4f91745020f967d09332bb2b8b9b10090957334692eb88ea4afe91b77f/urllib3-1.25.8-py2.py3-none-any.whl (125kB)
Collecting zope.component==4.6 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 135))
Downloading https://www.piwheels.org/simple/zope-component/zope.component-4.6-py2.py3-none-any.whl (70kB)
Collecting zope.deferredimport==4.3.1 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 137))
Downloading https://files.pythonhosted.org/packages/63/e3/05b02057b56cd9c59d848b67aff1cc701e1d2237055ebd0d0c1f44331186/zope.deferredimport-4.3.1-py2.py3-none-any.whl
Collecting zope.deprecation==4.4.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 140))
Downloading https://files.pythonhosted.org/packages/f9/26/b935bbf9d27e898b87d80e7873a0200cebf239253d0afe7a59f82fe90fff/zope.deprecation-4.4.0-py2.py3-none-any.whl
Collecting zope.event==4.4 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 143))
Downloading https://files.pythonhosted.org/packages/c5/96/361edb421a077a4c208b4a5c212737d78ae03ce67fbbcd01621c49f332d1/zope.event-4.4-py2.py3-none-any.whl
Collecting zope.hookable==5.0.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 146))
Downloading https://files.pythonhosted.org/packages/35/7e/d7ffdd410a9b4aa97d175af1718baa6b741ec6a60baa668354dd3da4e26c/zope.hookable-5.0.0.tar.gz
Collecting zope.interface==4.7.1 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 186))
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine('No status line received - the server has closed the connection',))': /simple/zope-interface/
Downloading https://files.pythonhosted.org/packages/c3/05/bf3130eb799548882ce61b7c3d2dbc5d4d5cc6e821efa8786c5273d56844/zope.interface-4.7.1.tar.gz (151kB)
Collecting zope.proxy==4.3.3 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 226))
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine('No status line received - the server has closed the connection',))': /simple/zope-proxy/
Downloading https://files.pythonhosted.org/packages/e2/44/bea546c55488c044351e51ebf23bf440b19876e0069a418cadc1bd5736f7/zope.proxy-4.3.3.tar.gz (44kB)
Collecting letsencrypt==0.7.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 274))
Downloading https://files.pythonhosted.org/packages/fd/21/0c6f33829fadec8aca0c1ebb4d6f8101c05899356a58d1b2e506cb77cf18/letsencrypt-0.7.0-py2-none-any.whl
Collecting certbot==1.3.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 278))
Downloading https://files.pythonhosted.org/packages/4b/3d/afa627553cdd9b69553637fd15d07bee32f31e9401e5413fd7806367e54a/certbot-1.3.0-py2.py3-none-any.whl (231kB)
Collecting acme==1.3.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 281))
Downloading https://files.pythonhosted.org/packages/3d/11/19d48550ad114026657c657a3da6c9b278e7d3d8a53aa2180d5c5216c67a/acme-1.3.0-py2.py3-none-any.whl
Collecting certbot-apache==1.3.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 284))
Downloading https://files.pythonhosted.org/packages/80/83/d5ba575061fd936050ee9f87fe008a6802877c6263f3b7958d7b0e5c8bfe/certbot_apache-1.3.0-py2.py3-none-any.whl (86kB)
Collecting certbot-nginx==1.3.0 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 287))
Downloading https://files.pythonhosted.org/packages/aa/62/673bdbf118bd01bddcad887b1ea2134b07f6382477084e32029d57326ba8/certbot_nginx-1.3.0-py2.py3-none-any.whl (45kB)
Requirement already satisfied: setuptools>=1.0 in /opt/eff.org/certbot/venv/lib/python2.7/site-packages (from josepy==1.2.0->-r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 95))
THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
pycparser==2.19 from https://www.piwheels.org/simple/pycparser/pycparser-2.19-py2.py3-none-any.whl#sha256=bc15573b7c6edd24407526dbbc7a0bd33d80d8af44231c37f58d73f56ff9cab6 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 113)):
Expected sha256 a988718abfad80b6b157acce7bf130a30876d27603738ac39f140993246b25b3
Got bc15573b7c6edd24407526dbbc7a0bd33d80d8af44231c37f58d73f56ff9cab6
zope.component==4.6 from https://www.piwheels.org/simple/zope-component/zope.component-4.6-py2.py3-none-any.whl#sha256=74f55521dec189c08d98341edce929eba6bb2404662d1878f1b289af46f6f6a5 (from -r /tmp/tmp.mD75mHpS3S/letsencrypt-auto-requirements.txt (line 135)):
Expected sha256 ec2afc5bbe611dcace98bb39822c122d44743d635dafc7315b9aef25097db9e6
Got 74f55521dec189c08d98341edce929eba6bb2404662d1878f1b289af46f6f6a5
=====================================================
Certbot has problem setting up the virtual environment.
We were not be able to guess the right solution from your pip
output.
Consult https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment
for possible solutions.
You may also find some support resources at https://certbot.eff.org/support/ .
root@mail:~#
They seem like problems with Python, but honestly I don't know what I need to solve it, there isn't much information related to this.
Thank you