Hello. Ask questions about the ifup command. I'm sorry if it's a weird question. If you know anything, please let me know.
I modified the following files and run sudo ifup --force wlan0.
/etc/network/interfaces
Then, the following error occurs and wireless connection fails.
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlan0.
I investigated. I found that if you execute killall wpa_suppulicant once, you can use ifup command.
I'm using debian 10.4. Do I have to killall every time I boot?
Also, the killall command is not supported in Debian 10.4. (Maybe) I think it was supported by default in Debian 9.6. Is the killall command no supported by default?
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
ifup command fails
-
- Posts: 932
- Joined: 2020-05-03 14:16
- Has thanked: 7 times
- Been thanked: 68 times
Re: ifup command fails
First of all, ifup/down and ifconfig are deprecated if favor of ip.
To bring up the interface You should use:
Another problem is that the interface name wlan0 is no longer used (by default).
To list available interfaces use:Wireless interface names are starting with 'wl'
------------------------
Yes, killall is not installed by default, which is strange, because the psmisc package contains also other very useful tools, like pstree - somehow I can't believe that this decision was taken based on popcon stats...
To bring up the interface You should use:
Code: Select all
ip link set <interface> up #or down, to disable it
To list available interfaces use:
Code: Select all
ip link show
------------------------
Yes, killall is not installed by default, which is strange, because the psmisc package contains also other very useful tools, like pstree - somehow I can't believe that this decision was taken based on popcon stats...
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed
The_full_story and Nothing_have_changed
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: ifup command fails
Although it is true that ip has replaced ifconfig it is most certainly *not* a replacement for ifupdown — the ip command cannot associate with wireless networks at all, unlike ifupdown. The ifupdown utility is alive and well and will continue to be supported in Debian for the foreseeable future.LE_746F6D617A7A69 wrote:First of all, ifup/down and ifconfig are deprecated if favor of ip.
Looks like the /etc/network/if-pre-up.d/wpasupplicant script is broken.test-men wrote:I modified the following files and run sudo ifup --force wlan0.
/etc/network/interfaces
Then, the following error occurs and wireless connection fails.Code: Select all
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1 Failed to bring up wlan0.
Please post the full output of
Code: Select all
grep -vR '^#\|^$' /etc/network
deadbang
-
- Posts: 932
- Joined: 2020-05-03 14:16
- Has thanked: 7 times
- Been thanked: 68 times
Re: ifup command fails
It is a replacement for ifup/down - You can create tunnels, bridges, etc with a single command - but You are right - it can't replace ifup/down in case of standard wifi networks - my bad, sorry for posting misleading information ...Head_on_a_Stick wrote:Although it is true that ip has replaced ifconfig it is most certainly *not* a replacement for ifupdown — the ip command cannot associate with wireless networks at all, unlike ifupdown. The ifupdown utility is alive and well and will continue to be supported in Debian for the foreseeable future.LE_746F6D617A7A69 wrote:First of all, ifup/down and ifconfig are deprecated if favor of ip.
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed
The_full_story and Nothing_have_changed