Remove traceback from error messages on the console

Bug #661751 reported by Olof Kindgren
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Aptdaemon
Triaged
Low
Unassigned

Bug Description

If I ssh into a computer and uses aptdcon to install a package, aptdaemon fails with

olof@ichiban:~$ aptdcon --install meld
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/aptdaemon/defer.py", line 390, in _next
    self.result = callback(self.result, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/aptdaemon/client.py", line 966, in on_error
    error_handler(error)
  File "/usr/lib/python2.6/dist-packages/aptdaemon/errors.py", line 147, in <lambda>
    lambda err: error_handler(get_native_exception(err))
  File "/usr/lib/python2.6/dist-packages/aptdaemon/console.py", line 363, in _on_exception
    sys.exit(msg)
SystemExit: ERROR: You are not allowed to perform this action.

('system-bus-name', {'name': ':1.60'}): org.debian.apt.install-or-remove-packages

If this is a problem in aptdaemon, then it is a bug, and if this is because policykit isn't designed to work over remote connections, then this is a feature request that I would like to have a better error message

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

There isn't any PolicyKit console client. So you need to run aptdcon using sudo over ssh. But indeed the message could be improved.

summary: - Using aptdcon over SSH gives unclear error message
+ Remove traceback from error messages on the console
Changed in aptdaemon:
importance: Undecided → Low
status: New → Triaged
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.