How Do I Reset Proxy in Terminal to Automatic If Not Connected via Proxy
I Tried to Reset Proxy of the Terminal by Some Commands but It Doesn't Happen and Automatically Switches Back to This Proxy 172.16.0.16 (Which Apparently Was...
I tried to reset proxy of the terminal by some commands but it doesn't happen and automatically switches back to this proxy 172.16.0.16 (which apparently was my college proxy).
I checked in my system settings.I don't understand why this is recurring.
Please be comprehensive.Also I further would like to know how to bypass proxy server since I couldn't access any of the ubuntu repositories as they were blocked in my college's proxy settings as is Ubuntu's homepage.
Thanks for your time.
For
sudo ls /etc/apt/apt.conf.d/
It displays a different set of options where proxy is not listed.I am on 12.10,if this should help any.I put a snap of the terminal after the above command has been entered.
3 Answers
Ubuntu 12.10 will set proxy settings both in
/etc/environmentand/etc/apt/apt.confwhen you set proxy from GUI (Network Settings).
Check your apt settings
grep -Hnri proxy /etc/apt/
will list out the current proxy settings used by apt in the following format.
filename:linenumber:proxy-setting
If you see any output, it corresponds to apt's proxy settings. They will have to be cleared.
sudoedit <filename>
will allow you to edit the corresponding configuration file. Copy the existing contents somewhere in case you need to restore them, and delete or comment the lines that look like
Acquire::<protocol>::proxy=<your proxy here>
(Add // at the beginning of a line to comment that line. Commented lines are ignored.)
Save the files, close the text editor, and retry. If the problem persists,