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

 

 

 

changing wifi network on minimal debian install

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
rrekaf
Posts: 1
Joined: 2024-03-11 19:44

changing wifi network on minimal debian install

#1 Post by rrekaf »

I have a minimal debian install with i3 on my laptop and i want to choose which wifi i am connected to. I ideally would like to have a gui for it.

What i tried:
- Changing the /etc/network/interfaces file to include ssid in psk of another wifi but the wifi just never connected.
- Installing NetworkManager nm-applet nm-tui, with nm-tui i can edit wifi settings but the wifi just doesnt connect, the system tray icon of nm-applet used to say wifi device not managed but after i did systemctl unmask wpa_supplicant now it says wifi device not ready. Here is the log of systemctl status NetworkManager:

Code: Select all

Mar 11 20:35:38 gengar NetworkManager[713]: <warn>  [1710185738.6110] device (wlp3s0): re-acquiring supplicant interface (#2).
Mar 11 20:35:38 gengar NetworkManager[713]: <error> [1710185738.6741] device (wlp3s0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn't grab this interface.
Mar 11 20:35:48 gengar NetworkManager[713]: <warn>  [1710185748.6126] device (wlp3s0): re-acquiring supplicant interface (#3).
Mar 11 20:35:48 gengar NetworkManager[713]: <error> [1710185748.7067] device (wlp3s0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn't grab this interface.
Mar 11 20:35:58 gengar NetworkManager[713]: <warn>  [1710185758.6123] device (wlp3s0): re-acquiring supplicant interface (#4).
Mar 11 20:35:58 gengar NetworkManager[713]: <error> [1710185758.6981] device (wlp3s0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn't grab this interface.
Mar 11 20:36:01 gengar NetworkManager[713]: <info>  [1710185761.1262] agent-manager: agent[eeead7ef357c23bb,:1.38/org.freedesktop.nm-applet/1000]: agent registered
Mar 11 20:36:08 gengar NetworkManager[713]: <warn>  [1710185768.6121] device (wlp3s0): re-acquiring supplicant interface (#5).
Mar 11 20:36:08 gengar NetworkManager[713]: <error> [1710185768.6979] device (wlp3s0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn't grab this interface.
Mar 11 20:36:08 gengar NetworkManager[713]: <info>  [1710185768.6980] device (wlp3s0): supplicant interface keeps failing, giving up
And here is the output of systemctl status wpa_supplicant

Code: Select all

Mar 11 20:36:08 gengar wpa_supplicant[714]: nl80211: kernel reports: Match already configured
Mar 11 20:36:08 gengar wpa_supplicant[714]: nl80211: kernel reports: Match already configured
Mar 11 20:36:08 gengar wpa_supplicant[714]: nl80211: kernel reports: Match already configured
Mar 11 20:36:08 gengar wpa_supplicant[714]: nl80211: kernel reports: Match already configured
Mar 11 20:36:08 gengar wpa_supplicant[714]: ctrl_iface exists and seems to be in use - cannot override it
Mar 11 20:36:08 gengar wpa_supplicant[714]: Delete '/run/wpa_supplicant/wlp3s0' manually if it is not used anymore
Mar 11 20:36:08 gengar wpa_supplicant[714]: Failed to initialize control interface 'DIR=/run/wpa_supplicant GROUP=netdev'.
                                            You may have another wpa_supplicant process already running or the file was
                                            left by an unclean termination of wpa_supplicant in which case you will need
                                            to manually remove this file before starting wpa_supplicant again.
Mar 11 20:36:08 gengar wpa_supplicant[714]: wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
Mar 11 20:36:08 gengar wpa_supplicant[714]: wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
Mar 11 20:36:08 gengar wpa_supplicant[714]: nl80211: deinit ifname=wlp3s0 disabled_11b_rates=0
I wanted to make a copy of the wlp3s0 file in case deleting it causes more problems but then:

Code: Select all

# cp wlp3s0 /home/patryk/
cp: cannot open 'wlp3s0' for reading: No such device or address
So i decided to ask here first since i really dont want to go through installing and configuring everything in case it causes more problems i dont know how to fix and have to reinstall.

Thanks in advance any help is appreciated.

User avatar
fabien
Forum Helper
Forum Helper
Posts: 688
Joined: 2019-12-03 12:51
Location: Anarres (Toulouse, France actually)
Has thanked: 62 times
Been thanked: 161 times

Re: changing wifi network on minimal debian install

#2 Post by fabien »

Hello rrekaf, welcome to the forums!

Could you please post the output of

Code: Select all

$> cat /etc/network/interfaces{,.d/*}

Post Reply