add-apt-repository sometimes crashes when SIGINT (Ctrl+C) is sent: crashed with ImportError in get_ppa_info_from_lp(): No module named 'pycurl'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
It appears add-apt-repository will sometimes crash instead of properly terminating, when SIGINT is sent (e.g., by Ctrl_C being pressed).
This crash happened when I entered a "sudo add-apt-repository ..." command with a typo in the name of the PPA I was adding. This crash was probably not triggered even partially by special syntax--the typo was just a misspelling.
The expected behavior would be for add-apt-repository not to crash when Ctrl+C is pressed (or when SIGINT is otherwise sent). Whether or not any substantive cleanup is performed when Ctrl+C is pressed, it should be considered a bug for an actual crash to occur in response to it. The primary negative impact of this bug on users is probably that, on most stable systems, Apport/Whoopsie runs when a crash occurs. But even if the crash were silent, it is still a bug.
With that said, this is unlikely to be a serious bug. Its impact is minimal, it does not ever prevent add-apt-repository from being used effectively, and add-apt-repository does terminate when Ctrl+C is given (it just crashes sometimes while doing so). Furthermore, add-apt-repository probably only crashes some of the time--rather than every time--that SIGINT is sent.
ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: software-
ProcVersionSign
Uname: Linux 3.8.0-24-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.1
Architecture: amd64
Date: Sat Jun 1 02:12:39 2013
ExecutablePath: /usr/bin/
InstallationDate: Installed on 2013-05-29 (2 days ago)
InstallationMedia: Lubuntu 13.04 "Raring Ringtail" - Release amd64 (20130423.1)
InterpreterPath: /usr/bin/python3.3
MarkForUpload: True
PackageArchitec
ProcCmdline: /usr/bin/python3 /usr/bin/
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/
SourcePackage: software-properties
Title: add-apt-repository crashed with ImportError in get_ppa_
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
tags: | removed: need-duplicate-check |
Changed in software-properties (Ubuntu): | |
importance: | Undecided → Medium |
Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug #1157900, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.