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