Ubuntu Gutsy Internet Help
So you just upgraded to Ubuntu Gutsy and you cannot get the Internet to work? You appear to have a LAN connection or Network-Manager is allowing you to connect to your access point, yet when you type in http://www.google.com, the domain will not resolve – it just keeps reading ‘connecting’. Why? Use of of ipv6 – 99% of the time.
Yeah great, so how about a working connection!
Because most of you could care less why it’s not working, let’s look at getting it working again, shall we? First, because this is about ipv6 issues, let’s make sure this is the problem. Run this from a terminal window:
dig AAAA www.kame.net
Did it time out? Then try this one:
dig A www.kame.net
Did the latter work? Then it is indeed, an issue with ipv6 and you have a few options here.
1) Check for a firmware upgrade for your NIC or modem.
2) Open a terminal window and copy/paste this in:
gksudo gedit /etc/modprobe.d/blacklist
then add…
blacklist ipv6
…someplace at the bottom. Here is an example:
# This file lists those modules which we don't want to be# loaded by # alias expansion, usually so some other driver will be# loaded for the # device instead.# evbug is a debug tool that should be# loaded explicitly blacklist evbug # these drivers are very simple, the HID drivers are# usually preferred blacklist usbmouse blacklist usbkbd # replaced by e100 blacklist eepro100 # replaced by tulip blacklist de4x5 # causes no end of confusion by creating unexpected# network # interfaces blacklist eth1394 # snd_intel8x0m can interfere with snd_intel8x0,# doesn't seem to support much# hardware on its own (Ubuntu bug #2011, #6810) blacklist snd_intel8x0m# causes failure to suspend on HP# compaq nc6000 (Ubuntu: #10306) blacklist i2c_i801 # buggy driver causes kernel BUG on load (Ubuntu: #78255, #88430) blacklist r818x blacklist r8187
OK, so that is a lot of stuff. All you need to do is add blacklist ipv6 to the tail end of that mess, like so:
...Lots of other stuff too long to list yet again... # buggy driver causes kernel BUG on load (Ubuntu: #78255, #88430) blacklist r818x blacklist r8187 # Matt made me do this so I can have my Internet back!!!! blacklist ipv6
That’s all there is to it, now save the file and restart the PC. If all went well, you should find that you are able to browse the web without issues relating to slow DNS issues.
Matt, we need a script that does this for us!!
If you would rather have a script to help you with opening the right file for editing, download this file. Then after saving it to your desktop, right click on it and choose the ‘Permissions’ tab, then select the ‘Execute’ option by clicking it. This will do everything for you and blacklist ipv6 for you ‘auto-magically‘.
Just be darn sure to run this in the terminal when prompted after double clicking it.If you are still having a problem, try this. If you find that this is more than you want to deal with just to use OpenDNS, then simply pick your router and allow Ubuntu to do as it is likely already doing, acting as your DNS server. Just add the OpenDNS info for the router you own and that ought to help with any remaining DNS related issues.
Again, this tutorial is for those with DNS (domain resolving issues). If you are using wifi and have not had any luck connecting, try this post instead.

22 Comments
Ralph Corderoy
October 25th, 2007
at 4:30am
Hi, what do you mean by “Gutsy’s own implementation of ipv6″. It suggests they’re not using the normal Linux kernel’s implementation and have a distinct one from every other distro. Cheers, Ralph.
Keith Strickland
October 25th, 2007
at 6:22am
I also encountered this issue in the previous version of Ubuntu but it was sporadic for some reason. Internet wouldn’t work now, reboot and it worked, come home from work internet not working again. Looking at the output of ifconfig confirms that when the internet isn’t working the network card is using IPv6 and not IPv4.
So I don’t think this is strictly a Ubuntu Gutsy issue but one that just came along for the ride in the new version from the previous version.
Keith
Matt Hartley
October 25th, 2007
at 10:21am
Keith: Ah, thanks for the info. :)
Ralph: Ouch, ya, I could have worded that better. Will fix it now.
Matt Hartley
October 25th, 2007
at 11:37pm
New script added – will blacklist the problem for you, automatically, just needs to be given the ability to execute once downloaded. :)
Derek Broughton
October 26th, 2007
at 11:35am
Matt: We don’t “need a script to do this”, we need Network Manager – when it sees “no IPv6 routers present” – to remove the ipv6 module!
It’s hard to understand why when we have NM as a default part of the install, and it can tell when ipv6 is not usable, that we still have people having this problem!
Matt Hartley
October 26th, 2007
at 11:59am
Derek: Thanks for your thoughts. As for NM, having studied this problem with NM, it’s ‘upgrades’ to improve support, it remains unreliable at best and I would be happy to provide thread after thread proving this.
Again, as you pointed out, nm should be doing this – guess what, like most of nm’s functions – it’s not working.
http://www.lockergnome.com/nexus/linux/2007/10/18/ubuntu-gutsy-wireless-help
So it is really fairly simple. The end user either wants to get this resolved or they do not. I agree that it should not come to this, but it does. So the user is left with a choice – use this solution or continue to pull their hair out, pure and simple. ;)
goarilla
October 28th, 2007
at 5:09am
what’s wrong with rmmoding the module ?
Matt Hartley
October 28th, 2007
at 11:02am
Goarilla: Nothing, when it works 100% of the time, which it does not. :)
James
October 29th, 2007
at 9:38am
Hey Matt, your method works for me, my firefox loaded google finally(which previously doesn’t load anything), however, my apt-get and update manager still unable to connect the servers, any solution for this??
Matt Hartley
October 29th, 2007
at 10:18am
James: How are you connecting? LAN or wifi. If wifi, which card/chipset?
Can you look at one of the repositories and then open a terminal and ping it?
James
October 29th, 2007
at 10:47pm
Im using prolink wireless adapter which connects to a wireless d-link router with aztech modem. My internet actually acts very strangely:
My ubuntu source is set to a Taiwan server http://mirror.nttu.edu.tw/), when i run apt-get update it sure fails and connection time out, however, after i load http://mirror.nttu.edu.tw/ in firefox and run apt-get again, it works.
however, after a few minutes, the problem appears again, so i need to repeat above step.
Other installation also have similar problems, like when i install skype through automatix, it has connection timed out when fetching deb installation packages from http://download.skype.com. So i loaded http://download.skype.com in firefox and retry the skype automatix installation, the installation works smoothly…
Any idea what is the problem Matt??
Matt Hartley
October 30th, 2007
at 7:28am
James: Not sure which chipset you are running, but if you are connecting with it slowly getting worse and worse, I do have an idea. If your connection works well on a cold start up, then gets slower, you are overheating – trust me on this.
http://tinyurl.com/2odb5z
I tested this on three cards, only one of them was doing this to me. It turned out that the driver for that one card had the PCMCIA card overheating. Same could be happening with an internal card as well.
Here is what I did. I went out to Office Depot, dropped $30 on a new notebook cooling pad. Result? Not once has wireless been a problem since. Everything, I mean everything is running smoother and faster, especially my wireless connections. I cannot recommend this enough, even if people are not having problems.
Matt Hartley
October 30th, 2007
at 7:46am
James: I tried pinging mirror.nttu.edu.tw, that seemed to of went well. Can you give me the repository info for it?
deb **url** feisty universe multiverse
Something like that above? I am going to see if I connect to it, this well tell me if it is a problem with the server.
rotylee
November 10th, 2007
at 7:14am
i just had to go into my router and enable IPv6 Support.
Firmware: DD-WRT v23 SP2 (09/15/06) std
http://www.dd-wrt.com/dd-wrtv2/ddwrt.php
http://www.dd-wrt.com/wiki/index.php/IPv6
links for 2007-12-05 « M@’s Blog
December 4th, 2007
at 7:20pm
[...] Ubuntu Gutsy Internet Help ~ Linux Fanatics Might solve a linux network problem I’m having [...]
Saber
December 17th, 2007
at 2:39am
Hi, I similar problem with Firefox/Ubuntu although I dont think it is related to DNS; In fact Firefox resolves the address but doesn’t display the web page, it stays at waiting for xxx.xxx.xxx in the status bar. I can also ping successfully http://www.google.com or any other site from the terminal. I will try your Fix and see if it helps.
My network card is 3Com gigabit (3C940) (integrated into the motherboard). and connected to an ADSL router (Sagem 1400W) thru Ethernet cable.
Thanks.
Matt Hartley
December 17th, 2007
at 12:11pm
Saber: You may have a similar issue to what I had:
http://www.lockergnome.com/linux/2007/11/27/ubuntu-wired-networking-woes-read-this-closely/
Saber
December 18th, 2007
at 7:58am
Thanks Matt, I’ll try and post the results here.
Saber
December 26th, 2007
at 8:29am
I have tried all mentioned suggestions (Firefox IPV6 disabled, acpi=noirq, blacklisting IPV6…etc) with no success:
To recapitulate:
System: ABIT KV8 Max3, (integrated Nic 3C940), Ubuntu 7.10 64Bits, Connected with Ethernet cable to Sagem 1400W DSL modem.
Network and internet works fine under M$ XP.
- Local network OK; can ping the router
- WAN & DNS OK (can ping http://www.google.com, yahoo.com, or any web site)
- Can traceroute http://www.google.com…etc.
BUT
Can not access the net with Firefox (neither HTTP nor FTP). I cant even access the router admin page.
Can not access live updates
I could open a Telnet session to yahoo.com, I got no reply to HTTP GET command.
I could open an FTP session to Ubuntu public repositories but couldn’t list or browse the directory structure.
Any suggestions…?
Jarek
January 3rd, 2008
at 3:42am
Saber I have that same problem. Did you found solution?
Paul
April 22nd, 2008
at 3:12pm
HI Matt, i am new to Kubuntu. Everything is rosy for me except this persistent issue:
My internet connection would drop periodically. The issue seems to be network manager defaulting on DNS setting, which i have entered and saved as a “location”. It looks like some guy on the forum has the exact same issue
https://bugs.launchpad.net/ubuntu/+source/gnome-system-tools/+bug/74454
Is there a way to write a automated script to check and correct the values?? Ta
Matt Hartley
April 23rd, 2008
at 1:58pm
Paul: Sorry to hear about the troubles. Need some more info?
-Wired or wireless, DSL or Cable?
-Which Kubuntu – Gutsy release?
- Is the dropping happening while the machine sits idle or during use? Also, is it happening when Flash (YouTube) is being used?
- Under the network settings>DNS tab – what is showing up there? On my systems, I allow my router to handle my needs. So I have it set to the router’s ip address for DNS servers and the Search domains was filled in automatically. On my router, I use OpenDNS.
Thanks