How can I force bzr update to use only SSH and not HTTP requests?

Asked by Nicholas Leskiw

I'm behind a broken / non-standard proxy firewall to which I don't have control. I'm experiencing the same error reported in https://bugs.launchpad.net/bzr/+bug/349269 where downloading the .pack file over HTTP fails:

2011-01-05 11:36:55 user@host:/opt/graphite/bzr/trunk
bzr update
bzr: ERROR: Invalid http response for http://bazaar.launchpad.net/~graphite-dev/graphite/main/.bzr/repository/packs/73c7ddec680f1946897e48a6925dcfcb.pack: Expected a boundary (.=/UKenzLaJy5DGDrHe() line, got ''
2011-01-05 11:43:53 user@host:/opt/graphite/bzr/trunk
bzr lp-login
nleskiw
2011-01-05 11:44:01 user@host:/opt/graphite/bzr/trunk
bzr update
bzr: ERROR: Invalid http response for http://bazaar.launchpad.net/~graphite-dev/graphite/main/.bzr/repository/packs/73c7ddec680f1946897e48a6925dcfcb.pack: Expected a boundary (YzDdDNqvmP-xNI.:.G:Z) line, got ''

I can SSH out. I've run bzr lp-login (and it shows my username) and I have my public key setup properly here. Can anyone suggest a workaround to this issue?

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Martin Pool (mbp) said :
#1

It looks like your tree has a branch location set to http rather than
ssh. You can look at/edit .bzr/branch.conf, or you can simply do

  bzr switch lp:<whatever>

which should reset it to using ssh.
--
Martin

Can you help with this problem?

Provide an answer of your own, or ask Nicholas Leskiw for more information if necessary.

To post a message you must log in.