[Bug 1704508] Re: add-apt-repository traceback when hitting ctrl-c

Ubuntu Foundations Team Bug Bot 1704508 at bugs.launchpad.net
Sun Sep 3 16:20:06 UTC 2017


The attachment "Silent the exception raised when user press ctrl-c"
seems to be a patch.  If it isn't, please remove the "patch" flag from
the attachment, remove the "patch" tag, and if you are a member of the
~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: patch

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

Title:
  add-apt-repository traceback when hitting ctrl-c

Status in software-properties package in Ubuntu:
  Confirmed

Bug description:
  add-apt-repository says to hit ctrl-c to cancel adding a PPA.  Then it
  tracebacks when you do:

  ubuntu at bysen:~$ sudo add-apt-repository ppa:maas/next
   This PPA holds new upstream development releases, usually development releases. Currently, it is holding the 2.2 series.
   More info: https://launchpad.net/~maas/+archive/ubuntu/next
  Press [ENTER] to continue or ctrl-c to cancel adding it
  ^CTraceback (most recent call last):
    File "/usr/bin/add-apt-repository", line 143, in <module>
      sys.stdin.readline()
  KeyboardInterrupt

  
  I understand why the trace is generated, but this is ugly (users should never see tracebacks for known conditions, IMO).  

  The KeyboardInterrupt exception should be handled properly like any
  other exception.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: software-properties-common 0.96.20.7
  ProcVersionSignature: User Name 4.4.0-83.106-generic 4.4.70
  Uname: Linux 4.4.0-83-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.9
  Architecture: amd64
  Date: Fri Jul 14 23:17:57 2017
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: software-properties
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1704508/+subscriptions



More information about the foundations-bugs mailing list