I'm running Debian buster 10.7 with i3 window manager on a i686 arch personal pc. Just for the sake of experimentation, I did
apt remove lightdm, and thought that it would be fine with just a tty login prompt rather than default lightdm. When I typed in
apt remove lightdm, it also showed a bunch of packages that said are no longer needed and could be removed with
apt autoremove. So I went with it, I did
apt remove lightdm && apt autoremove, and then I noticed while autoremove was complete, it also uninstalled
network-manager. At first glance, I thought it deleted a previous version of network manager since I updated the system yesterday. I went along and did a reboot. Then plugged in my cable, and there was no internet. I tried my phone's tethering as well, which I frequently use for net browsing and such. Now I'm left with an offline pc. I did
ip addr, and it shows my cord is connected, but no ipv4 address is shown, which usually did before.
I did as root
systemctl start NetworkManager, and it said, it was masked. I did
systemctl status NetworkManager, it says dead service. I did
systemctl unmask NetworkManager.service, and then
systemctl start NetworkManager now it says no service NetworkManager.service found.
I'm failry a noob. What can I do to fix this issue.