Serial-port interface not available?

I’m encountering the following:

$ sudo snap connect some-snap:serial-port
error: snap "snapd" has no "serial-port" interface slots

with

$ snap version
snap    2.67
snapd   2.67
series  16
debian  11
kernel  5.15.84-v8+

Any ideas why this might be, or how I can troubleshoot it? The documentation doesn’t give any hints as to situations where this error might come up.

FWIW the device in question does have serial port devices.

This is true and has always been, serial port slots can only be provided by gadget snaps since they’re hardware specific…

One exception is hotplug support, if you enable this serial port slots are automatically made available for serial to USB dongles…

Ah ok, thanks @ogra. Somehow I had missed this previously. In that case the serial-port plug on the snap we have is probably not that useful :joy:.

I noticed that the plug wasn’t connected while troubleshooting an issue with the snap application getting “access denied” when trying to access /dev/ttyAMA0. Interestingly this “access denied” is only an issue for a newer version of the snap that’s on core24 but isn’t an issue for an older version that’s on core22. Anyway, that’s tangential to the topic at hand - I need to do some deeper troubleshooting there to see what’s happening…