Skip to content

GLIBC_2_32 and 2_34 not found only when running snap command #2

@HamzaNaseerFHWS

Description

@HamzaNaseerFHWS

Hey @anonymouse64 ! Its a really helpful example you have here, really appreciated :D
I have followed your instructions on both Ubuntu 20.04 LTS and 22.04 LTS and I seem to be getting this error when i run the hello-world command:

snap/docker-snap-usage-example/x2/docker-snap/bin/docker: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /snap/docker-snap-usage-example/x2/docker-snap/bin/docker)

/snap/docker-snap-usage-example/x2/docker-snap/bin/docker: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /snap/docker-snap-usage-example/x2/docker-snap/bin/docker)

What version of Ubuntu are you building this on? And I am not sure if I am missing something but why does running the command
sudo docker run hello-world
work through the terminal directly and not through your snap script?

ADDITIONAL INFO:
I have actually used snapcraft --destructive-mode to create the snap, since I am creating it from a VirtualBox VM. Can that also be the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions