将我的 Ubuntu 升级到 17.04 后,包系统坏了。当我执行以下任何命令时,出现一些错误。
$ sudo apt-get --fix-broken install
...
...
ubuntuone-credentials-common unity-plugin-scopes unity-scope-
mediascanner2
unity-webapps-qml url-dispatcher usermetricsservice vbetool vlc-nox
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
click-apparmor
The following packages will be upgraded:
click-apparmor
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/10.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do …
Run Code Online (Sandbox Code Playgroud) 我确实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)