Suddenly my certbot is not working.
Upon issue simple command : certbot renew
the captioned error happened, the certbot unable to run. It's been working fine.
pkg_resources.VersionConflict: (certbot 0.40.0 (/usr/lib/python3/dist-packages), Requirement.parse('certbot>=2.6.0'))
Please see the logfile '/tmp/tmpqpczvsz3/log' for more details.
cat /tmp/tmpqpczvsz3/log
2023-06-12 15:00:56,584:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/certbot", line 11, in
load_entry_point('certbot==0.40.0', 'console_scripts', 'certbot')()
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1348, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File "/usr/lib/python3/dist-packages/certbot/plugins/disco.py", line 208, in find_all
plugin_ep = PluginEntryPoint(entry_point)
File "/usr/lib/python3/dist-packages/certbot/plugins/disco.py", line 50, in init
self.plugin_cls = entry_point.load()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2444, in load
self.require(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2467, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 792, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (certbot 0.40.0 (/usr/lib/python3/dist-packages), Requirement.parse('certbot>=2.6.0'))
2023-06-12 15:00:56,584:ERROR:certbot.log:An unexpected error occurred:
my system is
ubuntu 20 LTS
certbot 0.40.0 ( apt install certbot claimed this is the later version )
i don't understand while certbot 0.40.0 is latest by apt install, how comes there a 2.6.0?