snapcraft 构建问题:GLIBC 错误版本

snapcraft 构建问题:GLIBC 错误版本

上周成功构建后,本周用新版本重建包,但遇到了问题:

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/libexpat.so.1.6.7 (requires GLIBC 2.25)
- ... /prime/lib/x86_64-linux-gnu/libfdisk.so.1.1.0 (requires GLIBC 2.25)
- ... /prime/usr/lib/x86_64-linux-gnu/libexpatw.so.1.6.7 (requires GLIBC 2.25)
- .../prime/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.3.0 (requires GLIBC 2.26)
- .../prime/usr/lib/x86_64-linux-gnu/libgnutls.so.30.14.10 (requires GLIBC 2.25)
- ... /prime/lib/x86_64-linux-gnu/libbsd.so.0.8.7 (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.

请指教如何更新 snap glibc 版本?

非常感谢

答案1

找出了问题所在,问题是我试图运行 $ snapcraft 来构建,但是当我使用 cleanbuild 时它起作用了并且没有错误。

$ snapcraft cleanbuild

相关内容