After upgrade from 22.04 to 22.10, DNS does’t work anymore

cn flag

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

chili555 avatar
cn flag
"My /etc/resolve.conf doesn’t exits" I believe it is `/etc/resolv.conf` Let's take a look at: `ls -al /etc/resolv.conf` Welcome to Ask Ubuntu.
Vidy Videni avatar
cn flag
@chili555, thanks, it is a typo, fixed.
cn flag

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.

I sit in a Tesla and translated this thread with Ai:


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.