Apt can't resolve DNS on a LXC debian bullseye container

Thank you for your help, it was the starting point of a few-hours long investigation.
I managed to solve the problem: somehow the /etc directory had permissions rwxr-x— and, of course, needed rwxr-xr-x. An apt sub-process that did not have root privileges could not read /etc/resolv.conf, thus the error I kept getting.

1 Like