It appears that disabling proxy settings is buggy on ubuntu (till atleast ubuntu 14.04). Why i say this is because when we disable proxy through GUI like this:
we would think that we have completely removed proxy settings from the system. But it does not appear to be so because in most cases apt-get still uses the proxy settings to fetch repositories and this is quite a trouble. There is a workaround if you do not want to clear the proxy settings from apt-get , and that is:
1) Download the package straight from the wesite ( you can reach there by simply naming the package name on google )
2) Open terminal, cd to that directory and run sudo dpkg -i <package_name>
I have tried the above method and it works good, but I don't prefer it. I like apt-get doing all this work for me (:P).
So, I searched a lot for solutions to my problem and implemented the solutions proposed and none seemed to work except this:
P.S: If your problem is just the opposite, i.e apt-get does not use the global network proxy settings you provided, see the solution given here .
we would think that we have completely removed proxy settings from the system. But it does not appear to be so because in most cases apt-get still uses the proxy settings to fetch repositories and this is quite a trouble. There is a workaround if you do not want to clear the proxy settings from apt-get , and that is:
1) Download the package straight from the wesite ( you can reach there by simply naming the package name on google )
2) Open terminal, cd to that directory and run sudo dpkg -i <package_name>
I have tried the above method and it works good, but I don't prefer it. I like apt-get doing all this work for me (:P).
So, I searched a lot for solutions to my problem and implemented the solutions proposed and none seemed to work except this:
1) $ sudo gedit /etc/apt/apt.conf (this will fire up gedit)
2) Clear the file and add the line acquire::http::proxy "false";
3) Save the file and exit.
Now, even apt-get will understand that there is no proxy between you and the internet and will connect directly.
Cheers!!
P.S: If your problem is just the opposite, i.e apt-get does not use the global network proxy settings you provided, see the solution given here .
No comments:
Post a Comment