Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I am trying to install SVN in Ubuntu. My network proxy has a password. In apt.conf when i do:

Acquire::http::Proxy "http://username:pass@word@proxy_server:proxy_port";

It's not working . My question is how can I escape @ in pass@word? I tried many combinations but it doesn't work.

share|improve this question

marked as duplicate by gertvdijk, Luis Alvarado Apr 3 '13 at 13:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Try using single quotes around it. –  Mitch Apr 3 '13 at 11:25
add comment

1 Answer

up vote 1 down vote accepted

You need escape the first @ With \ or use use its Hex ASCII value %40

Try:

Acquire::http::Proxy "http://username:pass\@word@proxy_server:proxy_port";

or

Acquire::http::Proxy "http://username:pass%40word@proxy_server:proxy_port";
share|improve this answer
    
Thanks it worked –  Gaurav Saxena Apr 3 '13 at 13:08
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.