Warning: RPMDB altered outside of yum

甲骨文技術支援發表於2018-11-30

在用yum安裝mysql的時候提示:

Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : mysql-community-common-5.7.24-1.el7.x86_64                                                                                                               1/4 
  Installing : mysql-community-libs-5.7.24-1.el7.x86_64                                                                                                                 2/4 
  Installing : mysql-community-client-5.7.24-1.el7.x86_64                                                                                                               3/4 
  Installing : mysql-community-server-5.7.24-1.el7.x86_64                                                                                                               4/4 
  Verifying  : mysql-community-server-5.7.24-1.el7.x86_64                                                                                                               1/4 
  Verifying  : mysql-community-libs-5.7.24-1.el7.x86_64                                                                                                                 2/4 
  Verifying  : mysql-community-common-5.7.24-1.el7.x86_64                                                                                                               3/4 
  Verifying  : mysql-community-client-5.7.24-1.el7.x86_64


解決辦法是刪除yum的歷史記錄

rm -rf /var/lib/yum/history/*.sqlite


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20893244/viewspace-2222206/,如需轉載,請註明出處,否則將追究法律責任。

相關文章