click install fails on 16.10, causing user install and autopkgtest failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
click (Ubuntu) |
Fix Released
|
High
|
Colin Watson |
Bug Description
click crashed with:
click crashed with subprocess.
ProblemType: Crash
DistroRelease: Ubuntu 16.10
Package: click 0.4.44+
ProcVersionSign
Uname: Linux 4.4.0-9134-generic x86_64
ApportVersion: 2.20.3-0ubuntu7
Architecture: amd64
Date: Mon Aug 22 11:16:02 2016
ExecutablePath: /usr/bin/click
InstallationDate: Installed on 2016-08-21 (1 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
InterpreterPath: /usr/bin/python3.5
ProcCmdline: /usr/bin/python3 /usr/bin/click install --user emanuele /home/emanuele/
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=it_IT.UTF-8
LANGUAGE=it
SHELL=/bin/bash
PythonArgs: ['/usr/bin/click', 'install', '--user', 'emanuele', '/home/
SourcePackage: click
Title: click crashed with subprocess.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
Related branches
- Colin Watson: Approve
-
Diff: 100 lines (+35/-10)2 files modifiedclick/tests/integration/test_signatures.py (+27/-10)
debian/changelog (+8/-0)
tags: | removed: need-duplicate-check |
Changed in click (Ubuntu): | |
importance: | Undecided → Medium |
information type: | Private → Public |
Changed in click (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Colin Watson (cjwatson) |
importance: | Medium → High |
This bug also affects the click-apparmor autopkgtests. I'm surprised that click was promoted if click-apparmor's autopkgtest failed. Here are steps to reproduce in a clean VM:
$ sudo apt-get install click ubuntu-sdk-libs example. click-apparmor- test_0. 1_all.click
$ sudo click install --user=jamie /tmp/com.
$ sudo click install --user=jamie /tmp/com. example. click-apparmor- test_0. 1_all.click --allow- unauthenticated root:Signature check failed, but installing anyway as requested architecture' , '--instdir', '/opt/click. ubuntu. com/com. example. click-apparmor- test/0. 1', '--admindir', '/opt/click. ubuntu. com/com. example. click-apparmor- test/0. 1/.click' , '--path-exclude', '*/.click/*', '--log', '/opt/click. ubuntu. com/.click/ log', '--no-triggers', '--install', '/tmp/com. example. click-apparmor- test_0. 1_all.click' ] failed with exit_code 1:
WARNING:
ERROR:root:['dpkg', '--force-not-root', '--force-bad-path', '--force-
Traceback (most recent call last): exit(main( )) python3/ dist-packages/ click/commands/ install. py", line 66, in run python3/ dist-packages/ click/install. py", line 463, in install all_users, quiet=quiet) python3/ dist-packages/ click/install. py", line 419, in _unpack python3. 5/subprocess. py", line 626, in check_output .stdout python3. 5/subprocess. py", line 708, in run CalledProcessEr ror: Command '['dpkg', '--force-not-root', '--force-bad-path', '--force- architecture' , '--instdir', '/opt/click. ubuntu. com/com. example. click-apparmor- test/0. 1', '--admindir', '/opt/click. ubuntu. com/com. example. click-apparmor- test/0. 1/.click' , '--path-exclude', '*/.click/*', '--log', '/opt/click. ubuntu. com/.click/ log', '--no-triggers', '--install', '/tmp/com. example. click-apparmor- test_0. 1_all.click' ]' returned non-zero exit status 1
File "/usr/bin/click", line 110, in <module>
sys.
File "/usr/bin/click", line 106, in main
return mod.run(args)
File "/usr/lib/
quiet=not options.verbose)
File "/usr/lib/
path, user=user, all_users=
File "/usr/lib/
**kwargs)
File "/usr/lib/
**kwargs)
File "/usr/lib/
output=stdout, stderr=stderr)
subprocess.
Note, the above was with debsig-verify installed but had the same error with it uninstalled.
$ apt-cache policy click 16.10.20160811. 1-0ubuntu1 16.10.20160811. 1-0ubuntu1 16.10.20160811. 1-0ubuntu1 500 us.archive. ubuntu. com/ubuntu yakkety/main amd64 Packages dpkg/status
click:
Installed: 0.4.44+
Candidate: 0.4.44+
Version table:
*** 0.4.44+
500 http://
100 /var/lib/
This works fine on xenial.