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

Rpmdb checksum is invalid: dCDPT(pkg checksums) #15

Closed
r1w1s1 opened this issue Mar 24, 2015 · 17 comments
Closed

Rpmdb checksum is invalid: dCDPT(pkg checksums) #15

r1w1s1 opened this issue Mar 24, 2015 · 17 comments

Comments

@r1w1s1
Copy link

r1w1s1 commented Mar 24, 2015

I'm using docker with CentOS 7 and my Dockerfile I'm trying to install "supervisor" package (yum -y install supervisor) but get this error:

Rpmdb checksum is invalid: dCDPT(pkg checksums): bind-libs.x86_64 32:9.9.4-14.el7_0.1 - u

I tried already:

rpm --rebuilddb
yum clean all
yum -y install supervisor --nogpgcheck

@r1w1s1
Copy link
Author

r1w1s1 commented Mar 25, 2015

I found how to fix.... every line that I use yum to install a package I also insert the "; yum clean all"

example:

RUN yum -y install openssh-server passwd supervisor ; yum clean all

@jperrin
Copy link
Collaborator

jperrin commented Mar 25, 2015

what are you hosting the container on?

@r1w1s1
Copy link
Author

r1w1s1 commented Mar 25, 2015

rancheOS (Vagrant machine)

@itoed
Copy link

itoed commented Mar 25, 2015

I don't know about those errors you are getting, but you should consider using pip to install supervisor on CentOS. Not sure about CentOS 7, but supervisor from EPEL for CentOS 6 is really old.

@r1w1s1
Copy link
Author

r1w1s1 commented Mar 25, 2015

supervisor-3.0-1.el7.noarch (EPEL package) this error is not related tp the package itself.... something related to the rpmdb, but I don't know why....

@dreambrother
Copy link

@ricardsonwilliams

I found how to fix.... every line that I use yum to install a package I also insert the "; yum clean all"

this is bad solution, the same as
yum -y install openssh-server passwd supervisor || true

@r1w1s1
Copy link
Author

r1w1s1 commented Mar 26, 2015

@dreambrother yeap....

@jperrin
Copy link
Collaborator

jperrin commented Mar 27, 2015

This appears to be related to the host OS, as on a CentOS 7 box, it installs just fine.

It's worth noting that yum -y install foo || true is NOT the same as yum -y install foo && yum clean all

The yum clean all bits are important as they prevent the yum metadata from being cached in a docker layer, and potentially causing a conflict.

I'm curious if this is related to permissioning within the host (vagrant) OS and if running it with --privileged or otherwise adding capabilities would resolve the issue. Several packages in EL7 require additional functionality that are stock in CentOS but may not be enabled in other distros like ranchos or boot2docker.

@r1w1s1
Copy link
Author

r1w1s1 commented Mar 31, 2015

@jperrin I did some tests using CentOS(Vagrant) as host and works just fine, is something related to the permission/or something on rancherOS. I will "ping" them.

@jperrin
Copy link
Collaborator

jperrin commented Apr 10, 2015

Closing, since it's an upstream issue and not in the container itself.

@jperrin jperrin closed this as completed Apr 10, 2015
2opremio pushed a commit to weaveworks-guides/weave-net-legacy that referenced this issue Jul 15, 2015
2opremio pushed a commit to weaveworks-guides/weave-net-legacy that referenced this issue Jul 20, 2015
mrpatrick added a commit to avatarnewyork/dockerenv_apache that referenced this issue May 23, 2016
@xavierbaude
Copy link

There is a yum patch, simply add this in your Dockerfile :

RUN yum install -y yum-plugin-ovl

Tested in Centos 7/6 + RHEL 7/6

http://man7.org/linux/man-pages/man1/yum-ovl.1.html

Enjoy Docker/overlay :)

@jperrin
Copy link
Collaborator

jperrin commented Oct 10, 2016

The yum-plugin-ovl package has been a part of the baseline 7 container for some time, and part of the 6 baseline container since 6.8 was released. This shouldn't be necessary if you're using recent images.

@mboullouz
Copy link

The obscure hack from @ricardson works

@orodbhen
Copy link

The 7.1 image isn't able to install yum-plugin-ovl, because it's not in the repos. So are the older images useless now?

@jperrin
Copy link
Collaborator

jperrin commented Oct 2, 2017

@orodbhen A couple things here:

The 7.1.xx image is a point-in-time image, however the repositories all point to /7/ and so are the current repositories. If you MUST use the older images (I don't recommend this) then you may need to adjust the repositories to your needs. This should be expected.

HOWEVER the yum-plugin-ovl package is absolutely still in the repositories and is part of the current base image by default. It may or may not be compatible with the version of yum in the old container.

@orodbhen
Copy link

orodbhen commented Oct 2, 2017

@jperrin There are a lot of places that CentOS/RHEL are used where platform upgrades aren't an option. I'm using the image to test software targeted for the 7.1 baseline.

I pulled the RPM from the 7.3 repo, and installed it directly, and everything worked. Though perhaps disabling OverlayFS would be a better solution.

nick-markowski pushed a commit to nick-markowski/simp-core that referenced this issue Nov 20, 2017
In rpm_docker:

- Fixed constantly corrupted rpmdb
  - CentOS/sig-cloud-instance-images#15
- Installed openssl 1.0.2, required by git-wrappers and RVM
- Fixed net-ssh inability to use ed-25519 out of the box
  - net-ssh/net-ssh#478

SIMP-4035 #close
nick-markowski pushed a commit to nick-markowski/simp-core that referenced this issue Nov 20, 2017
In rpm_docker:

- Fixed constantly corrupted rpmdb
  - CentOS/sig-cloud-instance-images#15
- Installed openssl 1.0.2, required by git-wrappers and RVM
- Fixed net-ssh inability to use ed-25519 out of the box
  - net-ssh/net-ssh#478

SIMP-4035 #close
trevor-vaughan pushed a commit to simp/simp-core that referenced this issue Dec 29, 2017
In rpm_docker:

- Fixed constantly corrupted rpmdb
  - CentOS/sig-cloud-instance-images#15
- Fixed net-ssh inability to use ed-25519 out of the box
  - net-ssh/net-ssh#478

SIMP-4035 #close
chadkirby added a commit to PatentNavigation/docker-lambda that referenced this issue Aug 8, 2018
chadkirby added a commit to PatentNavigation/docker-lambda that referenced this issue Aug 8, 2018
chadkirby added a commit to PatentNavigation/docker-lambda that referenced this issue Aug 8, 2018
AlexeySafronov added a commit to ONLYOFFICE/Docker-MailServer that referenced this issue Oct 19, 2018
HeavenFeel added a commit to HeavenFeel/docker-cdh-zeppelin that referenced this issue Apr 26, 2019
Fixed error:
 while `run docker-compose build`, therre will a error occured , on command it notice this: Rpmdb checksum is invalid: dCDPT(pkg checksums) ...
for more detail, see CentOS/sig-cloud-instance-images#15
chadkirby added a commit to PatentNavigation/docker-lambda that referenced this issue May 21, 2019
chadkirby added a commit to PatentNavigation/docker-lambda that referenced this issue May 21, 2019
chadkirby added a commit to PatentNavigation/docker-lambda that referenced this issue May 21, 2019
@knirbhay
Copy link

knirbhay commented Dec 5, 2019

I found how to fix.... every line that I use yum to install a package I also insert the "; yum clean all"

example:

RUN yum -y install openssh-server passwd supervisor ; yum clean all

You are genius.

siscia pushed a commit to cernvm/ci-scripts that referenced this issue Jan 8, 2020
nichubbard pushed a commit to nichubbard/ucesb that referenced this issue Jun 30, 2020
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

8 participants