using a proxy server with apt-get

apt-get honors the environment variables http_proxy, and ftp_proxy. type these commands on the command line, or put in a login script, e.g. .bashrc

export http_proxy=http://username:password@proxyserver.net:port/
export ftp_proxy=http://username:password@proxyserver.netport/