Thanks everyone for your quick followup.
Sorry for not including platform information: This is running on Ubuntu 16.04 (x86, 64 bit). The package was built with snapcraft 2.29.
you should not manually tinker with the link but use “snap revert core” so that all meta-data, configs etc are properly rolled back too
Thanks, that answers part of my second question. Is there also a way to specify this as part of the build process (snapcraft)?
The application is pharo, although I don’t think you actually need it. You should be able to run the shell for any application with the broken core and see the problem, e.g.:
snap run --shell pharo
/snap/core/2381/lib/ld-linux.so.2
Note that if a different version of core is current, the error won’t occur.
If you still want to try pharo: to force the 32 bit version to run (it also contains a 64 bit version, which is the default):
sudo snap install pharo --classic
mkdir pharo
cd pharo
pharo.cleanimage32
pharo.ui Pharo.image
Thanks again,
Alistair