SIOCSIFFLAGS: Operation not possible due to RF-kill
Apparently some linux distros soft block bluetooth and wifi by default. If you get this error message :
SIOCSIFFLAGS: Operation not possible due to RF-kill
Then that may be because the wireless adapters have been soft blocked.
You can check for this by issuing the command:
rfkill list
If the adapters that you want are in soft blocked state, then you can unblock them with the following commands. You can only use one of the two depending on what you want:
rfkill unblock wifi
rfkill unblock all