Ubuntu 18.04 升级错误

Ubuntu 18.04 升级错误

升级包时出现以下错误。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 click : Depends: python3-click-package (= 0.4.46+17.10.20170607.3-0ubuntu1) but it is not installable
         Recommends: click-apparmor but it is not installable
 libunity-scopes1.0 : Depends: libnet-cpp2 (>= 1.1.0+15.04.20150305) but it is not installable
 python3-pip : Depends: python-pip-whl (= 9.0.1-2.3~ubuntu1) but 9.0.1-2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

在跑步时apt-fix-broken 安装我收到以下错误:

Removing click (0.4.46+17.10.20170607.3-0ubuntu1) ...
Traceback (most recent call last):
  File "/usr/bin/click", line 37, in <module>
    import click_package as click
ModuleNotFoundError: No module named 'click_package'
dpkg: error processing package click (--remove):
 installed click package pre-removal script subprocess returned error exit status 1
Job for click-system-hooks.service failed because the control process exited with error code.
See "systemctl status click-system-hooks.service" and "journalctl -xe" for details.
Removing libunity-scopes1.0:amd64 (1.0.8+17.04.20170116-0ubuntu1) ...
Traceback (most recent call last):
  File "/usr/bin/click", line 37, in <module>
    import click_package as click
ModuleNotFoundError: No module named 'click_package'
dpkg: error processing package libunity-scopes1.0:amd64 (--remove):
 installed libunity-scopes1.0:amd64 package pre-removal script subprocess returned error exit status 1
Errors were encountered while processing:
 click
 libunity-scopes1.0:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

相关内容