LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2018, 01:45 AM   #1
Oliems
LQ Newbie
 
Registered: Nov 2016
Distribution: Debian
Posts: 19

Rep: Reputation: Disabled
Wifi networks detected but unable to connect on Debian 9.3


Hi,

I have just installed Debian 9.3 on my desktop computer. I am using a Belkin N300 USB wifi card. Here are the lspci information :

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

It seems to work fine, wifi networks are detected but when I try to connect to one of them, it prompt "Connecting" for twenty seconds and then it prompts "Connection Failed" without any other information. It did this for every network I have tried.

Here are screenshots from the lshw command I took using a live version of Ubuntu in which the wifi works perfectly well. There is also a screen of what I get in dmesg after attempting to connect in debian.

Last edited by Oliems; 02-04-2018 at 02:23 AM. Reason: Adding new infos
 
Old 02-04-2018, 05:56 AM   #2
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 972

Rep: Reputation: 259Reputation: 259Reputation: 259
I Google your Belkin looking for Linux firmware and got this Debian link. Look at the supported devices
 
Old 02-04-2018, 06:04 AM   #3
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 972

Rep: Reputation: 259Reputation: 259Reputation: 259
I guess that page don't lead to anything, but there is a thread here according to this search: 6th link down the page.
 
Old 02-04-2018, 06:17 AM   #4
ricemark20
Member
 
Registered: Aug 2003
Location: Wauconda, Illinois, USA
Distribution: Slackware, OpenSuse, Arch Linux on Pi
Posts: 96

Rep: Reputation: 42
Quote:
Originally Posted by Oliems View Post
It seems to work fine, wifi networks are detected but when I try to connect to one of them, it prompt "Connecting" for twenty seconds and then it prompts "Connection Failed" without any other information. It did this for every network I have tried.
My laptop does the same thing. Not using Debian though. Installed Wicd, and set a static IP address.

Click image for larger version

Name:	screenshot-Sun Feb  4 06:14:51 CST 2018.png
Views:	58
Size:	22.8 KB
ID:	26897
 
Old 02-04-2018, 06:33 AM   #5
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 18.3 MATE, MX-18.3
Posts: 2,457
Blog Entries: 10

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
Oliems,

Have you enabled the Debian non-free package sources and then installed the RTL8192CU driver?

Debian Sources List:
https://wiki.debian.org/SourcesList

rtl819X installation in Debian:

https://wiki.debian.org/rtl819x

First add a "non-free" component to your /etc/apt/sources.list, for example:

Code:
# Debian 9 "Stretch"

deb  http://deb.debian.org/debian stretch main contrib non-free
Next, as root user, update the list of available packages and install the firmware-realtek package:

Code:
# apt-get update && apt-get install firmware-realtek
firmware-realtek package for Debian Stretch:

https://packages.debian.org/stretch/firmware-realtek

Last edited by beachboy2; 02-04-2018 at 06:37 AM.
 
Old 02-04-2018, 06:37 AM   #6
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 972

Rep: Reputation: 259Reputation: 259Reputation: 259
I just finished with my connection issues, my Debians are good, it's the opposite for me. Ubuntu 17.10 live works good also, but after I remaster it with customizations, it connects but no internet access. Have to change the address in /etc/resolv.conf to the one my Debians use, or any other recommended by Arch wiki resolv.conf article.
 
Old 02-04-2018, 06:38 AM   #7
Oliems
LQ Newbie
 
Registered: Nov 2016
Distribution: Debian
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by beachboy2 View Post
Oliems,

Have you enabled the Debian non-free package sources and then installed the RTL8192CU driver?

Debian Sources List:
https://wiki.debian.org/SourcesList

rtl819X installation in Debian:

https://wiki.debian.org/rtl819x

First add a "non-free" component to your /etc/apt/sources.list, for example:

Code:
# Debian 9 "Stretch"

deb  http://deb.debian.org/debian stretch main contrib non-free
Next, as root user, update the list of available packages and install the firmware-realtek package:

Code:
# apt-get update && apt-get install firmware-realtek
I have downloaded the firmware-realtek package with another computer then installed it on my Debian computer using dpkg. The package is installed but it does not seem to change anything.
 
Old 02-04-2018, 06:44 AM   #8
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 18.3 MATE, MX-18.3
Posts: 2,457
Blog Entries: 10

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
Oliems,

It may be that there is a problem with systemd creating long names of network interfaces as described here:
https://lists.debian.org/debian-user.../msg01045.html

If that is the case, then this may help you (as root user):

Code:
sudo su

ln -s /dev/null /etc/systemd/network/99-default.link
 
1 members found this post helpful.
Old 02-04-2018, 07:03 AM   #9
Oliems
LQ Newbie
 
Registered: Nov 2016
Distribution: Debian
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by beachboy2 View Post
Oliems,

It may be that there is a problem with systemd creating long names of network interfaces as described here:
https://lists.debian.org/debian-user.../msg01045.html

If that is the case, then this may help you (as root user):

Code:
sudo su

ln -s /dev/null /etc/systemd/network/99-default.link
Thank you very much, it worked like a charm !
 
Old 02-04-2018, 07:33 AM   #10
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 18.3 MATE, MX-18.3
Posts: 2,457
Blog Entries: 10

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
Oliems,

Glad to be of assistance.
 
  


Reply

Tags
debian, desktop, wifi problem


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant see nearby wifi networks in kali linux although wlan0 is detected venkibellu Linux - Networking 2 12-18-2016 09:24 AM
[SOLVED] Cant connect to wifi networks Altair827 Linux - Newbie 25 12-19-2015 07:30 AM
Unable to connect to the internet despite wireless networks being detected. RedClouds Linux - Newbie 1 08-11-2009 01:23 PM
bluetooth not recognized and no WIFI networks detected davidksa Linux - Laptop and Netbook 0 04-03-2009 11:35 AM
No DHCP offers received (wifi ) Wireless detected unable to connect Fedexpress Linux - Newbie 3 08-24-2008 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration