I type sudo apt install ufw
then is says:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
So I write sudo dpkg --configure -a
then It says:
dpkg: error: parsing file '/var/lib/dpkg/updates/0006' near line 0:
newline in field name '#padding'