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

podman and buildah downloaded from "xUbuntu_18.04" are not compatible with Ubuntu 18.04 due to GLIBC 2.28 #8943

Closed
AlexanderSamoilov opened this issue Jan 12, 2021 · 6 comments
Assignees
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@AlexanderSamoilov
Copy link

Please see first the original issue openSUSE/open-build-service#10610 that was closed as unrelevant with a suggestion to open an issue on Podman.

PROBLEM:

I've tried running podman and buildah from Kubic project from https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/ on Ubuntu 18.04.

I downloaded them from https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/buildah_1.18.0~3.tar.gz and https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/podman_2.2.1~4.tar.gz respectively.

Both fail on Ubuntu 18.04 with the error message "/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found", because Ubuntu/xUbuntu 18.04 have just GLIBC 2.27 and no GLIBC 2.28.

So it was either wrongly built and the build should be fixed to be indeed compatible with Ubuntu 18.04, or the subfolder name "xUbuntu_18.04" should be corrected/removed, because it confuses the user who wants to install these products for Ubuntu/xUbuntu 18.04.

If these binaries were built for some non-standard configuration (that is Ubuntu 18.04 + GLIBC 2.28) then please mention it on the download page and explain where can one get this "special" Ubuntu.

--
Best Regards,
Alexander

@rhatdan
Copy link
Member

rhatdan commented Jan 12, 2021

@lsm5 PTAL

@afbjorklund
Copy link
Contributor

afbjorklund commented Jan 12, 2021

The build log looks reasonable:
https://build.opensuse.org/package/live_build_log/devel:kubic:libcontainers:stable/podman/xUbuntu_18.04/x86_64

[   18s] [23/264] installing libc6-2.27-3ubuntu1

Something must have gone wrong in the packaging... Does the regular .deb work, maybe only the .tar.gz is broken ?

[  245s] ln: failed to create hard link '///usr/src/packages/DEBS/podman_2.2.1~4.dsc': File exists
[  245s] ln: failed to create hard link '///usr/src/packages/DEBS/podman_2.2.1~4.tar.gz': File exists

@AlexanderSamoilov
Copy link
Author

Well, it took a little time for me to get the .deb files from build.opensuse.org that forced me to create an account there (download.opensuse.org provides only .tar.gz and .dsc ones).
I confirm that your assumption is right, the binaries from .deb's really work. I checked the size and md5 for the binaries in .deb's and in .tar.gz and see the big difference (the smaller ones are from .deb):

63325656 Dec 9 17:50 ~/jenkins/tools/org.jenkinsci.plugins.docker.commons.tools.DockerTool/Podman/BUILD/bin/podman
47702736 Dec 9 18:54 podman/usr/bin/podman

36139344 Dec 7 21:39 ~/jenkins/tools/org.jenkinsci.plugins.docker.commons.tools.DockerTool/Buildah/BUILD/bin/buildah
27085488 Dec 8 21:26 buildah/usr/bin/buildah

So it looks as a build issue. The .tar.gz should provide the same binaries on my opinion.
I will try to use .deb files as a quick workaround now, but could you please also fix .tar.gz?
The reason I prefer that format is that I install these container tools in the automated mode from Jenkins "Global Tool Configuration" therefore Jenkins should be able to download it without being authenticated. But as I said above, the .deb files are not available for anonymous download under https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/.

@afbjorklund
Copy link
Contributor

afbjorklund commented Jan 12, 2021

@AlexanderSamoilov : I don't think that .tar.gz is meant for public consumption, it has a .git directory and what not. So just some internal piece of the build machinery, which is also why it requires login I suppose.

Most people would just follow https://podman.io/getting-started/installation#ubuntu

. /etc/os-release

echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" \
| sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key \
| sudo apt-key add -

sudo apt-get update
sudo apt-get -y install podman
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  catatonit conmon containernetworking-plugins containers-common containers-golang containers-image cri-o-runc crun dmsetup iptables libdevmapper1.02.1
  libglib2.0-0 libglib2.0-data libgpgme11 libicu60 libip4tc0 libip6tc0 libiptc0 libmnl0 libnetfilter-conntrack3 libnfnetlink0 libxml2 libxtables12 libyajl2
  multiarch-support podman-plugins shared-mime-info uidmap varlink xdg-user-dirs
Suggested packages:
  kmod
Recommended packages:
  slirp4netns
The following NEW packages will be installed:
  catatonit conmon containernetworking-plugins containers-common containers-golang containers-image cri-o-runc crun dmsetup iptables libdevmapper1.02.1
  libglib2.0-0 libglib2.0-data libgpgme11 libicu60 libip4tc0 libip6tc0 libiptc0 libmnl0 libnetfilter-conntrack3 libnfnetlink0 libxml2 libxtables12 libyajl2
  multiarch-support podman podman-plugins shared-mime-info uidmap varlink xdg-user-dirs
0 upgraded, 31 newly installed, 0 to remove and 5 not upgraded.
Need to get 40.4 MB of archives.
After this operation, 193 MB of additional disk space will be used.

Otherwise it can be a bit hard to navigate the OBS site...

build.opensuse.org

The download button is hidden on the far right, of the landing page:
https://build.opensuse.org/package/show/devel:kubic:libcontainers:stable/podman
build-opensuse-podman

software.opensuse.org

Then you get to the friendly page, which will lead you to the apt config or directly to the deb file:
https://software.opensuse.org//download.html?project=devel%3Akubic%3Alibcontainers%3Astable&package=podman
software-opensuse-podman

download.opensuse.org

And if you do that setup, then you will finally find the download location (for each architecture).
https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/amd64/

# apt-cache madison podman
    podman |    2.2.1~4 | https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04  Packages

Handling all the dependencies manually, is somewhat painful.

@AlexanderSamoilov
Copy link
Author

Dear @afbjorklund,

Thanks for your answer! You mixed it up it little bit saying that tar.gz requires login. I needed to be logged in to get the .deb file.
But after your explanation I understood that I used the wrong link https://build.opensuse.org/package/binaries/devel:kubic:libcontainers:stable/podman/xUbuntu_18.04.
The correct link is https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/amd64/ and I did not find where the .deb files earlier, because I looked into the upper directory (not in the /amd64).

So I can use now the .deb files in automated mode, without being logged in and this fits my expectation.
This is up to you, whether to fix tar.gz files especially if they are intended for internal usage only as you said.
Thanks again and I am closing this ticket now.

@afbjorklund
Copy link
Contributor

This is up to you, whether to fix tar.gz files especially if they are intended for internal usage only as you said.

Actually it is up to the project. I do believe that there are some static binaries available - but those tarballs are not it.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

4 participants