
패키지 클릭이 깨지는 상황입니다. 나는 많은 것을 시도했지만 그것을 고치지 못했습니다.
$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies.
click : Depends: python3-click-package (= 0.4.43+16.04.20160203-0ubuntu2) but 0.4.43+16.04.20170613-0ubuntu1 is installed
E: Unmet dependencies. Try using -f.
명백히 문제 sudo apt-get -f install
가 해결되지 않습니다. .python3-click-package
어떤 도움이라도 환영합니다.
$ apt-cache policy click python3-click-package
click:
Installed: 0.4.43+16.04.20160203-0ubuntu2
Candidate: 0.4.43+16.04.20170613-0ubuntu1
Version table:
0.4.43+16.04.20170613-0ubuntu1 500
500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
*** 0.4.43+16.04.20160203-0ubuntu2 500
500 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
python3-click-package:
Installed: 0.4.43+16.04.20170613-0ubuntu1
Candidate: 0.4.43+16.04.20170613-0ubuntu1
Version table:
*** 0.4.43+16.04.20170613-0ubuntu1 500
500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
100 /var/lib/dpkg/status
0.4.43+16.04.20160203-0ubuntu2 500
500 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
패키지를 제거할 수도 없습니다.
$sudo apt-get -f purge click
The following packages will be REMOVED
click*
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
2 not fully installed or removed.
After this operation, 88.1 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 590369 files and directories currently installed.)
Removing click (0.4.43+16.04.20160203-0ubuntu2) ...
Traceback (most recent call last):
File "/usr/bin/click", line 55, in <module>
from click import commands
ImportError: cannot import name 'commands'
dpkg: error processing package click (--purge):
subprocess installed pre-removal script 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.
click-system-hooks.service couldn't start.
Errors were encountered while processing:
click
E: Sub-process /usr/bin/dpkg returned an error code (1)
답변1
다음을 사용하여 정리했습니다.
sudo apt install python3-click-package=0.4.43+16.04.20160203-0ubuntu2 gir1.2-click-0.4=0.4.43+16.04.20160203-0ubuntu2 libclick-0.4-0=0.4.43+16.04.20160203-0ubuntu2
충족되지 않은 종속성의 메시지에 따라 해당 명령을 단계별로 작성했습니다... 그런 다음 클릭 패키지를 완전히 제거할 수 있었습니다...
sudo apt purge click
답변2
/usr/bin/click
다시 작업 하려면 먼저 파일을 제거해야 했습니다 sudo apt-get purge click
. 그 후 pip를 통해 클릭을 설치했습니다.