79

I am going through some tutorials. When I try to execute systemd-resolve --status in Ubuntu 22.04 desktop, the system reports command is not found. What am I doing wrong here?

I tried running sudo apt-get install -y systemd but it seems like systemd-resolve is not installed. Please help.

Ajay
  • 2,241
kwoonfai
  • 891

3 Answers3

124

Use resolvectl status instead.

In systemd 239 systemd-resolve has been renamed to resolvectl (see here).

For the most part resolvectl offers the same options as systemd-resolve, though they may be named slightly differently. Run resolvectl --help to find what you are looking for.

codezalot
  • 1,348
20

Here I updated ubuntu to 22.04 and my VPN stopped working. I fixed it with: sudo ln /usr/bin/resolvectl /usr/bin/systemd-resolve

-4

First try these commands:

systemctl status 

or

sudo service --status-all 
zx485
  • 2,865