Page 1 of 1

[SOLVED] Cannot connect the wireless network

Posted: 2021-10-18 17:12
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?

Re: Cannot connect the wireless network

Posted: 2021-10-18 22:47
by sunrat
You need to run rfkill with root privileges or sudo.

Re: Cannot connect the wireless network

Posted: 2021-10-19 05:36
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.

Re: Cannot connect the wireless network

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

Re: Cannot connect the wireless network

Posted: 2021-10-19 08:39
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

Re: Cannot connect the wireless network

Posted: 2021-10-19 12:25
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.

Re: Cannot connect the wireless network

Posted: 2021-10-19 15:37
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

Re: Cannot connect the wireless network

Posted: 2021-10-19 16:00
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?

Re: Cannot connect the wireless network

Posted: 2021-10-19 16:25
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.

Re: Cannot connect the wireless network

Posted: 2021-10-19 16:44
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

Re: Cannot connect the wireless network

Posted: 2021-10-19 17:21
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? :?:

Re: Cannot connect the wireless network

Posted: 2021-10-20 04:26
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…

Re: Cannot connect the wireless network

Posted: 2021-10-20 09:33
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) ...

Re: Cannot connect the wireless network

Posted: 2021-10-20 11:27
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?

Re: Cannot connect the wireless network

Posted: 2021-10-21 05:37
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?

Re: Cannot connect the wireless network

Posted: 2021-10-21 06:44
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.

Re: Cannot connect the wireless network

Posted: 2021-10-21 12:04
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.