我确实sudo apt dist-upgrade升级了我的 Ubuntu 发行版,但遇到了这个错误
Cannot start click due to a conflict with a different locally-installed Python 'click' package. Remove it using Python packaging tools and try again.
dpkg: error processing package click (--configure):
subprocess installed post-installation script returned error exit status 1
Run Code Online (Sandbox Code Playgroud)
我卸载了我的本地 Python 3 click 包,如这里的答案中所述。在那之后我试过了,sudo apt-get install -f但现在它没有说
Setting up click-apparmor (0.3.17) ...
Traceback (most recent call last):
File "/usr/bin/click", line 37, in <module>
import click
ImportError: No module named 'click' …Run Code Online (Sandbox Code Playgroud)