关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

Ubuntu 删除卸载 click click-apparmor libunity-scopes1.0:amd64 方法

发布时间:2022-11-16 15:40:31
1491984010112764.jpg

一、问题描述

由于没有记录当时具体问题信息,大致找一下网上别人的错误信息如下。

Reading package lists... DoneBuilding dependency tree       
Reading state information... DoneCalculating upgrade... Done0 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] YSetting 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 1Setting 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 1Setting 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 1dpkg: 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 unconfiguredSetting 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 1No 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 unconfiguredNo 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 unconfiguredNo 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 unconfiguredNo 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 unconfiguredNo 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 unconfiguredNo 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 unconfiguredNo 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 unconfiguredNo 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 unconfiguredNo 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 unconfiguredNo 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 unconfiguredNo 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 unconfiguredNo 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 unconfiguredNo 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)

二、解决方法

方法一:

First, I went to /var/lib/dpkg/info/:

cd /var/lib/dpkg/info/

Then, I removed the lines pertaining to the packages which caused the problems. In my case, I had to do:

sudo rm -r python3-apparmor-click.*sudo rm -r click-apparmor.*sudo rm -r click.*sudo rm -r ubuntu-app-launch.* sudo rm -r url-dispatcher-tools.*sudo rm -r url-dispatcher:amd64.*sudo rm -r libunity-scopes1.0:amd64

After that, I typed:

sudo apt purge python3-apparmor-click
sudo apt purge click-apparmor    
sudo apt purge click
sudo apt purge ubuntu-app-launch
sudo apt purge url-dispatcher-tools
sudo apt purge url-dispatcher:amd64
sudo apt purge libunity-scopes1.0

方法二:

I don’t now if it doomed something else on the system but it works out for my problem:

sudo -i                       # to be the superuserdpkg --purge unity-plugin-scopes:amd64 url-dispatcher:amd64 url-dispatcher-tools unity8-common unity8 unity-greeter-session-broadcast unity8-desktop-session   # to remove the 7 last dependencies

then, remove libunity-scopes1.0:amd64 manually cause dpkg –dpkg had some issues with this one so with command line:

rm -r /usr/share/doc/libunity-scopes*rm /var/lib/dpkg/info/libunity-scopes*rm /usr/share/apport/package-hooks/libunity-scopes1.0.pyrm /var/crash/libunity-scopes*

then you can use:

dpkg --purge libunity-scopes1.0:amd64
apt-get install -f
apt autoremove



/template/Home/8a/PC/Static