I solved it by restarting the network, with the following command: sudo systemctl restart NetworkManager.service