7

Dockerfile YUM安装报错Rpmdb checksum is invalid: dCDPT(pkg checksums)

 2 years ago
source link: https://www.ishells.cn/archives/docker-build-error
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Dockerfile YUM安装报错Rpmdb checksum is invalid: dCDPT(pkg checksums)

Dockerfile YUM安装报错Rpmdb checksum is invalid: dCDPT(pkg checksums)

%E5%A4%B4%E5%83%8F%E4%B8%93%E7%94%A8-410bbf6dd23c4ecfa72a37ab5e293ef6.jpg 19 次访问 2021-08-06
Scroll Down

在构建canal adapt容器镜像的时候,RUN yum install kde-l10n-Chinese -y报错:

Rpmdb checksum is invalid: dCDPT(pkg checksums): kde-filesystem.noarch 0:4-30.1.el6 - u The command '/bin/sh -c yum install kde-l10n-Chinese -y' returned a non-zero code: 1

Dockerfile使用的基础镜像是centos:6.7,搜索了一下,大家说是rpm库损坏了,需要重新构建一下,于是使用命令rpm --rebuilddb重建库,例如:

RUN rpm --rebuilddb && yum install kde-l10n-Chinese -y  

如上即可解决问题!

https://blog.csdn.net/kongxx/article/details/78464074

© 本文著作权归作者所有,转载前请务必署名


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK