Gives unfriendly error message when try to install without appropriate permissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
click (Ubuntu) |
Fix Released
|
Medium
|
Colin Watson |
Bug Description
Click gives an unfriendly error message when trying to install without appropriate permissions
$ click install com.ubuntu.
Traceback (most recent call last):
File "/usr/bin/click", line 83, in <module>
sys.
File "/usr/bin/click", line 79, in main
return mod.run(args)
File "/usr/lib/
package_path, user=options.user, all_users=
File "/usr/lib/
self.
File "/usr/lib/
"No permission to write to %s as clickpkg user" % path)
click.install.
Works when running as root:
bob@alchemy:
Selecting previously unselected package com.ubuntu.
(Reading database ... 0 files and directories currently installed.)
Unpacking com.ubuntu.
Setting up com.ubuntu.
ProblemType: Crash
DistroRelease: Ubuntu 13.10
Package: click 0.4.10
ProcVersionSign
Uname: Linux 3.11.0-11-generic x86_64
ApportVersion: 2.12.5-0ubuntu1
Architecture: amd64
CheckboxSubmission: e440e09ef58a53b
CheckboxSystem: d00f84de8a55581
Date: Tue Oct 8 15:56:53 2013
ExecutablePath: /usr/bin/click
InstallationDate: Installed on 2011-04-01 (921 days ago)
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110330)
InterpreterPath: /usr/bin/python3.3
MarkForUpload: True
ProcCmdline: /usr/bin/python3 /usr/bin/click install com.ubuntu.
PythonArgs: ['/usr/bin/click', 'install', 'com.ubuntu.
SourcePackage: click
Title: click crashed with click.install.
UpgradeStatus: Upgraded to saucy on 2011-07-05 (825 days ago)
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare
Related branches
- Colin Watson: Approve
- Ubuntu CI managed package branches: Pending requested
-
Diff: 485 lines (+269/-70)11 files modifiedREADME (+1/-0)
click/build.py (+10/-22)
click/framework.py (+138/-0)
click/install.py (+8/-28)
click/paths.py.in (+1/-0)
click/tests/helpers.py (+29/-0)
click/tests/test_build.py (+39/-5)
click/tests/test_install.py (+2/-4)
debian/changelog (+8/-0)
doc/file-format.rst (+1/-2)
doc/index.rst (+32/-9)
tags: | removed: need-duplicate-check |
Changed in click (Ubuntu): | |
importance: | Undecided → Medium |
Changed in click (Ubuntu): | |
status: | New → Fix Committed |
assignee: | nobody → Colin Watson (cjwatson) |
This bug was fixed in the package click - 0.4.11
---------------
click (0.4.11) saucy; urgency=low
* Drop --force- missing- framework from PackageKit plugin now that share/click/ frameworks/ ubuntu- sdk-13. 10.framework is in sdk-libs.
/usr/
ubuntu-
* Show a neater error message when a package's framework is not installed
(LP: #1236671).
* Show a neater error message when building a package whose manifest file
cannot be parsed (LP: #1236669).
* Show a neater error message when running "click install" with
insufficient privileges (LP: #1236673).
-- Colin Watson <email address hidden> Fri, 11 Oct 2013 12:07:06 +0100