อัปเกรดจาก 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 ที่ติดตั้งในเครื่องอื่น ลบออกโดยใช้เครื่องมือบรรจุภัณฑ์ 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 ทำงานได้สำหรับฉันด้วยการเปลี่ยนแปลงเพียงครั้งเดียว - มันเป็นโมดูลการคลิก python3 ที่ขัดแย้งกันไม่ใช่ python2 - ดังนั้นฉันจึงทำสิ่งนี้: sudo pip3 uninstall clickจากนั้นการอัปเกรดจะเสร็จสมบูรณ์โดยไม่มีข้อผิดพลาดเพิ่มเติม
nickyspag

@nickyspag ขอขอบคุณฉันได้อัปเดตคำตอบเพื่อสะท้อนว่า pip3 เป็นคำตอบที่แน่นอนจากผู้ใช้
user.dz

สิ่งนี้ก็แก้ไขให้ฉันด้วย ฉันเดาว่าเป็นตัวอย่างที่ดีว่าทำไมจึงควรหลีกเลี่ยงsudo pip installตั้งแต่แรก
nedned

3
ฉันประสบปัญหาเดียวกันถอนการติดตั้งคลิกจากแพคเกจหลาม 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 ฉันคิดว่ามันต้องการใช้แพคเกจที่ขาดหายไป แต่การติดตั้งมันอีกครั้งทำให้เกิดปัญหาความขัดแย้ง ความช่วยเหลือใด ๆ ที่ชื่นชม
ทำลายสมอง

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

โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.