/usr/bin/add-apt-repository:OSError:/usr/bin/add-apt-repository@168:add_source_from_shortcut:/usr/bin/add-apt-repository@172
Bug #1687122 reported by
errors.ubuntu.com bug bridge
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
Medium
|
Dimitri John Ledkov | ||
Artful |
Won't Fix
|
Medium
|
Dimitri John Ledkov |
Bug Description
The Ubuntu Error Tracker has been receiving reports about a problem regarding software-
If you do not have access to the Ubuntu Error Tracker you can request it at http://
Changed in software-properties (Ubuntu): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
importance: | Undecided → Medium |
tags: | added: rls-aa-incoming |
Changed in software-properties (Ubuntu): | |
milestone: | none → ubuntu-17.06 |
tags: | removed: rls-aa-incoming |
Changed in software-properties (Ubuntu Artful): | |
milestone: | ubuntu-17.06 → ubuntu-17.08 |
tags: | added: id-597a82f68d90d6cef4a9017f |
Changed in software-properties (Ubuntu Artful): | |
status: | New → Won't Fix |
Changed in software-properties (Ubuntu): | |
milestone: | ubuntu-17.08 → none |
status: | New → Fix Released |
To post a comment you must log in.
This is a crash that recently started appearing in the Error Tracker the Traceback contains the following:
Traceback (most recent call last): add-apt- repository" , line 168, in <module> source_ from_shortcut( shortcut, options. enable_ source) : python3/ dist-packages/ softwarepropert ies/SoftwarePro perties. py", line 777, in add_source_ from_shortcut ShortcutExcepti on(msg) ies.shortcuts. ShortcutExcepti on: Failed to add key.
File "/usr/bin/
if not sp.add_
File "/usr/lib/
raise shortcuts.
softwarepropert
Looking at the code added in the SRU to xenial (https:/ /launchpadlibra rian.net/ 309920080/ software- properties_ 0.96.24. 7_0.96. 24.7.1. diff.gz) we can see the following:
@@ -753,6 +769,13 @@
worker. join(30) ShortcutExcepti on("Error: retrieving gpg key timed out.") ShortcutExcepti on(msg) update:
if worker:
# wait for GPG key to be downloaded
+ if worker.isAlive():
+ # thread timed out.
+ raise shortcuts.
+ result, msg = self.myqueue.get()
+ if not result:
+ raise shortcuts.
+
if self.options and self.options.
import apt
cache = apt.Cache()
It looks to me like this ShortcutException is raised when for whatever reason the client application fails to retrieve the key. I don't think there is anything we can do about this and as such don't think it should be reported to the Error Tracker at all.
The apport package hook for software-properties could filter out Tracebacks with this error.