<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Thnx, I know I can`t pretend IPv6 isn`t coming but for now I need a workaround.<br>So I`ll give it a go.<br><br><div>Subject: Re: apt-get & ipv6<br>From: kauer@biplane.com.au<br>To: ubuntu-users@lists.ubuntu.com<br>Date: Wed, 2 Nov 2011 17:18:29 +1000<br><br><pre>On Wed, 2011-11-02 at 06:38 +0000, Dave Henley wrote:<br>> Whenever I update my system using apt-get Ubuntu tries to resolve via<br>> IPv6 first. Since I don`t have IPv6 running yet it doesn`t work. I`d<br>> like apt-get to try IPv4 first before switching to IPv6.<br> <br>Getting significant delays because of IPv6 resolution is usually a sign<br>of a misconfigured nameserver. However, if you really want to, there is<br>a hard way and an easy way.<br> <br>The hard way is to edit gai.conf so that IPv4 is preferred over IPv6. I<br>leave that to you to figure out, but basically you want to make the<br>preference value for IPv4 larger than the preference value for IPv6.<br> <br>The easy way (if you really REALLY don't have IPv6, not even via a<br>tunnel or suchlike) is to disable IPv6:<br> <br> sysctl -w net.ipv6.conf.eth0.disable_ipv6=1<br> <br>If that does the trick, you may want to make the change permanent by<br>adding this line to the end of /etc/sysctl.conf<br> <br> net.ipv6.conf.eth0.disable_ipv6=1<br> <br>Since you *will* have to deal with IPv6 soon, like it or not, make sure<br>you remember you have done this. Otherwise you will spend many unhappy<br>hours trying to figure out why nothing works.<br> <br>Regards, K.<br> <br>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Karl Auer (kauer@biplane.com.au) +61-2-64957160 (h)<br><a href="http://www.biplane.com.au/kauer/" target="_blank">http://www.biplane.com.au/kauer/</a> +61-428-957160 (mob)<br> <br>GPG fingerprint: DA41 51B1 1481 16E1 F7E2 B2E9 3007 14ED 5736 F687<br>Old fingerprint: B386 7819 B227 2961 8301 C5A9 2EBC 754B CD97 0156<br></pre><br>--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</div> </div></body>
</html>