When I boot my PC I got an issue with DNS (/etc/resolv.conf is empty)
After research I found that on start sytemed-resiolved Fails with such errors:
$ journalctl -b -u systemd-resolved.service --no-hostname --no-pager
Dec 21 22:59:52 systemd-resolved[855]: Using system hostname 'sawinjer-machine'.
Dec 21 22:59:52 systemd-resolved[855]: Failed to connect to system bus: Permission denied
Dec 21 22:59:52 systemd-resolved[855]: Could not create manager: Permission denied
Dec 21 22:59:52 systemd[1]: systemd-resolved.service: Main process exited, code=exited, status=1/FAILURE
Dec 21 22:59:52 systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Dec 21 22:59:52 systemd[1]: Failed to start systemd-resolved.service - Network Name Resolution.
Dec 21 22:59:52 systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 5.
All I found, topics about systemd-networkd, but I checked, and this service starts in normal mode
I’ve already tried to disable systemd-resolved, but it doesn’t help me
A temporary fix that I using now - that restart NetworkManager.service, it all fixes, but it is so annoying to do it on every boot
Also, I got such a certificates issue
which means that without VPN I can’t connect to some sites
@grumpey Thank you for your solution. I ran into the same problem today with my Framework Laptop when it crashed. Once booted up I couldn’t connect.
I followed your instructions here and it worked perfectly for me. So wanted to thank you once again for taking the time to help the other person and in turn helping others as well.
This procedure worked. Thank you, Joe. However, I recommend editing the comment (if possible) so that newcomers will read that they should first set the SELinux mode to permissive before they run fixfiles run at boot.
I read the rest of the thread to be sure it applied to my situation before applying the solution, but others may not be so cautious and may slow down help they’re receiving elsewhere on the discussion site.
Thanks again; the solution worked for me as described.