Here’s what’s going on with the message:
Error: couldn't get currently installed version for ~/.local/share/letsencrypt/bin/letsencrypt:
Previously, if your current Certbot installation was broken, we’d just delete it and try and reinstall it. This was causing trouble for people who were trying to customize their local installation, so we now print a message about there being a problem with your current installation and rather than immediately deleting it. This may be the wrong behavior, but you can work around the that problem by deleting the installation yourself by running:
rm -rf "${XDG_DATA_HOME:-~/.local/share}/letsencrypt"
As for
ImportError: No module named interface
this is unfortunately a long standing, known problem with certbot-auto
on Amazon Linux. certbot-auto
has never fully supported Amazon Linux, as showcased by the need to include --debug
when you install Certbot on that system and the following message when you fail to do so:
WARNING: Amazon Linux support is very experimental at present…
if you would like to work on improving it, please ensure you have backups
and then run this script again with the --debug flag!
You can track the progress of this problem at https://github.com/certbot/certbot/issues/2823. We’ve seen some success with unset PYTHON_INSTALL_LAYOUT
as recommended above, but that did not solve the issue for everyone in the thread.
Most of our “experimental” support for different distros have been developed by the open source community and then reviewed by the Certbot team. If someone is interested in tracking down the problem here and developing a reliable solution, we’d love to see a pull request, but I don’t think the small number of paid Certbot developers have the resources to investigate and develop a solution for this platform that is currently not officially supported by certbot-auto
.
Despite this, I encourage you to try the advice given in this post of deleting your current Certbot installation, running unset PYTHON_INSTALL_LAYOUT
, and running certbot-auto --debug
again. I hope this helps!