Zeroconf fails to set up with HASS Core on Ubuntu

Could this be due to my previously having installed zeroconf outside of HASS?

I’m afraid that searching the web for this error gets me nothing, and I don’t know how to troubleshoot it further.

Logger: homeassistant.setup
Source: components/zeroconf/__init__.py:133 
First occurred: September 9, 2023 at 1:35:45 AM (1 occurrences) 
Last logged: September 9, 2023 at 1:35:45 AM

Error during setup of component zeroconf
Traceback (most recent call last):
  File "/snap/home-assistant-snap/570/lib/python3.11/site-packages/homeassistant/setup.py", line 286, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/snap/home-assistant-snap/570/lib/python3.11/site-packages/homeassistant/components/zeroconf/__init__.py", line 192, in async_setup
    aio_zc = await _async_get_instance(hass, **zc_args)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/snap/home-assistant-snap/570/lib/python3.11/site-packages/homeassistant/components/zeroconf/__init__.py", line 133, in _async_get_instance
    zeroconf = HaZeroconf(**zcargs)
               ^^^^^^^^^^^^^^^^^^^^
  File "/snap/home-assistant-snap/570/lib/python3.11/site-packages/zeroconf/_core.py", line 492, in __init__
    listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/snap/home-assistant-snap/570/lib/python3.11/site-packages/zeroconf/_utils/net.py", line 366, in create_sockets
    add_multicast_member(cast(socket.socket, listen_socket), i)
  File "/snap/home-assistant-snap/570/lib/python3.11/site-packages/zeroconf/_utils/net.py", line 288, in add_multicast_member
    listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value)
OSError: [Errno 19] No such device

No help at all for this?

Snap is not an official installation method, so the problem could be anything.