Well, I was managing my wifi connections using wicd-gtk when I read the first option, it said something like "wired network" and a checkbox "use as default profile" and so on (not sure if its accurate, my os is in spanish). This option was checked and there was a dropdown with all the "profiles" (it was just 1 profile).
So seing that my laptop has neither ethernet adaptor nor wired connection I thought it was pointless and I deleted the profile.
To my surprise I broke all network connectivity in my laptop and can't get it back to work. I'm on the phone so its kinda hard to paste code. So far all I've tried is editing /etc/network/interfaces
adding the lines auto wlp1s0 iface wlp1s0 inet dhcp
and it looks like nothing's wrong there (when I first opened the file it just had auto lo iface lo inet dhcp
). Also tried restarting network-manager and networking and it tries to connect but fails. When I run ifdown & ifup on wlp1s0 (my wifi adapter) it says no DHCPOFFERS received
after 24 DHCPDISCOVER on wlp1s0
. I want to avoid reinstalling the os (Ubuntu 18.04 lts) but I think I completely broke it and will have to do it eventually if I want to use wifi again...
I don't know where to look, and what config file to look for, it seems I deleted a profile and I don't know how to restore it. Thank you in advance!
Edit:
I think I might have a clue: when I use nmcli
this is the output:
It says wlp1s0 not available, not sure if it is because I reverted the changes on etc/network/interfaces
to what I found when I first opened it. And if I run nmcli decice show wlp1s0 | grep IP4.DNS
it doesn't give any output.
Edit2:
Reverted all to a state where nmcli recognizes the iface but it fails to connect.
The last picture says: "failed connection. Network connection activation failed" or something like that.