OMG! Ubuntu! shows you how to add repositories to Ubuntu from behind a firewall
Having trouble updating Ubuntu at University? MadnessRed has the solution in this guest post. A lot of companies and universities block all unknown ports. This usually includes the port used to add repositories. This can be worked around by getting the key over port 80How to add repositories to Ubuntu from behind a firewall