Docker Yum install RPM packet Error Rpmdb checksum is INVALID:DCDPT (pkg checksums): ...

Source: Internet
Author: User

Today, in the use of dockerfile to make Docker mirror, suddenly found that can run "run yum install-y sudo" Suddenly ran an error, the following errors:

Rpmdb Checksum is INVALID:DCDPT (pkg checksums): sudo.x86_64 0:1.8.6p3-29.el6_9-u the

command '/bin/sh-c yum L-y sudo ' returned a non-zero code:1

The underlying mirror used in my dockerfile is "gpmidi/centos-6.5". Research on a circle to find someone said that the RPM database damage needs to be rebuilt. Therefore, it is necessary to "yum install ..." Pre-use "RPM–REBUILDDB" to rebuild the database. Like what:

RUN rpm--rebuilddb && yum install-y sudo ...

Found in my environment sometimes if there are multiple "RUN yum install-y ..." directive, you need to add "RPM–REBUILDDB" before each bar.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.