Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing to Core24 breaks docker setup #5234

Open
osteenbergen opened this issue Feb 4, 2025 · 0 comments
Open

Changing to Core24 breaks docker setup #5234

osteenbergen opened this issue Feb 4, 2025 · 0 comments

Comments

@osteenbergen
Copy link

osteenbergen commented Feb 4, 2025

Bug Description

Snapcraft 8 was based on core22 and now, without a mayor number change, it has switched to core24 breaking existing docker setups that use Ubuntu 22.04 as base.

We use Ubuntu 22.04/core22 as that uses Python 3.10 by default, matching our internal requirements for Python.

To Reproduce

See #5079 (comment) for example docker files

Environment

Docker image with Ubuntu 22.04 as base to build a Python 3.10 application

snapcraft.yaml

Not applicable as build environment is broken

Relevant log output

admin@39a5fec9cccd:/build$ snapcraft
/snap/bin/snapcraft: 3: exec: /snap/snapcraft/current/bin/python3: not found
admin@39a5fec9cccd:/build$ snapcraft
/snap/bin/snapcraft: 3: exec: /snap/snapcraft/current/bin/python3: not found
admin@39a5fec9cccd:/build$ ls -la /snap/snapcraft/current/bin/python3
lrwxrwxrwx 1 root root 21 Jan 23 17:19 /snap/snapcraft/current/bin/python3 -> ../usr/bin/python3.12
admin@39a5fec9cccd:/build$ ls -la /snap/snapcraft/current/usr/bin/python3.12
-rwxr-xr-x 1 root root 8031424 Jan 23 17:19 /snap/snapcraft/current/usr/bin/python3.12
admin@39a5fec9cccd:/build$ ldd /snap/snapcraft/current/usr/bin/python3.12
	linux-vdso.so.1 (0x00007ffe7171f000)
	libm.so.6 => not found
	libz.so.1 => not found
	libexpat.so.1 => not found
	libc.so.6 => not found

Additional context

Mostly this ticket is about why introduce a mayor change to snapcraft without upgrading the version to 9.x.

Fixing the docker file by adding core24 and probably fixing python related issues is likely doable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant