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

Cannot install Skopeo on Amazon Linux2 #1307

Closed
YikaiHu opened this issue Jun 8, 2021 · 4 comments
Closed

Cannot install Skopeo on Amazon Linux2 #1307

YikaiHu opened this issue Jun 8, 2021 · 4 comments

Comments

@YikaiHu
Copy link

YikaiHu commented Jun 8, 2021

Hi Skopeo Team, I met an error when I try to install Skopeo in an Amazon Linux2.

My install command is:

sudo yum -y install skopeo

The error is:

Failed to set locale, defaulting to C
Loaded plugins: copr, extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                                             | 3.7 kB  00:00:00
1 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package skopeo.x86_64 2:1.2.2-2.el7.3.1 will be installed
--> Processing Dependency: containers-common >= 4:1-4 for package: 2:skopeo-1.2.2-2.el7.3.1.x86_64
--> Running transaction check
---> Package containers-common.noarch 4:1-17.el7.17.1 will be installed
--> Processing Dependency: slirp4netns for package: 4:containers-common-1-17.el7.17.1.noarch
--> Processing Dependency: oci-runtime for package: 4:containers-common-1-17.el7.17.1.noarch
--> Processing Dependency: fuse-overlayfs for package: 4:containers-common-1-17.el7.17.1.noarch
--> Processing Dependency: container-selinux for package: 4:containers-common-1-17.el7.17.1.noarch
--> Running transaction check
---> Package container-selinux.noarch 2:2.107-3.el7 will be installed
--> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.107-3.el7.noarch
---> Package containers-common.noarch 4:1-17.el7.17.1 will be installed
--> Processing Dependency: oci-runtime for package: 4:containers-common-1-17.el7.17.1.noarch
---> Package fuse-overlayfs.x86_64 0:1.5.0-1.el7.1.1 will be installed
--> Processing Dependency: libfuse3.so.3(FUSE_3.2)(64bit) for package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64
--> Processing Dependency: libfuse3.so.3(FUSE_3.0)(64bit) for package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64
--> Processing Dependency: fuse3 for package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64
--> Processing Dependency: libfuse3.so.3()(64bit) for package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64
---> Package slirp4netns.x86_64 0:1.1.8-4.el7.7.1 will be installed
--> Processing Dependency: libslirp.so.0(SLIRP_4.1)(64bit) for package: slirp4netns-1.1.8-4.el7.7.1.x86_64
--> Processing Dependency: libslirp.so.0(SLIRP_4.0)(64bit) for package: slirp4netns-1.1.8-4.el7.7.1.x86_64
--> Processing Dependency: libslirp.so.0()(64bit) for package: slirp4netns-1.1.8-4.el7.7.1.x86_64
--> Running transaction check
---> Package containers-common.noarch 4:1-17.el7.17.1 will be installed
--> Processing Dependency: oci-runtime for package: 4:containers-common-1-17.el7.17.1.noarch
---> Package fuse-overlayfs.x86_64 0:1.5.0-1.el7.1.1 will be installed
--> Processing Dependency: libfuse3.so.3(FUSE_3.2)(64bit) for package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64
--> Processing Dependency: libfuse3.so.3(FUSE_3.0)(64bit) for package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64
--> Processing Dependency: fuse3 for package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64
--> Processing Dependency: libfuse3.so.3()(64bit) for package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64
---> Package libslirp.x86_64 0:4.3.1-4.el7 will be installed
---> Package policycoreutils-python.x86_64 0:2.5-22.amzn2 will be installed
--> Processing Dependency: setools-libs >= 3.3.8-2 for package: policycoreutils-python-2.5-22.amzn2.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-9 for package: policycoreutils-python-2.5-22.amzn2.x86_64
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-22.amzn2.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-22.amzn2.x86_64
--> Processing Dependency: libselinux-python for package: policycoreutils-python-2.5-22.amzn2.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-22.amzn2.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-22.amzn2.x86_64
--> Processing Dependency: libcgroup for package: policycoreutils-python-2.5-22.amzn2.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-22.amzn2.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-22.amzn2.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-22.amzn2.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-22.amzn2.x86_64
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.8.1-3.amzn2.1 will be installed
---> Package checkpolicy.x86_64 0:2.5-6.amzn2 will be installed
---> Package containers-common.noarch 4:1-17.el7.17.1 will be installed
--> Processing Dependency: oci-runtime for package: 4:containers-common-1-17.el7.17.1.noarch
---> Package fuse-overlayfs.x86_64 0:1.5.0-1.el7.1.1 will be installed
--> Processing Dependency: libfuse3.so.3(FUSE_3.2)(64bit) for package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64
--> Processing Dependency: libfuse3.so.3(FUSE_3.0)(64bit) for package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64
--> Processing Dependency: fuse3 for package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64
--> Processing Dependency: libfuse3.so.3()(64bit) for package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64
---> Package libcgroup.x86_64 0:0.41-21.amzn2 will be installed
---> Package libselinux-python.x86_64 0:2.5-12.amzn2.0.2 will be installed
---> Package libsemanage-python.x86_64 0:2.5-11.amzn2 will be installed
---> Package python-IPy.noarch 0:0.75-6.amzn2.0.1 will be installed
---> Package setools-libs.x86_64 0:3.3.8-2.amzn2.0.2 will be installed
--> Finished Dependency Resolution
Error: Package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64 (devel_kubic_libcontainers_stable)
           Requires: fuse3
Error: Package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64 (devel_kubic_libcontainers_stable)
           Requires: libfuse3.so.3(FUSE_3.0)(64bit)
Error: Package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64 (devel_kubic_libcontainers_stable)
           Requires: libfuse3.so.3()(64bit)
Error: Package: fuse-overlayfs-1.5.0-1.el7.1.1.x86_64 (devel_kubic_libcontainers_stable)
           Requires: libfuse3.so.3(FUSE_3.2)(64bit)
Error: Package: 4:containers-common-1-17.el7.17.1.noarch (devel_kubic_libcontainers_stable)
           Requires: oci-runtime
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Could you please help me to find out how the install this?

Thanks

@vrothberg
Copy link
Member

Thanks for reaching out!

You can try to install it with --skip-broken. If that doesn't work, please open a bug against Amazon Linux. There's not much we can do upstream as it's an issue in the Amazon packages.

@cristim
Copy link

cristim commented Jul 25, 2021

What would it take to make skopeo entirely stand-alone, so it could be shipped as a static binary?

My use case is running it on AWS Lambda for copying Docker images between repos. In Lambda I can't install its dependencies, nor a Docker daemon which is needed by similar tools such as sinker.

Later edit: I figured it out with help from @seandilda on #594, the Crane tool he mentioned does exactly what I needed.

@rhatdan
Copy link
Member

rhatdan commented Jul 26, 2021

I believe a static version of skopeo is currently being built, but you still might need to generate some config files policy.json?

@mtrmac
Copy link
Contributor

mtrmac commented Jul 26, 2021

Also, as #594 says, there are now official Skopeo containers. That seems much easier to handle than copying around static binaries and all the config files.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants