Manually removing packages without removing user symlinks causes chaos

Bug #1225023 reported by Colin Watson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
click (Ubuntu)
Expired
Medium
Unassigned

Bug Description

If somebody is incautiously advised to remove /opt/click.ubuntu.com/* as part of trying to figure out a problem with the click scope, then "click list" gets very confused because the symlinks under /opt/click.ubuntu.com/.click/ are still there but are now dangling.

phablet@ubuntu-phablet:/$ click list --manifest
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/list.py", line 59, in run
    for package, version, path, writeable in list_packages(options):
  File "/usr/lib/python3/dist-packages/click/commands/list.py", line 40, in list_packages
    package, version, registry.path(package),
  File "/usr/lib/python3/dist-packages/click/user.py", line 297, in path
    (package, self.user))
KeyError: 'com.ubuntu.developer.dgalg.wordchain does not exist in any database for user phablet'

This is not really a valid thing to do, especially now that click supports proper package removal, but it would be nice to fail less badly.

Colin Watson (cjwatson)
Changed in click (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Michael Vogt (mvo) wrote :

This appears to be no longer a issue, if I follow the steps outlined above I get:
$ click list --manifest

** (process:19378): WARNING **: user.vala:724: com.ubuntu.calculator 1.3.237 does not exist in any database
[]

which sounds entirely reasonable to me. Please let me know if there is more to do or if I can close this bug.

Changed in click (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for click (Ubuntu) because there has been no activity for 60 days.]

Changed in click (Ubuntu):
status: Incomplete → Expired
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.