How to run apt-get update/install from behind a proxy

view story

http://ubuntuforums.org – Hi I wrote this script to use apt-get behind a proxy , My password must change everymonth due to company policy's , This makes it easier to update, ( you can mayby use this script with cron to force a user to update the password on a specific date Code: #!/bin/bash echo "New Username:" read usr echo "New Password:" read -s pass echo "Proxy name or address:" read name echo "Proxy port:" read port http='Acquire::http::Proxy "http://'"${usr}"':'"${pass}"'@'"${name}"':'"${port}"'/";' ftp='Acquire: (Hardware)