From the DpkgTerminalLog, the problem looks to be:
Setting up click (0.4.38.5) ... Traceback (most recent call last): File "/usr/bin/click", line 31, in <module> from click import commands ImportError: cannot import name 'commands' dpkg: error processing package click (--configure): subprocess installed post-installation script returned error exit status 1
which implies the python3-click package is not installed.
From the DpkgTerminalLog, the problem looks to be:
Setting up click (0.4.38.5) ...
Traceback (most recent call last):
File "/usr/bin/click", line 31, in <module>
from click import commands
ImportError: cannot import name 'commands'
dpkg: error processing package click (--configure):
subprocess installed post-installation script returned error exit status 1
which implies the python3-click package is not installed.