簡體   English   中英

yum 軟件包安裝的 %pre scriptlet 失敗錯誤

[英]%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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM