Just installed Elementary OS on an HP Stream notebook and the wifi will not connect. It detects the network, asks for a password sometimes, but never connects. Had the same problem in Lubuntu. I think it's the wifi chipset: RealTek 8723BE. Any advice?
You don't need to install anything as this is an issue with HP using one antenna wire on a wireless chip with 2 antenna connections.
First we will unload the module and reload it using the module parameter to try one option for the antenna
sudo modprobe -r rtl8723be sudo modprobe rtl8723be ant_sel=1
Then we can check to see if any AP's are found with
iwlist scan | egrep -i 'ssid|quality'
Then we can try the other antenna option and compare results
sudo modprobe -r rtl8723be sudo modprobe rtl8723be ant_sel=2 iwlist scan | egrep -i 'ssid|quality'
ant_sel=1 had better results then
echo "options rtl8723be ant_sel=1" | sudo tee /etc/modprobe.d/rtl8723beant.conf
ant_sel=2 was the better option
echo "options rtl8723be ant_sel=2" | sudo tee /etc/modprobe.d/rtl8723beant.conf