16.04에서 16.10으로의 업그레이드가 부분적으로 실패 했습니까?


10

16.10이 릴리스 된 후 며칠 (현재) 업그레이드하기로 결정했습니다. 업그레이드가 실패 할 때까지 오류가 발생했습니다. CLI에서 실행하면 apt-get upgrade이제 다음을 제공합니다.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
20 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up click (0.4.45.1+16.10.20160916-0ubuntu1) ...
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
Setting up click-apparmor (0.3.17) ...
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-apparmor (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up url-dispatcher:amd64 (0.1+16.10.20160816.1-0ubuntu1) ...
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 url-dispatcher:amd64 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ubuntu-app-launch:
 ubuntu-app-launch depends on click-apparmor; however:
  Package click-apparmor is not configured yet.

dpkg: error processing package ubuntu-app-launch (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-system-settings:
 ubuntu-system-settings depends on click | ubuntu-snappy-cli; however:
  Package click is not configured yet.
  Package ubuntu-snappy-cli is not installed.

dpkg: error processing package ubuntu-system-settings (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of url-dispatcher-tools:
 url-dispatcher-tools depends on url-dispatcher (= 0.1+16.10.20160816.1-0ubuntu1); however:
  Package url-dispatcher:amd64 is not configured yet.

dpkg: error processing package url-dispatcher-tools (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configurationNo apport report written because MaxReports is reached already
                             No apport report written because MaxReports is reached already
           No apport report written because MaxReports is reached already
                                                                         No apport report written because MaxReports is reached already
                                                        of ubuntu-app-launch-tools:
 ubuntu-app-launch-tools depends on ubuntu-app-launch (= 0.9+16.10.20160928-0ubuntu1); however:
  Package ubuntu-app-launch is not configured yet.

dpkg: error processing package ubuntu-app-launch-tools (--configure):
 dependency problems - leaving unconfigured
Setting up libunity-scopes1.0:amd64 (1.0.7+16.10.20160921-0ubuntu2) ...
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 libunity-scopes1.0:amd64 (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of ubuntu-system-settings-online-accounts:
 ubuntu-system-settings-online-accounts depends on ubuntu-system-settings; however:
  Package ubuntu-system-settings is not configured yet.

dpkg: error processing package ubuntu-system-settings-online-accounts (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of unity8:
 unity8 depends on ubuntu-system-settings (>= 0.4); however:
  Package ubuntu-system-settings is not configured yet.

dpkg: error processing package unity8 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of account-plugin-ubuntuone:
 account-plugin-ubuntuone depends on ubuntu-system-settings-online-accounts; however:
  Package ubuntu-system-settings-online-accounts is not configured yet.

dpkg: error processing package account-plugin-ubuntuone (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of unity-plugin-scopes:amd64:
 unity-plugin-scopes:amd64 depends on libunity-scopes1.0; however:
  Package libunity-scopes1.0:amd64 is not configured yet.

dpkg: error processing package unity-plugin-scopes:amd64 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of unity-greeter-session-broadcast:
 unity-greeter-session-broadcast depends on url-dispatcher-tools; however:
  Package url-dispatcher-tools is not configured yet.

dpkg: error processing package unity-greeter-session-broadcast (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of unity8-desktop-session:
 unity8-desktop-session depends on ubuntu-app-launch; however:
  Package ubuntu-app-launch is not configured yet.
 unity8-desktop-session depends on unity8; however:
  Package unity8 is not configured yet.
 unity8-desktop-session depends on url-dispatcher; however:
  Package url-dispatcher:amd64 is not configured yet.

dpkg: error processing package unity8-desktop-session (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of ubuntu-push-client:
 ubuntu-push-client depends on url-dispatcher; however:
  Package url-dispatcher:amd64 is not configured yet.

dpkg: error processing package ubuntu-push-client (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of unity-scope-click:
 unity-scope-click depends on account-plugin-ubuntuone; however:
  Package account-plugin-ubuntuone is not configured yet.
 unity-scope-click depends on ubuntu-app-launch-tools; however:
  Package ubuntu-app-launch-tools is not configured yet.
 unity-scope-click depends on libunity-scopes1.0; however:
  Package libunity-scopes1.0:amd64 is not configured yet.

dpkg: error processing package unity-scope-click (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of account-plugin-facebook:
 account-plugin-facebook depends on libaccount-plugin-facebook | ubuntu-system-settings-online-accounts; however:
  Package libaccount-plugin-facebook is not installed.
  Package ubuntu-system-settings-online-accounts is not configured yet.

dpkg: error processing package account-plugin-facebook (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of pay-service:
 pay-service depends on ubuntu-push-client (>= 0.68+15.04.20151009); however:
  Package ubuntu-push-client is not configured yet.

dpkg: error processing package pay-service (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of unity8-common:
 unity8-common depends on unity-plugin-scopes | unity-scopes-impl; however:
  Package unity-plugin-scopes:amd64 is not configured yet.
  Package unity-scopes-impl is not installed.
  Package unity-plugin-scopes:amd64 which provides unity-scopes-impl is not configured yet.
 unity8-common depends on unity-scopes-impl-12; however:
  Package unity-scopes-impl-12 is not installed.
  Package unity-plugin-scopes:amd64 which provides unity-scopes-impl-12 is not configured yet.

dpkg: error processing package unity8-common (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of unity8-private:amd64:
 unity8-private:amd64 depends on pay-service; however:
  Package pay-service is not configured yet.

dpkg: error processing package unity8-private:amd64 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Processing triggers for libc-bin (2.24-3ubuntu1) ...

. .

Errors were encountered while processing:
 click
 click-apparmor
 url-dispatcher:amd64
 ubuntu-app-launch
 ubuntu-system-settings
 url-dispatcher-tools
 ubuntu-app-launch-tools
 libunity-scopes1.0:amd64
 ubuntu-system-settings-online-accounts
 unity8
 account-plugin-ubuntuone
 unity-plugin-scopes:amd64
 unity-greeter-session-broadcast
 unity8-desktop-session
 ubuntu-push-client
 unity-scope-click
 account-plugin-facebook
 pay-service
 unity8-common
 unity8-private:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

시스템 작동 및 업그레이드에 대한 제안 사항이 있습니까?


Cannot start click due to a conflict with a different locally-installed Python 'click' package. Remove it using Python packaging tools and try again.. 그래서 시도 sudo pip uninstall click후 계속sudo apt-get install -f
user.dz

1
고마워요. 답으로 쓰십시오. 현상금은 당신입니다!
AT

1
제 경우에는 'pip'가 아니라 'pip3'입니다. 틱을 수행합니다

답변:


9

게시 된 출력에서

로컬에 설치된 다른 Python 'click'패키지와 충돌하여 클릭을 시작할 수 없습니다. Python 패키징 도구를 사용하여 제거하고 다시 시도하십시오.

분포 패키지가 click로컬에 설치된 충돌 보유 click모듈 중 하나를 사용하여 pip3, pip, easy_install또는 단지 파일 시스템에서 추출 하였다.

  1. 로컬 모듈 제거

    sudo pip3 uninstall click
    
  2. 그런 다음 다음을 사용하여 설치를 수정하고 계속 진행하십시오.

    sudo apt-get install -f
    

그것이 작동하지 않은 경우 pip3와 시도 pip, easy_install그렇지 않으면 수동으로 검색하여 삭제합니다.


1
user.dz의 대답은 한 번의 변경으로 나를 위해 일했습니다-python2와 충돌하지 않는 python3 클릭 모듈이었습니다-그래서 나는 이것을했습니다 : sudo pip3 uninstall click업그레이드는 더 이상 오류없이 완료되었습니다.
nickyspag

@nickyspag, 감사합니다. pip3이 사용자 의견의 정확한 답변 인 것처럼 반영하여 답변을 업데이트했습니다.
user.dz

이것은 나를 위해 그것을 해결했다. 나는 그것이 왜 피하는 것이 가장 좋은지에 대한 좋은 예라고 생각합니다 sudo pip install.
4

3
같은 문제에 직면하여 python 3 패키지에서 클릭을 제거했지만 File "/usr/bin/click", line 37, in <module> import click ImportError: No module named 'click' dpkg: error processing package click (--configure): subprocess installed post-installation script returned error exit status 1 누락 된 패키지를 사용하고 싶지만 다시 설치하면 충돌 문제가 발생한다는 오류가 발생합니다. 도움을 주시면 감사하겠습니다.
brainbreaker

1
: @ 여기 user.dz 내 질문에 대한 링크입니다 askubuntu.com/questions/874975/...
brainbreaker

0

누락 된 설치를 시도하십시오.

sudo apt-get update
sudo apt-get install -f
sudo apt-get reboot

재부팅이 완료되면 다음을 시도하십시오.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

3
누락 된 설치하지 못했습니다. sudo apt-get install -f내 질문에서와 동일한 출력을 반환합니다.
AT

0

나에게 이것을 고쳤다.

sudo apt-get install python3-click-package
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.