This is caused by having a conflicting Python package "click". To fix:
sudo pip3 uninstall click sudo apt install -f -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to click-apparmor in Ubuntu. https://bugs.launchpad.net/bugs/1633291 Title: package click-apparmor 0.3.17 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 Status in click-apparmor package in Ubuntu: New Bug description: This occurred as part of an upgrade to 16.10. It was part of a number of failed upgrades: 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) ProblemType: Package DistroRelease: Ubuntu 16.10 Package: click-apparmor 0.3.17 ProcVersionSignature: Ubuntu 4.8.0-22.24-generic 4.8.0 Uname: Linux 4.8.0-22-generic x86_64 NonfreeKernelModules: wl ApportVersion: 2.20.3-0ubuntu8 AptOrdering: ubuntu-release-upgrader-gtk:amd64: Install ubuntu-release-upgrader-core:amd64: Install python3-distupgrade:amd64: Install NULL: ConfigurePending Architecture: amd64 Date: Thu Oct 13 20:54:48 2016 DuplicateSignature: package:click-apparmor:0.3.17 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 ErrorMessage: subprocess installed post-installation script returned error exit status 1 InstallationDate: Installed on 2016-04-10 (186 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Beta amd64 (20160323) RelatedPackageVersions: dpkg 1.18.10ubuntu1 apt 1.3.1 SourcePackage: click-apparmor Title: package click-apparmor 0.3.17 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 UpgradeStatus: Upgraded to yakkety on 2016-10-14 (0 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/click-apparmor/+bug/1633291/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp