Installed Backtrack 5 R3 on my computer under VirtualBox and wanted to update Backtrack however I am behind a corporate proxy. Modifying the /root/.subversion/servers didn’t seem to help so I did the following:

export http_proxy=http://10.0.0.1:8080
export https_proxy=$http_proxy
export ftp_proxy=$http_proxy
export rsync_proxy=$http_proxy
export no_proxy=”localhost,127.0.0.1″

Once I did that I was able to run the apt-get update command with success.

I will state the obvious but change 10.0.0.1:8080 to your proxy and proxy port number to suit.

Hope this helps

Cheers
Stewy

UPDATE

That is for a one off until you restart your computer. doh…

It looks like that APT doesn’t use the global proxy settings, so I did the following:

Create an apt.conf file under /etc/apt/
Enter in the following:

Acquire::Http::Proxy “http://10.0.0.1:8080/”;
Acquire::Https::Proxy “https://10.0.0.1:8080/”;

Save the file, reboot and then run the apt-get update command which should work…

Cheers
Stewy

Leave a Reply

Post Navigation