Adept "Could not connect to localhost:4001 (127.0.0.1).

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
LBG
On the way to fame!
On the way to fame!
Posts: 44
Joined: 24 Jan 2009, 17:00
15

Adept "Could not connect to localhost:4001 (127.0.0.1).

Post by LBG »

I know what is wrong: I installed anon-proxy and it farked everything up. Now Adept is giving me this.
I apt-get --purge remove anon-proxy already, but how in the heck do I change the localhost? It shouldn't be 4001!!!! I've been on the Deb usr forums and found the answer, but I don't really understand where to find the error and how to fix it... Help!!!

I cannot use Synaptic, Adept or apt-get, fyi.

By fixing the localhost for Adept, will this automatically fix it for the others?

Thanks, people. Happy Tuesday.

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm, can you post the content of /etc/hosts ?
:-k

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Post by computathug »

<b>To get rid and start again!</b>

Because there was an error downloading anon-proxy the network settings will have changed. You will have to completely remove the package not just purge it (off the top of my head i think its purge -r) and then open the network folder "etc/network/interfaces" and change the connection from "127.0.0.1" to "direct connect".

Once you have done this run apt-get install again and it should work :wink:

<b>To see if its an error with the sources.list try!</b>

If you have edited the sources list to something like

Code: Select all

http://127.0.0.1:4001/debian
make sure you have put 'deb' before it too

User avatar
LBG
On the way to fame!
On the way to fame!
Posts: 44
Joined: 24 Jan 2009, 17:00
15

Post by LBG »

bad_brain wrote:hm, can you post the content of /etc/hosts ?
:-k

Code: Select all

127.0.0.1       localhost
127.0.1.1       LBGs-box

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
"/etc/hosts" [readonly] 10 lines, 247 characters
Thanks
(edited for white spaces)
Last edited by LBG on 08 Apr 2009, 06:30, edited 1 time in total.

User avatar
LBG
On the way to fame!
On the way to fame!
Posts: 44
Joined: 24 Jan 2009, 17:00
15

Post by LBG »

computathug wrote:<b>To get rid and start again!</b>

Because there was an error downloading anon-proxy the network settings will have changed. You will have to completely remove the package not just purge it (off the top of my head i think its purge -r) and then open the network folder "etc/network/interfaces" and change the connection from "127.0.0.1" to "direct connect".

Not purge -r. I cd'ed to where anon-proxy was and removed it. I never did this before b/c I thought I had gotten rid of it already! I am now assuming purge isn't the same as remove...

computathug wrote: Once you have done this run apt-get install again and it should work :wink:
It did! Once I rm'ed it, it was fine. I feel a bit blond now... But in my defense, I really thought I removed/purged whatevered anon-proxy...


<b>To see if its an error with the sources.list try!</b>

If you have edited the sources list to something like

Code: Select all

http://127.0.0.1:4001/debian
make sure you have put 'deb' before it too[/quote]

It had an error, but I vi'ed sources.list and removed the erroneous entry. I just couldn't see if it worked, as anon-proxy was still hanging around.

Thanks, both of you!!!
mwah!

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

check the content of /etc/enviroment , if you find entries like:

Code: Select all

HTTP_PROXY=http://localhost:4001 # +ANON_MARK+
http_proxy=http://localhost:4001 # +ANON_MARK+ 
comment them out, don't forget to reboot afterwards... :wink:

User avatar
LBG
On the way to fame!
On the way to fame!
Posts: 44
Joined: 24 Jan 2009, 17:00
15

Post by LBG »

bad_brain wrote:check the content of /etc/enviroment , if you find entries like:

Code: Select all

HTTP_PROXY=http://localhost:4001 # +ANON_MARK+
http_proxy=http://localhost:4001 # +ANON_MARK+ 
comment them out, don't forget to reboot afterwards... :wink:
Ok, I opened it in vi (is this the same as vim?) and it's only this:

Code: Select all

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
Is this usual?
For laughing:
I forgot how to get out of vi, and went through 'esc', 'enter' and finally 'q'. When it said "recording" I panicked and X'ed out :)
LBGenius, strikes again!

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hmm...ok, is there an output for:

Code: Select all

echo $HTTP_PROXY
echo $http_proxy
?

if yes do:

Code: Select all

export HTTP_PROXY=
export http_proxy=
btw, to exit the "insert" mode in vi press <Esc>, then : to enter the command mode followed by the command. "q" exits vi, "wq" saves the file and exits, "q!" exits without saving changes made.... :wink:

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Post by computathug »

I have installed anon-proxy to see if i can help more too.

I have everything installed, checked the browser settings, internet running fine.

After the command b_b has shown

Code: Select all

echo $HTTP_PROXY 
I now get

Code: Select all

http://localhost:4001
I now think something must be run for the first time for if we do

Code: Select all

anon-proxy --help
for the options and try one of the commands i am getting

Code: Select all

critical] Error: Cannot parse configuration file!
I have not figured the rest out but will look more later. If you beat me to it LBG then please post back :)
The devil can cite Scripture for his purpose.
-- William Shakespeare, "The Merchant of Venice"
https://tshirt-memes.com

User avatar
LBG
On the way to fame!
On the way to fame!
Posts: 44
Joined: 24 Jan 2009, 17:00
15

Post by LBG »

bad_brain wrote:hmm...ok, is there an output for:

Code: Select all

echo $HTTP_PROXY
echo $http_proxy
?



btw, to exit the "insert" mode in vi press <Esc>, then : to enter the command mode followed by the command. "q" exits vi, "wq" saves the file and exits, "q!" exits without saving changes made.... :wink:
Nope, there was nothing for either. What is this supposed to achieve? I can kinda guess, 'http' and 'proxy'. Just not clear on the details... And if nothing shows up, it means I have no proxy, then?

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Post by computathug »

Yeah i gather anon-proxy hasn't installed.

try running the install again :-k

*update*
k after i run the last command i left the box to go do a few things then came back and thought .... right apt update and hey presto! I generated the same errors as LBG. I have never installed something before in order to try to generate the same errors but 'hey, it worked' :lol:

You wont beleive how i fixed this.... system reboot. Tried again, all updates working xD

Everything working so far :wink:

*2nd edit*

Not much information on this one LBG, you got me working here, but here is what i have got so far.

After researching the only page i found was off the debian repositories page
where i found the originators website.
and after some reading found you can build your mix online with java
i had a quick look at it but never set it up yet as i haven't had time, but as i have done the hard work and you started this thread, you might like to finish it :lol:

Hope this has helped you out 8)
The devil can cite Scripture for his purpose.
-- William Shakespeare, "The Merchant of Venice"
https://tshirt-memes.com

Post Reply