Q&A system administration¶
Linux¶
Fix resolv.conf after update to Ubuntu 24.04¶
After do-release-upgrade from Ubuntu 22.04 to 24.04 the resolver stops working. As it turned out, this was due to a change in the setup of /etc/resolv.conf. Fix this with this:
sudo systemctl status systemd-resolved.service
sudo systemctl enable systemd-resolved.service
sudo systemctl start systemd-resolved.service
sudo systemctl status systemd-resolved.service
MkDocs¶
No longer automatic updates with mkdocs serve¶
Since recent releases of MkDocs (2/12/2025) mkdocs serve no longer automatically watches the docs/ directory and mkdocs.yaml file. This means there is no automatic update of the site after changing any file.
This is noted in this issue:
This can be solved by either pinning click to version 8.2.1 or using mkdocs serve --livereload.
Pinning with uv like this:
uv add click==8.2.1