The other day I went to update my certificates and was receiving an error running the letsencrypt script to update. The error was
Error: couldn’t get currently installed version for /root/.local/share/letsencrypt/bin/letsencrypt:
An unexpected error occurred:
VersionConflict: (certbot 0.11.1 (/root/.local/share/letsencrypt/lib/python2.7/site-packages),
Or something along that lines.
After trying to remember what I changed I realized I did upgrade to the latest version of Ubuntu on this system.
After a little more troubleshooting this is how I ended up fixing it.
1. Change to your letsencrypt directory
2. Change to root – sudo su
3. remove the letsencrypt share cache (?) .. run rm -rf ~/.local/share/letsencrypt
4. ReRun the letsencrypt scripot – ./letsencrypt-auto –apache and follow the prompts
I image in could run ./letsencrypt-auto renew and it would have worked also. I will test this theory later.
Hope that helps you .