Well i found the answer...
just open the terminal(ctrl+Alt+t) and type:
sudo gedit /etc/apt/apt.conf
enter your password if required.
Now this will open the apt.conf
file in /etc/apt
folder, here you can see your proxy
and port settings. in my case it is:
Acquire::http::proxy "http://<a>172.18.0.1:3128/</a>";
Acquire::https::proxy "https://<a>172.18.0.1:3128/</a>";
Acquire::ftp::proxy "ftp://<a>172.18.0.1:3128/</a>/";
Acquire::socks::proxy "socks://<a>172.18.0.1:3128/</a>";
now you have to just edit it by inserting your username and password for the network
like this:
Acquire::http::proxy "http://username:[email protected]:port/";
Acquire::https::proxy "https://username:[email protected]:port/";
Acquire::ftp::proxy "ftp://username:[email protected]:port/";
Acquire::socks::proxy "socks://username:[email protected]:port/";
now save this....and you are done!!!
HappyUbuntu