Traceback when attempting to uninstall a package that isn't installed

Bug #1401652 reported by Timothy R. Chavez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Wishlist
Michael Vogt

Bug Description

Attempting to uninstall a snappy package that isn't presently installed results in a traceback rather than a friendly error statement.

ubuntu@localhost:~$ snappy versions
Part Tag Installed Available Fingerprint Active
ubuntu-core edge 141 - 7f068cb4fa876c *
ubuntu@localhost:~$ snappy uninstall docker
Traceback (most recent call last):
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/unregister.py", line 55, in run
    old_version = registry.get_version(package)
GLib.Error: click_user_error-quark: docker does not exist in any database for user @all (7)
ubuntu@localhost:~$

Revision history for this message
Alexander Sack (asac) wrote :

mvo: I think we should fold this in a more general "error cases should report cleanly for users what is going on" task...

Changed in snappy-ubuntu:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Michael Vogt (mvo)
tags: added: snappy-xp-console
Changed in snappy-ubuntu:
importance: High → Wishlist
Revision history for this message
Alexander Sack (asac) wrote :

tagged this as snappy-xp-console to ensure we feed this into our planning for next iteration console experience.

Revision history for this message
Michael Vogt (mvo) wrote :

$ sudo snappy remove foo
Removing foo
snappy package not found

Changed in snappy-ubuntu:
status: Confirmed → Fix Released
Michael Terry (mterry)
affects: snappy-ubuntu → snappy
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.