1. 程式人生 > >(yum中途中斷)There are unfinished transactions remaining. You might consider running yum-complete-tra

(yum中途中斷)There are unfinished transactions remaining. You might consider running yum-complete-tra

yum命令安裝程式時,總是出現如下警告:

There are unfinished transactions remaining. Please consider running yum-complete-transaction first to finish them.

意思是有未完成的yum事務,建議先執行yum-complete-transaction命令清除。消除警告步驟如下:

安裝 yum-complete-transaction(這是一個能發現未完成或被中斷的yum事務的程式)

yum install yum-utils

清除yum快取

yum clean all

執行 yum-complete-transaction,清理未完成事務

/usr/sbin/yum-complete-transaction –cleanup-only

執行上述命令需要root許可權。yum 會把下載的軟體包和header儲存在cache中,而不會自動刪除。可用yum clean headers清除header,yum clean packages清除下載的rpm包,yum clean all全清