Apt update fail and keep connecting to an weird IP

It's weird that no mater I update or crawl anything from web. There is always a connection timeout error.

when update

kevin@KevinChen:/etc/apt/apt.conf.d$ sudo apt-get update
[sudo] password for kevin:
0% [Waiting for headers] [Connecting to 184.178.217.66
(184.178.217.66)] [Conne

it keeps connecting to the ip as above and fail at last.

when crawl a website

/usr/bin/python2.7 /home/kevin/Documents/Python/spider_caoliu2.py
Traceback (most recent call last): File
"/home/kevin/Documents/Python/spider_caoliu2.py", line 21, in <module> c.perform() pycurl.error: (7, 'Failed to connect to
184.178.217.66 port 3128: Connection timed out')

the weird connection come out again.

After a little looking up. I find there is a file apt.conf in /etc/apt may responsible for this issue that the file contains a connection as above. But the issue still happen after deleting the file.

Is there any chance that the DNS is to blame on?

2

1 Answer

Oh, I know what happened. When you installed, the installation process asked you if you needed to use a proxy, and you probably said "yes". Now it thinks that that's your proxy for all time. Just remove that line and it should work.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like