I’ve tried the snapcraft package from apt and also snapcraft standard and snapcraft --edge from snapd to create a simple web server in Python 3.6. When I do get to the part when I need to prime it (server), I keep getting this message about GLIBC which I don’t remember getting in Ubuntu 16.04:
The GLIBC version of the targeted core is 2.23. A newer libc will be required for the following files:
- /home/teg/testserver/snaps/prime/usr/bin/python3.6m (requires GLIBC 2.25)
- /home/teg/testserver/snaps/prime/usr/lib/x86_64-linux-gnu/libexpatw.so.1.6.7 (requires GLIBC 2.25)
- /home/teg/testserver/snaps/prime/usr/bin/python3.6 (requires GLIBC 2.25)
- /home/teg/testserver/snaps/prime/lib/x86_64-linux-gnu/libexpat.so.1.6.7 (requires GLIBC 2.25)
‘libc6’ is required inside the snap for this part to work properly.
Add it as a
stage-packagesentry for this part.
It seems weird to have to manually add stage-packages: [libc6] to that Python part since this plugin is a base one with Snapcraft.