add-apt-repository should have option to use port 80

Bug #716438 reported by Niall Gallagher
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

keyserver.ubuntu.com now listens on port 80 as well as port 11371 - see https://bugs.launchpad.net/launchpad/+bug/524416

However by default, the add-apt-repository command still uses port 11371, which does not work behind a firewall, and it does not provide an option to use port 80 instead.

This bug is to request that add-apt-repository get an option to use port 80 (e.g. command line switch), or to use port 80 by default.

There is a similar suggestion mentioned here, but it has not actually been filed as a bug: https://answers.launchpad.net/ubuntu-website/+question/79193

FYI for the meantime I found instructions for modifying add-apt-repository to use port 80 here: http://www.omgubuntu.co.uk/2011/01/how-to-add-repositories-to-ubuntu-from-behind-a-firewall/

Revision history for this message
kurt belgrave (trinikrono) wrote :

Assigning to software-properties
Can you look at
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/516032
especially comment #9 and see if this works for you

affects: ubuntu → software-properties (Ubuntu)
Revision history for this message
Brian Murray (brian-murray) wrote :

add-apt-repository uses port 80, in Natty, for PPAs. If this fixes your particular use case please set this bug's status to Fix Released. Thanks for helping out!

Revision history for this message
Niall Gallagher (npgall) wrote :

@Kurt the comment #9 is the same workaround that I linked to above actually i.e. how to modify the command to use port 80. It does work thanks, i'm using that in the meantime.

@Brian that's good news, if so then this issue will be solved in Natty. Sounds like the problem has already been addressed! Changing to Fix Released.

Changed in software-properties (Ubuntu):
status: New → Fix Released
Revision history for this message
Jeremy Yoder (jyoder) wrote :

Could this be backported to Lucid, or perhaps a simple version of it?

This should be enough, applied to python-software-properties version 0.75.10.1:
--- /usr/share/pyshared/softwareproperties/ppa.py.orig 2010-04-14 15:05:59.000000000 -0400
+++ /usr/share/pyshared/softwareproperties/ppa.py 2011-06-27 17:14:13.027023115 -0400
@@ -81,7 +81,7 @@
             # FIXME: this needs to go - elmo says the keyserver will not handle
             # the load
             res = subprocess.call(
- ["apt-key", "adv", "--keyserver", "keyserver.ubuntu.com",
+ ["apt-key", "adv", "--keyserver", "hkp://keyserver.ubuntu.com:80",
                  "--recv", signing_key_fingerprint[0]])
             return (res == 0)
         except URLError, e:

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.