@Georg I had similar problems with Libertine.
Instead of editing the file from "within" the chroot, i just edited it from outside (as the user "phablet"):
nano /home/phablet/.cache/libertine-container/focal/rootfs/etc/nsswitch.conf
also I highly recommend using the ADB Shell or SSH 🙂