[英]%pre scriptlet failed error for yum package install
使用 yum 安装软件包时,出现以下错误:
$ yum install <rpm_name> -v -y
error: %pre(<rpm_name>) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package <rpm_name>
Warning: scriptlet or other non-fatal errors occurred during transaction.
Verifying : <rpm_name> 1/1
What is this? <rpm_name>
VerifyTransaction time: 0.003
Transaction time: 0.139
如何解决这个问题?
你的问题是rpm
包本身的错误。 如果你做了这个包检查预安装脚本。 如果没有,您可以联系包创建者并要求他执行此操作。
下载该 rpm 包运行:
rpm -qp --scripts <rpmname>.rpm
这将为您提供分配给此包的 scriptlet 的内容。 RPM 正在尝试执行并且某处出现错误。
原来 rpm db 存在一些问题。 重建rpm DB后问题解决,参考此链接: https : //www.cyberciti.biz/tips/rebuilding-corrupted-rpm-database.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.