FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-02-2011, 06:41 AM
Dave Henley
 
Default apt-get & ipv6

Thnx, I know I can`t pretend IPv6 isn`t coming but for now I need a workaround.
So I`ll give it a go.

Subject: Re: apt-get & ipv6
From: kauer@biplane.com.au
To: ubuntu-users@lists.ubuntu.com
Date: Wed, 2 Nov 2011 17:18:29 +1000

On Wed, 2011-11-02 at 06:38 +0000, Dave Henley wrote:
> Whenever I update my system using apt-get Ubuntu tries to resolve via
> IPv6 first. Since I don`t have IPv6 running yet it doesn`t work. I`d
> like apt-get to try IPv4 first before switching to IPv6.

Getting significant delays because of IPv6 resolution is usually a sign
of a misconfigured nameserver. However, if you really want to, there is
a hard way and an easy way.

The hard way is to edit gai.conf so that IPv4 is preferred over IPv6. I
leave that to you to figure out, but basically you want to make the
preference value for IPv4 larger than the preference value for IPv6.

The easy way (if you really REALLY don't have IPv6, not even via a
tunnel or suchlike) is to disable IPv6:

sysctl -w net.ipv6.conf.eth0.disable_ipv6=1

If that does the trick, you may want to make the change permanent by
adding this line to the end of /etc/sysctl.conf

net.ipv6.conf.eth0.disable_ipv6=1

Since you *will* have to deal with IPv6 soon, like it or not, make sure
you remember you have done this. Otherwise you will spend many unhappy
hours trying to figure out why nothing works.

Regards, K.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer@biplane.com.au) +61-2-64957160 (h)
http://www.biplane.com.au/kauer/ +61-428-957160 (mob)

GPG fingerprint: DA41 51B1 1481 16E1 F7E2 B2E9 3007 14ED 5736 F687
Old fingerprint: B386 7819 B227 2961 8301 C5A9 2EBC 754B CD97 0156

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 09:09 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org