Connection failed Solve
Open your terminal and go to the directory using this command
cd /etc/NetworkManager

and now open the network manager config file using this command
sudo nano NetworkManager.conf



Change the value of managed false to true and save the file



now we need to restart the network so just type this command
systemctl stop NetworkManager
systemctl start NetworkManager