Cannot see any wireless network

If none of the more specific forums is the right place to ask

Cannot see any wireless network

Postby Morales1235 » 2018-07-19 03:13

My problem just arrived when laptop was asleep - I woke it up and there was no connection (cannot find any).
I've described my problem here (https://unix.stackexchange.com/questions/456838/debian-cannot-see-wireless-network) already, but there is no solution :(
Windows on the same machine works fine with internet, so I suppose it is software fault.
Morales1235
 
Posts: 12
Joined: 2018-07-18 18:59

Re: Cannot see any wireless network

Postby Head_on_a_Stick » 2018-07-19 05:08

Morales1235 wrote:cannot find any

How are you searching for access points?

Please run `ip link set wlan0 up` (as root) and then post the output of
Code: Select all
iw dev wlan0 scan | grep SSID

If nothing is listed then post the output without the pipe & grep, thanks!
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7771
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Cannot see any wireless network

Postby Morales1235 » 2018-07-19 14:33

looking for networks. As root:
Code: Select all
iw wlan0 scan dump
iwlist wlan0 scan dump

post nothing (found in the web, I don't know why 'dump'). And also by GUI: It shows me waiting icon and 'No networks'
your command
Code: Select all
sudo iw dev wlan0 scan | grep SSID

gives me few networks, where the first one is my home network:
SSID: Domowa
SSID: MS_DOM
SSID: Portthru
SSID: Marek

Thanks! Some tip, but what next?
Morales1235
 
Posts: 12
Joined: 2018-07-18 18:59

Re: Cannot see any wireless network

Postby Head_on_a_Stick » 2018-07-19 16:10

Morales1235 wrote:what next?

Your wireless card is working fine so perhaps you have encountered NetworkManager's new MAC address randomisation bug, sorry feature, so try disabling that:

https://forums.kali.org/showthread.php? ... one-method

I would recommend disabling NetworkMangler entirely and switching to ifupdown instead — it's old but it works :)
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7771
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Cannot see any wireless network

Postby arzgi » 2018-07-19 16:55

Head_on_a_Stick wrote:[
I would recommend disabling NetworkMangler entirely and switching to ifupdown instead — it's old but it works :)

+1
arzgi
 
Posts: 283
Joined: 2008-02-21 17:03
Location: Finland

Re: Cannot see any wireless network

Postby Morales1235 » 2018-07-19 17:49

Set mac-address-randomization to 0 in my home connection (trying that command for all connection gives me: find: missing argument to `-exec')
Then I also tried disable as in second link; but both ways, as you said, by:
systemctl stop NetworkManager.service
systemctl disable NetworkManager.service

then enable and start. Still no connection, even after another restart...
Morales1235
 
Posts: 12
Joined: 2018-07-18 18:59

Re: Cannot see any wireless network

Postby Head_on_a_Stick » 2018-07-19 18:03

I'm not prepared to debug NM, does ifupdown work for you?
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7771
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Cannot see any wireless network

Postby Morales1235 » 2018-07-19 18:17

Excuse me, but I'm still not very familiar with some things on linux.
Do you mean restarting using ifdown/ifup instead of ifconfig ... down/up? Or it should be applied to restart networkManager?
Code: Select all
sudo ifdown wlan0
gives me: unknown interface: wlan0
I found also that command:
Code: Select all
nmcli dev status
what gives me:
DEVICE TYPE STATE CONNECTION
eth0 ethernet connected eth0
cdc-wdm1 gsm disconnected --
wlan0 wifi unavailable --
lo loopback unmanaged --

I don't know how to interpret that, what means wlan0 is unavaliable
Morales1235
 
Posts: 12
Joined: 2018-07-18 18:59

Re: Cannot see any wireless network

Postby Head_on_a_Stick » 2018-07-19 18:41

Morales1235 wrote:Do you mean restarting using ifdown/ifup instead of ifconfig ... down/up? Or it should be applied to restart networkManager?
Code: Select all
sudo ifdown wlan0
gives me: unknown interface: wlan0

You need to edit /etc/network/interfaces, as per my Debian wiki link.

NetworkManager can be disabled once ifupdown is configured but the two can co-exist as NM will ignore any devices listed in the interfaces file.
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7771
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Cannot see any wireless network

Postby Morales1235 » 2018-07-20 16:35

Oh, I havn't noticed that link (there is a lot of ads displaying that way of forums...)
Following the wiki I encountered a problem with ifup wlan0, no libcrypto library. Found that solution:
Code: Select all
sudo ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/libssl.so.10
 sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.10

but there is another error after ifup:
/sbin/wpa_supplicant: /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2: version `OPENSSL_1.0.2d' not found (required by /sbin/wpa_supplicant)
/sbin/wpa_supplicant: /usr/lib/libcrypto.so.10: version `OPENSSL_1.0.1_EC' not found (required by /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2)
/sbin/wpa_supplicant: /usr/lib/libcrypto.so.10: version `libcrypto.so.10' not found (required by /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2)
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
ifup: failed to bring up wlan0

Wrong version? wrongly linked that lib?
wpasupplicant is in the newest version
Morales1235
 
Posts: 12
Joined: 2018-07-18 18:59

Re: Cannot see any wireless network

Postby stevepusser » 2018-07-20 17:00

You say the wi-fi works fine before you suspend, so I think all this hacking with interface names and connection managers is taking the wrong tack.

Have you tried unloading and reloading the driver module after suspend to see if that fixes it? If so, there's a file you can add the module name to to have it unload before suspend and reload automatically after resume.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: mvp 0.29.0, Pale Moon 27.9.4, wine-staging 3.13, MPC-QT 18.03, Linux kernel 4.17.8, ffmpeg 4.0.2
User avatar
stevepusser
 
Posts: 9797
Joined: 2009-10-06 05:53

Re: Cannot see any wireless network

Postby Morales1235 » 2018-07-20 17:04

No! It has been working until that day! Now it doesn't at all.
Morales1235
 
Posts: 12
Joined: 2018-07-18 18:59

Re: Cannot see any wireless network

Postby Head_on_a_Stick » 2018-07-20 19:20

Morales1235 wrote:Following the wiki I encountered a problem with ifup wlan0, no libcrypto library.

Please always post the exact, full error message rather than a vague summary, thanks!
Morales1235 wrote:Found that solution:
Code: Select all
sudo ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/libssl.so.10
 sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.10

Where did you find that solution?

Symlinking libraries is a hack that is only used by clueless n00bs, generally speaking (no offence intended), and should *never* be needed in a correctly configured Debian stable system.

I think we need to see the output of
Code: Select all
apt policy

stevepusser wrote:Have you tried unloading and reloading the driver module after suspend to see if that fixes it?

The card (and kernel modules) are working just fine else the OP would not see their SSID listed in the `scan` output.
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7771
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Cannot see any wireless network

Postby Morales1235 » 2018-07-21 03:26

problem wit ifup wlan0 was:
Code: Select all
/sbin/wpa_supplicant: error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1

Solution I have found in two places: here and here.
Result of apt policy:
Code: Select all
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://packages.x2go.org/debian stretch/main i386 Packages
     release o=X2Go,a=stable,n=stretch,l=X2Go,c=main,b=i386
     origin packages.x2go.org
 500 http://packages.x2go.org/debian stretch/main amd64 Packages
     release o=X2Go,a=stable,n=stretch,l=X2Go,c=main,b=amd64
     origin packages.x2go.org
 500 http://packages.x2go.org/debian stretch/extras i386 Packages
     release o=X2Go,a=stable,n=stretch,l=X2Go,c=extras,b=i386
     origin packages.x2go.org
 500 http://packages.x2go.org/debian stretch/extras amd64 Packages
     release o=X2Go,a=stable,n=stretch,l=X2Go,c=extras,b=amd64
     origin packages.x2go.org
 500 http://repository.spotify.com stable/non-free i386 Packages
     release v=0.4,o=Spotify LTD,a=stable,n=stable,l=Spotify Public Repository,c=non-free,b=i386
     origin repository.spotify.com
 500 http://repository.spotify.com stable/non-free amd64 Packages
     release v=0.4,o=Spotify LTD,a=stable,n=stable,l=Spotify Public Repository,c=non-free,b=amd64
     origin repository.spotify.com
 500 https://repo.skype.com/deb stable/main amd64 Packages
     release o=. stable,a=stable,n=stable,l=. stable,c=main,b=amd64
     origin repo.skype.com
 500 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main,b=amd64
     origin dl.google.com
 500 http://security.debian.org stretch/updates/main i386 Packages
     release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=i386
     origin security.debian.org
 500 http://security.debian.org stretch/updates/main amd64 Packages
     release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
 500 http://ftp.debian.org/debian stretch/non-free i386 Packages
     release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=non-free,b=i386
     origin ftp.debian.org
 500 http://ftp.debian.org/debian stretch/non-free amd64 Packages
     release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=non-free,b=amd64
     origin ftp.debian.org
 500 http://ftp.debian.org/debian stretch/contrib i386 Packages
     release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=contrib,b=i386
     origin ftp.debian.org
 500 http://ftp.debian.org/debian stretch/contrib amd64 Packages
     release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=contrib,b=amd64
     origin ftp.debian.org
 500 http://ftp.debian.org/debian stretch/main i386 Packages
     release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=i386
     origin ftp.debian.org
 500 http://ftp.debian.org/debian stretch/main amd64 Packages
     release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
     origin ftp.debian.org
 500 http://ftp.debian.org/debian stretch-updates/main i386 Packages
     release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=i386
     origin ftp.debian.org
 500 http://ftp.debian.org/debian stretch-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
     origin ftp.debian.org
Pinned packages:


@EDIT

Also found in two places about kernel: https://askubuntu.com/questions/616119/ ... e-to-15-04
But I am not sure IF and which files download to try this update.
Morales1235
 
Posts: 12
Joined: 2018-07-18 18:59

Re: Cannot see any wireless network

Postby Head_on_a_Stick » 2018-07-21 11:23

Morales1235 wrote:
Code: Select all
 500 http://packages.x2go.org/debian stretch/extras i386 Packages
     release o=X2Go,a=stable,n=stretch,l=X2Go,c=extras,b=i386
     origin packages.x2go.org
 500 http://packages.x2go.org/debian stretch/extras amd64 Packages
     release o=X2Go,a=stable,n=stretch,l=X2Go,c=extras,b=amd64
     origin packages.x2go.org
 500 http://repository.spotify.com stable/non-free i386 Packages
     release v=0.4,o=Spotify LTD,a=stable,n=stable,l=Spotify Public Repository,c=non-free,b=i386
     origin repository.spotify.com
 500 http://repository.spotify.com stable/non-free amd64 Packages
     release v=0.4,o=Spotify LTD,a=stable,n=stable,l=Spotify Public Repository,c=non-free,b=amd64
     origin repository.spotify.com
 500 https://repo.skype.com/deb stable/main amd64 Packages
     release o=. stable,a=stable,n=stable,l=. stable,c=main,b=amd64
     origin repo.skype.com
 500 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main,b=amd64
     origin dl.google.com

^ These third-party repositories have broken your system, IMO.

EDIT: can we see
Code: Select all
apt policy wpasupplicant
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7771
Joined: 2014-06-01 17:46
Location: /dev/chair

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable