Snapcraft failed to build due to incorrect glibc version

Rebuilding package with new version after successfully build it last week but this week I am having issues:

The GLIBC version of the targeted core is 2.23. A newer libc will be required for the following files:

... /prime/lib/x86_64-linux-gnu/ (requires GLIBC 2.25)
... /prime/lib/x86_64-linux-gnu/ (requires GLIBC 2.25)
... /prime/usr/lib/x86_64-linux-gnu/ (requires GLIBC 2.25)
.../prime/usr/lib/x86_64-linux-gnu/ (requires GLIBC 2.26)
.../prime/usr/lib/x86_64-linux-gnu/ (requires GLIBC 2.25)
... /prime/lib/x86_64-linux-gnu/ (requires GLIBC 2.25)

‘libc6’ is required inside the snap for this part to work properly. Add it as a stage-packages entry for this part.

Please advise how do I update snap glibc version?

Many Thanks

Are you building on a system that is not Ubuntu Xenial 16.04? If you are then you will need to either create a virtual machine with Ubuntu Xenial 16.04 for the build, or use LXD (using LXD is currently the strongly recommended method).

Hi daniel,

Problem fixed! Thanks I was already running lxd on Ubuntu 18.04 but the issues was running cleanbuild I completely forgot about that and for some reason that messes things up :slight_smile:

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04 LTS Release: 18.04 Codename: bionic

$ sudo lxd --verbose EROR[07-22|07:44:33] Failed to start the daemon: LXD is already running INFO[07-22|07:44:33] Starting shutdown sequence INFO[07-22|07:44:33] Saving simplestreams cache INFO[07-22|07:44:33] Saved simplestreams cache Error: LXD is already running