Synaptec connection problem
Florian Diesch
diesch at spamfence.net
Wed Jun 14 20:32:01 UTC 2006
Sauli <ulist at gs1.ubuntuforums.org> wrote:
> Florian Diesch Wrote:
>> Sauli <ulist (AT) gs1 (DOT) ubuntuforums.org> wrote:
>> > I have the same problem of getting the 'Could not connect to
>> > localhost:80 (127.0.0.1). - connect (111 Connection refused)' error
>> > messages.
>> > I have checked from the Settings -> Preferences, Network Tab that
>> > Direct connection to Internet is selected instead of using a Proxy.
>> Open a new terminal window and type
>> env | grep proxy
>> It should not give you something like
>> http_proxy=http://localhost:8080
>> otherwise the proxy settings don't work for some reasons.
>> If it doesn't show a proxy try to start synaptic from this terminal
>> window. Does it work now?
>> Thanks Florian for the advice. This is what I get:
>> sauli at Subuntu:~$ env | grep proxy
>
>> http_proxy=http://localhost:8080/
>
>> no_proxy=localhost,127.0.0.0/8,*.local
>
>>
>
>> I have no idea how the http_proxy environment variable got set.
>
>> If that is the root cause of the problem, can you tell how to
>> circumvent it in order to get the apt-get and synaptic work, and
>> moreover how to find how it got set in the first place?
A workaround is to execute
unset http_proxy
before executing apt-get or synaptic from a terminal or putting this at the
end of your ~/.bashrc (or a equivalent if you're using another login shell)
> And what did I actually do. I thought you meant terminal emulator like
> Gnome Terminal 2.14.1. After a second thought I realised you meant a
> new TTY session like e.g. by pressing Ctrl-Alt-F1. I did that and now,
> the env | grep proxy gave no output. I could also do the apt-get update
> in that session.
I meant the gnome terminal but the next thing to try would have been a
tty :-)
> I also still wander what is wrong in my graphical UI environment. I
> would prefer using the synaptic graphical front end. Any ideas what I
> could try next ?
Did you try to log out and log in again (check the proxy settings after
log in)?
Create a new user. Has he http_proxy set?
Some kind of last resort:
Does
grep -R /etc
or
grep -R $HOME
find anything (the latter one will take much time)?
Florian
--
<http://www.florian-diesch.de/>
More information about the ubuntu-users
mailing list