我正在尝试在 Ubuntu 中安装 SVN。我的网络代理有密码。在apt.conf当我这样做:
Acquire::http::Proxy "http://username:pass@word@proxy_server:proxy_port";
Run Code Online (Sandbox Code Playgroud)
它不工作。我的问题是如何在 pass@word 中转义 @?我尝试了很多组合,但它不起作用。
您需要转义第一个@ With\或 use 使用其十六进制 ASCII 值%40
尝试:
Acquire::http::Proxy "http://username:pass\@word@proxy_server:proxy_port";
Run Code Online (Sandbox Code Playgroud)
或者
Acquire::http::Proxy "http://username:pass%40word@proxy_server:proxy_port";
Run Code Online (Sandbox Code Playgroud)