Hi I am going through some tutorials. When I try to execute systemd-resolve --status in Ubuntu 22.04 desktop, system reports command 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.
In systemd 239
systemd-resolve
was renamed toresolvectl
(see here). The available commands stay the same but have to be passed along slightly differently. Runresolvectl --help
to find what you are looking for.To answer your question: Use
resolvectl status
instead.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