0

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

1 Answers1

0

It seems the systemd-resolved is not included in systemd in Ubuntu 20.10, after upgrading, I installed it manually,

sudo apt install systemd-resolved

Now everything works.