Так как обновлено от Ububtu 14 to 18, стоящего перед этой ошибкой обновления,

pip3 не работает больше для установки click_package, я вручную загрузил и установил пакет щелчка для python 3.6, но не нашел, что click_pakage загрузил и установил. Можно ли помочь мне решить эту проблему.

$ sudo apt-get upgrade
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:
 upstart-app-launch : Depends: upstart (>= 1.11) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

sajid@sajid-Inspiron-7737:bin$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  account-plugin-tools accountsservice-ubuntu-schemas antlr3 apparmor-easyprof-ubuntu  
......
......
qtdeclarative5-dev-tools qtdeclarative5-ofono0.2 qtdeclarative5-online-accounts-client0.1 qtdeclarative5-ubuntu-content1 ruby2.3 snapd-login-service system-image-common
  system-image-dbus ubuntu-application-api3-test ubuntu-download-manager ubuntuone-credentials-common urfkill x11proto-xinerama-dev
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  upstart-app-launch
0 upgraded, 0 newly installed, 1 to remove and 499 not upgraded.
After this operation, 236 kB disk space will be freed.

Do you want to continue? [Y/n] y

(Reading database ... 446556 files and directories currently installed.)
Removing upstart-app-launch (0.3+14.04.20140411-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 upstart-app-launch (--remove):
 installed upstart-app-launch package pre-removal script subprocess returned error exit status 1
Errors were encountered while processing:
 upstart-app-launch
E: Sub-process /usr/bin/dpkg returned an error code (1)
1
задан 22 September 2018 в 09:51

2 ответа

Необходимо удалить соответствие python3-click-package, python3-click, click пакеты:

sudo apt-get update
sudo apt-get purge python3-click-package python3-click click

и затем установка пакета резюме и установка обновленных зависимостей от пакета:

sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get dist-upgrade
0
ответ дан 7 December 2019 в 23:10

Проблема решена путем ручного удаления щелчка при помощи ниже команд.

комната sudo/usr/bin/click

склонные sudo - добираются - поврежденная фиксацией установка

Чем я использовал

склонные sudo - получают обновление

склонные sudo - получают обновление

Теперь все смотрит хорошо

0
ответ дан 7 December 2019 в 23:10

Другие вопросы по тегам:

Похожие вопросы: