Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Yum Checksum Issue When Updating libselinux #62

Closed
jwreagor opened this issue Jan 11, 2017 · 6 comments
Closed

Yum Checksum Issue When Updating libselinux #62

jwreagor opened this issue Jan 11, 2017 · 6 comments

Comments

@jwreagor
Copy link

I'm using this project to establish a test container before we rebuild it using our own foundation images. During a docker build of master I was unable to get past updating libselinux.

Rpmdb checksum is invalid: dCDPT(pkg checksums): libselinux-utils.x86_64 0:2.0.94-7.el6 - u

The command '/bin/sh -c yum update -y libselinux' returned a non-zero code: 1
@jwreagor
Copy link
Author

I found my answer on another project. It worked here. Simply add yum clean all after every yum install or yum update.

Relevant bits of my Dockerfile...

 # install dev tools
-RUN yum clean all; \
-    rpm --rebuilddb; \
-    yum install -y curl which tar sudo openssh-server openssh-clients rsync
+RUN yum clean all \
+    && rpm --rebuilddb \
+    && yum install -y curl which tar sudo openssh-server openssh-clients rsync \
+    && yum clean all \
+    && yum update -y libselinux \
+    && yum clean all
+
 # update libselinux. see https://github.com/sequenceiq/hadoop-docker/issues/14
-RUN yum update -y libselinux
+# RUN yum update -y libselinux

My issue is resolved, only posting here in case someone else runs across it too.

@joelplucas
Copy link

It solved my issue too. Thanks!

@voidfunction
Copy link

Thanks for your kindly recording! It solved my issue too.

@jwreagor
Copy link
Author

Nice to see this helped others!

@RohitBarnwal
Copy link

Solved my issue as well, thanks a lot. Used this in another dockerfile.

@HtagPersistence
Copy link

Thanks solved mine too

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

No branches or pull requests

5 participants