Thank you for using Ubuntu and reporting a bug. apparmor-easyprof-ubuntu doesn't ship any code, so if this is a bug in anything, it is in click-apparmor. The postinstall will use aa-clickhook if it is installed, and it needs click.py. click-apparmor has a dependency on python3-apparmor-click (ie, what ships click.py). Installing click-apparmor pulls in python3-apparmor-click.
$ sudo apt-get install click-apparmor ... The following NEW packages will be installed: apparmor-easyprof click click-apparmor gir1.2-click-0.4 gir1.2-gee-0.8 libclick-0.4-0 liblttng-ust-ctl2 liblttng-ust0 libubuntu-app-launch2 liburcu2 python3-apparmor python3-apparmor-click python3-click python3-libapparmor ubuntu-app-launch ubuntu-app-launch-tools ... $ sudo dpkg-reconfigure -plow apparmor-easyprof-ubuntu (may take a while) (This 'this may take a while' comes from aa-clickhook). It seems you have aa-clickhook installed (ie, click-apparmor) but not python3 -apparmor-click, but this is not allowed based on the dependencies. Please install python3-apparmor-click and this problem will go away. ** Package changed: apparmor-easyprof-ubuntu (Ubuntu) => click-apparmor (Ubuntu) ** Changed in: click-apparmor (Ubuntu) Status: New => Invalid -- 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/1378037 Title: ImportError: cannot import name 'click' Status in “click-apparmor” package in Ubuntu: Invalid Bug description: :~$ LANG=en sudo apt-get install apparmor-easyprof-ubuntu Reading package lists... Done Building dependency tree Reading state information... Done apparmor-easyprof-ubuntu is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 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 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "ru_UA:ru", LC_ALL = (unset), LANG = "en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Setting up apparmor-easyprof-ubuntu (1.2.34) ... (may take a while) Traceback (most recent call last): File "/usr/bin/aa-clickhook", line 14, in <module> from apparmor import click ImportError: cannot import name 'click' dpkg: error processing package apparmor-easyprof-ubuntu (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: apparmor-easyprof-ubuntu E: Sub-process /usr/bin/dpkg returned an error code (1) ProblemType: Bug DistroRelease: Ubuntu 14.10 Package: apparmor-easyprof-ubuntu 1.2.34 ProcVersionSignature: Ubuntu 3.16.0-20.27-generic 3.16.3 Uname: Linux 3.16.0-20-generic x86_64 ApportVersion: 2.14.7-0ubuntu3 Architecture: amd64 Date: Mon Oct 6 20:35:15 2014 InstallationDate: Installed on 2014-07-25 (73 days ago) InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417) PackageArchitecture: all ProcEnviron: LANGUAGE=ru_UA:ru TERM=xterm PATH=(custom, no user) LANG=ru_UA.UTF-8 SHELL=/bin/bash SourcePackage: apparmor-easyprof-ubuntu UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/click-apparmor/+bug/1378037/+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