Permission error while removing preinstalled click before installing any other click

Bug #1233280 reported by Loïc Minier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
click (Ubuntu)
Fix Released
High
Colin Watson

Bug Description

Hi,

Removing dropping letter on freshly written image (70), I get this traceback in a crash file, and a pkcon error reported in the scope:
 Traceback (most recent call last):
   File "/usr/bin/click", line 83, in <module>
     sys.exit(main())
   File "/usr/bin/click", line 79, in main
     return mod.run(args)
   File "/usr/lib/python3/dist-packages/click/commands/unregister.py", line 57,
in run
     registry.remove(package)
   File "/usr/lib/python3/dist-packages/click/user.py", line 295, in remove
     self._ensure_db()
   File "/usr/lib/python3/dist-packages/click/user.py", line 157, in _ensure_db
     self._users._ensure_db()
   File "/usr/lib/python3/dist-packages/click/user.py", line 89, in _ensure_db
     os.mkdir(path)
 PermissionError: [Errno 13] Permission denied: '/opt/click.ubuntu.com/.click'

ls -l /opt/click.ubuntu.com/ -a
drwxr-xr-x 2 clickpkg clickpkg 4096 Sep 29 07:57 .
drwxr-xr-x 3 root root 4096 Sep 30 16:38 ..

Cheers,

Related branches

Colin Watson (cjwatson)
Changed in click (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → Colin Watson (cjwatson)
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package click - 0.4.10

---------------
click (0.4.10) saucy; urgency=low

  * When removing packages, only drop privileges after ensuring the
    existence of the database directory (LP: #1233280).
 -- Colin Watson <email address hidden> Mon, 30 Sep 2013 18:12:14 +0100

Changed in click (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.