avahi-daemon fails to start in chroot i386 on raspberry pi

0

This is on a raspberry pi 3b+, with raspbian installed (stretch) I have installed a chroot according to this: https://www.novaspirit.com/2019/04/15/run-x86-arm/

After, I installed it, I planned to use the chroot for a CUPS server, but found out that even though it was running, other devices failed to discover it.

I found out that the cause was due to avahi-daemon not running, so inside the chroot, I ran /etc/init.d/avahi-daemon restart but failed.

So in order to get debug messages, I ran /usr/sbin/avahi-daemon and got this:

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Found user 'avahi' (UID 106) and group 'avahi' (GID 112).
Successfully dropped root privileges.
avahi-daemon 0.6.32 starting up.
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
dbus_bus_get_private(): Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
WARNING: Failed to contact D-Bus daemon.
avahi-daemon 0.6.32 exiting.

I tried restarting the dbus inside the chroot /etc/init.d/dbus restart, tried mounting (outside chroot) sudo mount --bind /var/run/dbus/ path_to_chroot/var/run/dbus/ but still getting the same error message.

Simon Cheng

Posted 2019-09-09T10:54:14.500

Reputation: 11

No answers