What I tried
sudo service NetworkManager status
NetworkManager is active running.
sudo service systemd-resolved start
Got error:
Failed to restart systemd-resolved.service: Unit systemd-resolved.service not found
My /etc/resolv.conf doesn’t exits。
sudo ln /usr/bin/resolvectl /usr/bin/systemd-resolv
Not working because /usr/bin/resolvectl not exists
Then I reinstalled systemd
sudo apt reinstall systemd
Unfortunately everything is still the same as above.
Related issues
No one works for my case.
DNS issue after upgrading to 22.10
Upgraded to 22.04.01, DNS didn't work, tried to fix, now Ethernet doesn't work