Error: RTNETLINK answers: File exists ifup: failed to bring up wlan0
This error is usually happening on bringing up the wireless interface wlan0.
To resolve this problem, we need to flush the wlan0 device before running ifup.
#ip addr flush dev wlan0