Launchpad core20 install fails on amd64

My OpenJDK Snap has just recently started failing to build on Launchpad but only on the amd64 architecture. Builds on the other architectures work fine: arm64, armhf, ppc64el, and s390x. The failure is:

Running '['linux64', 'snap', 'install', '--channel=stable', 'core20']'. Attempt 1
cannot set capabilities: Operation not permitted
Running '['linux64', 'snap', 'install', '--channel=stable', 'core20']'. Attempt 2
cannot set capabilities: Operation not permitted
Running '['linux64', 'snap', 'install', '--channel=stable', 'core20']'. Attempt 3
cannot set capabilities: Operation not permitted
Install failed

Where it works on arm64, for example, the same sequence is:

Running '['linux64', 'snap', 'install', '--channel=stable', 'core20']'. Attempt 1
core20 20250730 from Canonical** installed
snap "core20" has no updates available
Running '['linux64', 'snap', 'install', '--channel=latest/stable', 'snapd']'. Attempt 1
2025-10-16T17:45:33Z INFO Waiting for automatic snapd restart...
snapd 2.71 from Canonical** installed
snap "snapd" has no updates available

The most recent builds, including the failed build on amd64, are listed on the OpenJDK Snap Launchpad page.

Any ideas why this might be happening?

Thanks,
John

1 Like

Could it be that changing the core20 to core24 fixes it? I just did that for my app, and the gcc (in my case) libraries (and versions) were present, as required for the updated other components. Don’t 100% know linux, but there are libraries that get included for the core… core 24 is the latest. Backwards compatible I am assuming, because it all compiles down to such a low level. I am assuming that is the magic of electron… but still learning…