ifup command fails

New to Debian (Or Linux in general)? Ask your questions here!

ifup command fails

Postby test-men » 2020-08-25 12:19

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?
test-men
 
Posts: 1
Joined: 2020-08-25 11:57

Re: ifup command fails

Postby LE_746F6D617A7A69 » 2020-08-25 13:01

First of all, ifup/down and ifconfig are deprecated if favor of ip.

To bring up the interface You should use:
Code: Select all
ip link set <interface> up #or down, to disable it

Another problem is that the interface name wlan0 is no longer used (by default).
To list available interfaces use:
Code: Select all
ip link show
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...
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
LE_746F6D617A7A69
 
Posts: 340
Joined: 2020-05-03 14:16

Re: ifup command fails

Postby Head_on_a_Stick » 2020-08-25 14:58

LE_746F6D617A7A69 wrote:First of all, ifup/down and ifconfig are deprecated if favor of ip.

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.

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.

Looks like the /etc/network/if-pre-up.d/wpasupplicant script is broken.

Please post the full output of
Code: Select all
grep -vR '^#\|^$' /etc/network
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12485
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: ifup command fails

Postby LE_746F6D617A7A69 » 2020-08-25 19:32

Head_on_a_Stick wrote:
LE_746F6D617A7A69 wrote:First of all, ifup/down and ifconfig are deprecated if favor of ip.

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.
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 ...
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
LE_746F6D617A7A69
 
Posts: 340
Joined: 2020-05-03 14:16


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable