Snapcraft cleanbuild fails in non-english locales?

I happen to have a german local set normally on my Ubuntu 18.04 workstation.
Today I was messing around learning snapcraft (2.42.1, installed with snap), and got the error:

Failed to detect container architecture: The output from ‘lxc info’ could not be read:

from snapcraft cleanbuild. Setting my locale to english got rid of the problem.

I noticed a couple russian posts about the same issue, so I’m not the first to hit this.

1 Like

You might want to check out the bug tracker:

Bug #1780061 “Can’t read lxd info with german locale” : Bugs : Snapcraft

Thanks for the link.

(I initially considered filing a bug, which would have prompted me to find that, but I went for the forum instead.)

Confirmed : not working with french locale either.
Running LANG=en_US.UTF-8 LANGUAGE=en_US snapcraft cleanbuild seems to work, though.
Bug report updated.

1 Like