OS:
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid

Error:
failed to stat component /etc/network/if-pre-up.d/wpasupplicant: No such file or directory

Step 1: Check the file
/etc/network/if-up.d/wpasupplicant: broken symbolic link to `../../wpa_supplicant/ifupdown.sh’

Step 2: wpasupplicant installed?
dpkg -S wpasupplicant

wpasupplicant: /usr/share/doc/wpasupplicant/examples/openCryptoki.conf
wpasupplicant: /usr/share/doc/wpasupplicant/README.Debian.gz
wpasupplicant: /usr/share/doc/wpasupplicant/README.modes.gz
wpasupplicant: /usr/share/doc/wpasupplicant/examples/wpa-psk-tkip.conf
wpasupplicant: /usr/share/lintian/overrides/wpasupplicant
wpasupplicant: /etc/network/if-pre-up.d/wpasupplicant
wpasupplicant: /usr/share/doc/wpasupplicant/README-WPS.gz
wpasupplicant: /usr/share/doc/wpasupplicant/README-P2P.gz
wpasupplicant: /usr/share/doc/wpasupplicant/examples/ieee8021x.conf
wpasupplicant: /etc/network/if-post-down.d/wpasupplicant
wpasupplicant: /usr/share/doc/wpasupplicant/NEWS.Debian.gz
wpasupplicant: /usr/share/doc/wpasupplicant/examples/wpa2-eap-ccmp.conf
wpasupplicant: /usr/share/doc/wpasupplicant/examples/wpa-roam.conf
wpasupplicant: /usr/share/doc/wpasupplicant/copyright
wpasupplicant: /usr/share/doc/wpasupplicant/README.gz
wpasupplicant: /usr/share/doc/wpasupplicant/examples/wpa_supplicant.conf.gz
wpasupplicant: /etc/network/if-up.d/wpasupplicant
wpasupplicant: /usr/share/doc/wpasupplicant/examples/plaintext.conf
wpasupplicant: /usr/share/doc/wpasupplicant/examples/udhcpd-p2p.conf
wpasupplicant: /etc/network/if-down.d/wpasupplicant
wpasupplicant: /usr/share/doc/wpasupplicant/examples/wep.conf
wpasupplicant: /usr/share/doc/wpasupplicant
wpasupplicant: /usr/share/doc/wpasupplicant/examples
wpasupplicant: /usr/share/doc/wpasupplicant/changelog.Debian.gz

Step 3: /etc/network/if-up.d/wpasupplicant – did not exist

In /etc/wpa_supplicant the files were

action_wpa.sh.dpkg-new functions.sh.dpkg-new ifupdown.sh.dpkg-new

The fix was:
root@box:/etc/wpa_supplicant# mv ifupdown.sh.dpkg-new ifupdown.sh
root@box:/etc/wpa_supplicant# mv functions.sh.dpkg-new functions.sh
root@box:/etc/wpa_supplicant# mv action_wpa.sh.dpkg-new action_wpa.sh

Then networking started up.
root@box:/etc/wpa_supplicant# ifup venet0
root@box:/etc/wpa_supplicant# ifup venet0:0

0.00 avg. rating (0% score) - 0 votes

You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply