Am not able to install cert bot on my domain it say package missing but it is already installed

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. |, so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain

I ran this command:sudo certbot --apache -d -d

It produced this output:An unexpected error occurred:
ModuleNotFoundError: No module named 'acme.magic_typing'(but when check status of this package-it says latest version available)

My web server is (include version):apache 3.10

The operating system my web server runs on is (include version):ubuntu 16.04

My hosting provider, if applicable, is:hostinger,vps

I can login to a root shell on my machine (yes or no, or I don't know):yes i can

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):yes i can webmin

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):not able to install certbot

the log file
2023-03-12 06:48:03,828:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/local/bin/certbot", line 8, in
File "/usr/local/lib/python3.10/dist-packages/certbot/", line 19, in main
return internal_main.main(cli_args)
File "/usr/local/lib/python3.10/dist-packages/certbot/_internal/", line 1835, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File "/usr/local/lib/python3.10/dist-packages/certbot/_internal/plugins/", line 192, in find_all
cls._load_entry_point(entry_point, plugins)
File "/usr/local/lib/python3.10/dist-packages/certbot/_internal/plugins/", line 199, in _load_entry_point
plugin_ep = PluginEntryPoint(entry_point)
File "/usr/local/lib/python3.10/dist-packages/certbot/_internal/plugins/", line 40, in init
self.plugin_cls: Type[interfaces.Plugin] = entry_point.load()
File "/usr/local/lib/python3.10/dist-packages/pkg_resources/", line 2517, in load
return self.resolve()
File "/usr/local/lib/python3.10/dist-packages/pkg_resources/", line 2523, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/lib/python3/dist-packages/certbot_apache/", line 4, in
from certbot_apache import configurator
File "/usr/lib/python3/dist-packages/certbot_apache/", line 17, in
from acme.magic_typing import Any, DefaultDict, Dict, List, Set, Union # pylint: disable=unused-import, no-name-in-module
ModuleNotFoundError: No module named 'acme.magic_typing'
2023-03-12 06:48:03,828:ERROR:certbot._internal.log:An unexpected error occurred:
2023-03-12 06:48:03,828:ERROR:certbot._internal.log:ModuleNotFoundError: No module named 'acme.magic_typing'

@_az Any ideas about this?

@vraghavans Do you remember how you installed Certbot? Did you follow instructions from Did you use your operating system package manager to install it?


It looks like global pip was used to install Certbot. Following the instructions on the website should take care of the issue.


Hi Thanks for the quck reply!
there seems to some compatibility issues as well if i am correct
i get the below error when i try to install Snap
sudo snap install core; sudo snap refresh core
error: system does not fully support snapd: cannot mount squashfs image using
"squashfs": mount: /tmp/syscheck-mountpoint-880227462: mount failed:
Operation not permitted.
error: system does not fully support snapd: cannot mount squashfs image using
"squashfs": mount: /tmp/syscheck-mountpoint-880227462: mount failed:
Operation not permitted.
Also the error for creating symlink

sudo ln -s /snap/bin/certbot /usr/bin/certbot
ln: failed to create symbolic link '/usr/bin/certbot': File exists

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.