Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am on a Kubuntu behind a proxy and I'm trying to make sudo apt-get update. The apt-get says
Quote:
Cannot initiate the connection to ru.archive.ubuntu.com:80 (2a02:6b8::183). - connect (101: Network is unreachable) [IP: 2a02:6b8::183 80]
The problem is that this error is really weird, because:
1) I configured proxy in system settings.
2) I suppose, that apt-get can't handle this settings, so I tried to configure proxy for an apt-get through an export as follows:
Hmm, I found a strange thing: the apt-get works through a netbook with an installed Ubuntu. So I tried to copy sources.list(though it's pretty the same, the only difference is the release name: precise VS saucy), but it doesn't worked anyway.
I hope I'm close... «The Truth Is Out There» =)
Aha! Through comparing tcpdump output on a netbook and PC, I found a next hint: all output of the netbook goes through a 3128 port -- it's a proxy. On a desktop that's also true for webpages, but not for an apt-get.
This also means that export http_proxy= doesn't work, although it should, so an apt-get is buggy.
Anyway, despite the broken apt-get there's sure a way to get it work, as apt-get on a netbook working without dark magic with an "export".
This is true, but this is a permanent settings. They wrote in a manual that I can set a temporary proxy settings through an export and they're lying as you're can see =) I don't think that a permanent settings going to work, if a temporary doesn't.
Yes, you're right, the second one is wrong. To be precicer it's just unnecessary line, it looks like a ghost: it was mentioned everywhere but doesn't seems that something depends on this line.
The solution was to add the line http_proxy="http://10.5.57.177:3128" to the /etc/environment/. When an apt-get launched it's parses this file and this line too. This blog post very helped me, thank him very much!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.