Just a note because I know several of you sometimes interact with snapd directly using curl. In 16.04 this works (and I’ve seen it used in a tutorial somewhere):
sudo curl -N -s -0 --unix-socket /run/snapd.socket http:/v2/snaps
but from 17.10 onwards it does not. At first (from looking at snapd’s debug logs) it’s as if curl deletes the first element of the path (snapd only gets /snaps
), but what’s actually happening is that that URL is malformed so it shouldn’t’ve ever worked. This is talked about in curl#936, where it’s pointed out that a proper URL, e.g. http://localhost/v2/snaps
, works just fine.
HTH, HAND!