You can severely break your computer doing this. You might need to reinstall your OS. Seriously. I’m warning you. Have back ups. Make sure you are wired to the internet. Have back ups and be ready for that OS to be replaced. Don’t do it on WiFi.
sudo apt-get remove --purge network-manager
sudo dhclient eth0
sudo apt-get install network-manager
That might work. It might not. It might make your system completely not functional and unable to reach the internet.
You can also read and then possibly try this
Good luck.
I made the mistake of installing pihole on this machine which is running kubuntu 20.04. When it finished, DNS didn't work anymore. I uninstalled piehole. Somehow I messed up network manager. It doesn't show that I have a network connection. I could ping IP addresses such as 8.8.8.8 but DNS still didn't work. I edited /etc/systemd/resolved.conf where I added DNS=8.8.8.8 and FallbackDNS=8.8.4.4. I rebooted and DNS is working again. Still, Network Manager is messed up. I click on it and it doesn't show any available networks. I can right click on the network manager icon, then click Configure network connections, and the ethernet connection is there. The option in Network manager to stop or start the network isn't there.Please somebody tell me how to fix this.Thanks.---------------------------------------------------PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.orgTo subscribe, unsubscribe, or to change your mail settings:https://lists.phxlinux.org/mailman/listinfo/plug-discuss
---------------------------------------------------