Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Cannot connect the wireless network

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
primearc
Posts: 10
Joined: 2021-10-18 16:22
Has thanked: 3 times

[SOLVED] Cannot connect the wireless network

#1 Post by primearc »

Hi, i installed the Debian Bullseye and downloaded the os. On the setup, i only picked the "standard system utilies" choise. Now, i don't have window manager and desktop environment. There is only terminal. I must be connect the internet with my wireless network card. I tried theese:

1) First i learned the wifi card name.

Code: Select all

iwconfig
My wifi card name is wlp7s0

2) Then i wanted the scan network.

Code: Select all

iw wlp7s0 scan
Error: command failed: Network is down (-100)

3) I entered this command for upped the wifi card:

Code: Select all

ip link set wlp7s0 up
Error: RTNETLINK answers: Operation not possible due to RF-kill

4) Finally i entered this command, because i wanted unblock the card:

Code: Select all

rfkill unblock all
But this command is not founded.


I don't have an ethernet. How can i solved this problem?
Last edited by primearc on 2021-10-21 06:49, edited 1 time in total.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Cannot connect the wireless network

#2 Post by sunrat »

You need to run rfkill with root privileges or sudo.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

primearc
Posts: 10
Joined: 2021-10-18 16:22
Has thanked: 3 times

Re: Cannot connect the wireless network

#3 Post by primearc »

sunrat wrote: 2021-10-18 22:47 You need to run rfkill with root privileges or sudo.
I already run the root privileges.

mm3100
Posts: 336
Joined: 2020-10-21 21:39
Has thanked: 8 times
Been thanked: 13 times

Re: Cannot connect the wireless network

#4 Post by mm3100 »

Check if it is absent in
/usr/sbin/rfkill
How are you getting root privileges?What is result of
echo $PATH

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Cannot connect the wireless network

#5 Post by sunrat »

I checked my system which was started from a netinstall and rfkill program doesn't seem to be installed by default, although its kernel modules are present. I don't use wireless on this system though.
You may have to download the .deb on an internet connected system and copy it to a USB drive and install from there.
https://packages.debian.org/bullseye/rfkill
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

dlu2021
Posts: 198
Joined: 2021-08-13 19:55
Location: Minnesota
Has thanked: 7 times
Been thanked: 37 times

Re: Cannot connect the wireless network

#6 Post by dlu2021 »

Another option that I have used in the past, not sure if it will help in your case or not, as I have never had to use rfkill:

Update the /etc/network/interfaces file to include settings for the WIFI adapter:

iface wlp7s0 inet dhcp
wpa-ssid SSID
 wpa-psk ”PSK”

Where SSID is the network SSID and PSK in the password wrapped in quotes.

Do an “ifup wlp7s0” command to bring it up, you should be connected at this point.

Then install what you want, when you are ready to reboot, then do the following:

Do an “ifdown wlp7s0” command to bring it down, you should be disconnected at this point.

Remove the stuff that you added to the /etc/network/interfaces file so that the network manager will control it.

Reboot.

primearc
Posts: 10
Joined: 2021-10-18 16:22
Has thanked: 3 times

Re: Cannot connect the wireless network

#7 Post by primearc »

mm3100 wrote: 2021-10-19 07:14 Check if it is absent in
/usr/sbin/rfkill
How are you getting root privileges?What is result of
echo $PATH
rfkill is not found in sbin/


Result:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

primearc
Posts: 10
Joined: 2021-10-18 16:22
Has thanked: 3 times

Re: Cannot connect the wireless network

#8 Post by primearc »

iface wlp7s0 inet dhcp
wpa-ssid SSID
wpa-psk ”PSK”

Where SSID is the network SSID and PSK in the password wrapped in quotes.

Do an “ifup wlp7s0” command to bring it up, you should be connected at this point.
Result is:

RTNETLINK answers: Operation not possible due to RF-kill

I don’t understand. If rfkill is necesarry, why Debian is not included this?

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Cannot connect the wireless network

#9 Post by arzgi »

viewtopic.php?f=16&t=142808

Start here.

You can install any package to Debian, they all would not simple fit to the installation media.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Cannot connect the wireless network

#10 Post by kedaha »

Hi,
Looks like neither the wireless network nor apt got configured during installation? Maybe your WiFi device also requires firmware for it to work.
# dmesg | grep firmware
# dmesg |grep failed
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

primearc
Posts: 10
Joined: 2021-10-18 16:22
Has thanked: 3 times

Re: Cannot connect the wireless network

#11 Post by primearc »

Nvidia errors looks like normal.
There is many “failed to load” errors.

:idea: I Forgot to say. I have non-officall drivers on the USB stick. I used the USB stick on the Debian setup. How do i upload it if i need to upload it? :?:

primearc
Posts: 10
Joined: 2021-10-18 16:22
Has thanked: 3 times

Re: Cannot connect the wireless network

#12 Post by primearc »

kedaha wrote: 2021-10-19 16:44 Hi,
Looks like neither the wireless network nor apt got configured during installation? Maybe your WiFi device also requires firmware for it to work.
# dmesg | grep firmware
# dmesg |grep failed

Code: Select all

ath10k_pci 0000:07:00.0: firmware: direct-loading firmware ath10k/QCA9377/hw1.0/firmware-6.bin


ath10k_pci 0000:07:00.0: firmware: ver WLAN.TF.2.1-00021-QCARMSWP-1 api 6 features wowlan,ignore-oto crc32 42e41877


ath10k_pci 0000:07:00.0: direct-loading firmware qca/rampatch_usb_00000302.bin
And there are 3 Bluetooth result…

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Cannot connect the wireless network

#13 Post by kedaha »

So you need the rfkill tool.
Download it directly from packages.debian.org/bullseye/rfkill and copy it to a usb pendrive, insert and install it with dpkg. For example, after copying rfkill to the memory stick, on my system:

Code: Select all

root@debian:~# cd /media/kedaha/usb-pen
root@debian:/media/kedaha/usb-pen# ls
lost+found  rfkill_2.36.1-8_amd64.deb
root@debian:/media/kedaha/usb-pen# dpkg -i rfkill_2.36.1-8_amd64.deb
(Reading database ... 308235 files and directories currently installed.)
Preparing to unpack rfkill_2.36.1-8_amd64.deb ...
Unpacking rfkill (2.36.1-8) over (2.36.1-8) ...
Setting up rfkill (2.36.1-8) ...
Processing triggers for man-db (2.9.4-2) ...
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

primearc
Posts: 10
Joined: 2021-10-18 16:22
Has thanked: 3 times

Re: Cannot connect the wireless network

#14 Post by primearc »

kedaha wrote: 2021-10-20 09:33 So you need the rfkill tool.
Download it directly from packages.debian.org/bullseye/rfkill and copy it to a usb pendrive, insert and install it with dpkg. For example, after copying rfkill to the memory stick, on my system:

Code: Select all

root@debian:~# cd /media/kedaha/usb-pen
root@debian:/media/kedaha/usb-pen# ls
lost+found  rfkill_2.36.1-8_amd64.deb
root@debian:/media/kedaha/usb-pen# dpkg -i rfkill_2.36.1-8_amd64.deb
(Reading database ... 308235 files and directories currently installed.)
Preparing to unpack rfkill_2.36.1-8_amd64.deb ...
Unpacking rfkill (2.36.1-8) over (2.36.1-8) ...
Setting up rfkill (2.36.1-8) ...
Processing triggers for man-db (2.9.4-2) ...
Okay, i will try this. But i don’t understand. Why Debian do not has rfkill by default?

primearc
Posts: 10
Joined: 2021-10-18 16:22
Has thanked: 3 times

Re: Cannot connect the wireless network

#15 Post by primearc »

I solved the problem. I installed the rfkill, and unblocked all. I reported this to Debian Community. But i do not know. How can i do this?

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Cannot connect the wireless network

#16 Post by sunrat »

primearc wrote: 2021-10-21 05:37 I solved the problem. I installed the rfkill, and unblocked all.
Nice. Please edit the title of your first post to add [SOLVED] so it may be easily searched by others with the same issue.
I reported this to Debian Community. But i do not know. How can i do this?
Packages are included in the install images according to their usefulness determined partly by the popularity-contest feedback. There is likely not enough demand for it to include in the minimal netinstall image. It is included in the full DVD-1 installer image.
As you found, it is quite easy to download a package and install it separately anyway.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

dlu2021
Posts: 198
Joined: 2021-08-13 19:55
Location: Minnesota
Has thanked: 7 times
Been thanked: 37 times

Re: Cannot connect the wireless network

#17 Post by dlu2021 »

sunrat wrote: 2021-10-21 06:44 It is included in the full DVD-1 installer image.
primearc,

For me personally, i have moved away from the net install and go with the DVD-1 installer along with setting up a mirror, that way I can get the best of both worlds, I can install locally from the USB stick and only fall back to the mirror for the minority. Which is both faster and saves the bandwidth on the Debian package servers.

Post Reply