-
Notifications
You must be signed in to change notification settings - Fork 561
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
Comments
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 |
what are you hosting the container on? |
rancheOS (Vagrant machine) |
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. |
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.... |
@ricardsonwilliams
this is bad solution, the same as |
@dreambrother yeap.... |
This appears to be related to the host OS, as on a CentOS 7 box, it installs just fine. It's worth noting that The 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. |
@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. |
Closing, since it's an upstream issue and not in the container itself. |
There is a yum patch, simply add this in your Dockerfile :
Tested in Centos 7/6 + RHEL 7/6 http://man7.org/linux/man-pages/man1/yum-ovl.1.html Enjoy Docker/overlay :) |
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. |
CentOS/sig-cloud-instance-images#15 Signed-off-by: Crazykev <crazykev@zju.edu.cn>
The obscure hack from @ricardson works |
The 7.1 image isn't able to install |
@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. |
@jperrin There are a lot of places that I pulled the RPM from the |
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
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
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
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
You are genius. |
Doing 'yum -y update' did not seem very nice - it caused more problems than it solved. Fix found here (and others): CentOS/sig-cloud-instance-images#15 moby/moby#10180 https://unix.stackexchange.com/questions/348941/rpmdb-checksum-is-invalid-trying-to-install-gcc-in-a-centos-7-2-docker-image Explained here: http://man7.org/linux/man-pages/man1/yum-ovl.1.html
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
The text was updated successfully, but these errors were encountered: