create apt.conf file at etc/apt/
and then
write out it at apt.conf file
Acquire::http::Proxy "http://username:proxy@IP:port";

ok?