Does ufw fail to work properly under Ubuntu?

ufw cannot be used normally under ubuntu.
ufw has been installed, version
root@VM-0-8-ubuntu:/home/ubuntu-sharp sudo apt-get install ufw
Reading package lists... Done
Building dependency tree
Reading state information... Done
ufw is already the newest version (0.35-0ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
root@VM-0-8-ubuntu:/home/ubuntu-sharp sudo ufw status
Traceback (most recent call last):
File "/ usr/sbin/ufw", line 26, in < module >

import ufw.frontend

ModuleNotFoundError: No module named "ufw"
root@VM-0-8-ubuntu:/home/ubuntu-sharp

I don"t know what caused it, but I could use

yesterday.
Jun.27,2022
Menu