Link to home
Start Free TrialLog in
Avatar of ITHelper80
ITHelper80

asked on

Apt-get proxy problems

I am using Ubuntu (Dapper Drake) but with the KDE desktop, when I first installed the system I was behind a proxy server and adjusted the settings accordingly. However I am no longer behind a proxy so I removed the settings and now when I try to run apt-get I keep getting an error message stating it cannot connect to the proxy server. Does anyone have an idea why Ubuntu wont release my old proxy settings?
Avatar of Heem14
Heem14

look in /etc/apt/apt.conf

I don't have a machine with apt installed here, so I can't look and specifically give you which directive to edit, but I'll bet you'll find it in there.
Avatar of ITHelper80

ASKER

I checked in the apt.conf but I couldnt find anything in reference to my old proxy settings.
ASKER CERTIFIED SOLUTION
Avatar of nedvis
nedvis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
"I checked in the apt.conf but I couldnt find anything in reference to my old proxy settings."
there's the line in  /etc/apt/apt.conf file that shoul read :
Acquire::http::Proxy "false";

in order for apt-get to skip checking for proxy when trying to connect to repositories sources.

nedvis

You might also check your environment variables. If you are using bash then type 'export' at the shell prompt. apt-get will use http_proxy= and ftp_proxy= variables over any of your /etc/apt/ settings. It will probably be set in your ~/.bashrc if you find it. To temporarily remove them, you can type 'export -n http_proxy ftp_proxy'. For more information you can find a complete manual by typing 'man apt.conf'.
Ok I got it to work, when I originally installed Ubuntu it of course came with gnome so I configured it to work with the proxy so I could download Kubuntu-desktop, once I had that install I configured the proxy for KDE, when I got home I only removed the proxy settings for KDE I didn’t realize I had to also remove the proxy settings in gnome. Once I did that everything worked fine. Thanks for all the suggestions!
What you acctually did is you've configurred your network ( and proxy settings ) SYSTEMWIDE. True , there are some more detailed network settings you can tweak in  Konqueror and/or  KDE Control Center's network module  but cganhes are immediately applied -systemwide.

Glad to hear you managed to get back to network.

nedvis