If you found the solution to your problem, or not - please come back and tell us. If it worked, mark the thread as solved, if it didn't ask for further help. A thankyou never hurts, too! A question is the beginning of knowledge.
When you use some proxy settings during installation (Ubuntu 10.04 server), these settings are saved in:
/etc/apt/apt.conf:
Acquire::http::Proxy "http://x.x.x.x:port";
To setup a (different) proxy for apt-get, you should change this file also.
Does you username have a "." in it? you will need to put a backslash in front of that aswell...
Having been through this whole proxy setting business myself just recently, I thought it may be helpful to post a complete and definitive list of the places you should check for proxy server settings. Some of the files listed here are updated when you set your proxy server through the Ubuntu System > Preferences > Network Proxy dialog and choose yes to the question on whether you want to Apply these settings to the entire system.
# /etc/environment
# /etc/bash.bashrc
# /etc/profile
# /etc/apt/apt.conf
# ~/bashrc
# ~/profile
# ~/bash_profile
My Recommendation, if you do not have a user-name and password associated with your proxy access, is to set the proxy server using the Ubuntu System > Preferences > Network Proxy dialog. When applying these settings, ensure you choose to apply them to the entire system.
If you do have a user-name and password to enter, then I would add the server settings to the /etc/environment and /etc/apt/apt.conf files. This will set your proxy server credentials for all sign-in accounts on your Ububtu desktop system.
Hi all,
thanks for the interesting post, I've lost hours myself trying to figure out how to do apt behind a proxy.
Now I have another problem, I have drupal installed and it is unable to connect to the outside. How do we set proxy variables for web applications in php and perl?
Denis
Hello,
May I please ask you what about Lubuntu distribution and Google Chrome? Lubuntu apparently comes with no global proxy setting, and Chrome Preferences can not locate the environment configuration.
In my case, Lubuntu is installed on a Windows host running Virtualbox.
Thanks.
Have just found solution at:
http://ubuntuforums.org/showthread.p...8#post11636648
ok I am new to ubuntu and I am installing it on my old pc. I was wondering what is the port on the back of my HTTP proxy. I am sorry if this sounds like a stupid question.
Bookmarks