Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had Ubuntu 12.04 previously installed on my Laptop and i was having problems in connecting to internet (I was connecting to Wifi), and Chrome and Firefox both showed "Connection to Server lost", and when i tried updating through terminal it was also not able to connect to internet, but my bittorrent client was connecting fine to Wifi internet connection. So i installed Ubuntu 14.04 alongside Windows 7 and i'm having same problem in it also.

Also if i try disconnecting to Wifi and connect again, internet works fine for 5-10 minutes but then again it starts giving error. Also, there is no problem in internet connection as it is working fine with my Android Device and Windows 7.

Here is some of my lspci -v output: Qualcomm Atheros AR9285 Wireless Network Adaptor - kernel driver atk9k

The full output can be found here.

The script output can be found here.

share|improve this question
What wifi card are you using? - please edit your question and add the output of lspci -v - using formatting – Wilf Jul 25 '14 at 18:14
Other two screenshots : snap3 : snap4 : – dushyantashu Jul 25 '14 at 18:39

Please do:

echo "options ath9k nohwcrypt=1" | sudo tee /etc/modprobe.d/ath9k.conf
sudo modprobe -rfv ath9k
sudo modprobe -v ath9k

First in your router change 802.11bgn to 802.11bg.

Second change the wep encryption to just wpa2 (CCMP)(AES) not (TKIP) if you have that option it will work best.

Third set your wireless channel in the router to 1 or 11 then save the router configuration and reboot it.

Fourth go into network manager at top right corner of the screen and click on edit connections>wireless tab and set IPV6 to ignore and change your dns server to google according to the screenshots. DNS SettingsIPV6 Setting

Then reboot.

share|improve this answer
I can't connect to my wifi network now. :( It got disconnected by this command !! – dushyantashu Jul 25 '14 at 20:06
Did you copy and paste for accuracy? did you run the code one line at a time? did you run the third command? – Wild Man Jul 25 '14 at 20:11
Yes i did. I restarted the system and till now it's working fine. Thanks. Can you give me some rough idea what this command did? – dushyantashu Jul 25 '14 at 20:14
This command change the encryption from being controlled by hardware to being controlled by software. Please accept the answer so everyone will benefit from it. – Wild Man Jul 25 '14 at 20:15
I'm having those problems again. And i'm also sometimes not able to connect to wifi network like i said earlier. It gives this error !! – dushyantashu Jul 26 '14 at 6:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.