[Bug 1232066] [NEW] click unregister on preinstalled app causes exception

Loïc Minier lool at dooz.org
Fri Sep 27 14:58:58 UTC 2013


Public bug reported:

Hi,

when tring to use unity-scope-click to remove a preinstalled package (dropping-letters) I get a pkcon error in the scope; there's a click crash file with a traceback:
PythonArgs: ['/usr/bin/click', 'unregister', '--user=phablet', 'com.ubuntu.dropp
ing-letters', '0.1.2.2']
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/click", line 84, in <module>
     sys.exit(main())
   File "/usr/bin/click", line 79, in main
     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
     osextras.symlink_force(HIDDEN_VERSION, path)
   File "/usr/lib/python3/dist-packages/click/osextras.py", line 77, in symlink_
force
     os.symlink(source, link_name)
 FileNotFoundError: [Errno 2] No such file or directory: '/opt/click.ubuntu.com/
.click/users/phablet/com.ubuntu.dropping-letters'

Indeed, /opt/click.u.c is empty and .click doesn't exist there.

Cheers,

** Affects: click (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1232066

Title:
  click unregister on preinstalled app causes exception

Status in “click” package in Ubuntu:
  New

Bug description:
  Hi,

  when tring to use unity-scope-click to remove a preinstalled package (dropping-letters) I get a pkcon error in the scope; there's a click crash file with a traceback:
  PythonArgs: ['/usr/bin/click', 'unregister', '--user=phablet', 'com.ubuntu.dropp
  ing-letters', '0.1.2.2']
  Traceback:
   Traceback (most recent call last):
     File "/usr/bin/click", line 84, in <module>
       sys.exit(main())
     File "/usr/bin/click", line 79, in main
       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
       osextras.symlink_force(HIDDEN_VERSION, path)
     File "/usr/lib/python3/dist-packages/click/osextras.py", line 77, in symlink_
  force
       os.symlink(source, link_name)
   FileNotFoundError: [Errno 2] No such file or directory: '/opt/click.ubuntu.com/
  .click/users/phablet/com.ubuntu.dropping-letters'

  Indeed, /opt/click.u.c is empty and .click doesn't exist there.

  Cheers,

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click/+bug/1232066/+subscriptions



More information about the foundations-bugs mailing list