エラー」タグアーカイブ




yum を利用すると、エラー「yum-complete-transaction」が発生したときの対処




投稿日:

yumが途中で失敗してしまう場合におきる以下のエラー

[html]There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
[/html]

yumの実行中にネットワークやサーバの断が発生した場合に、途中から再開をさせないといけません。
実際の内容は

/var/lib/yum配下に以下の2つのファイルがあるので確認はできます。
transaction-all.[yyyy-mm-dd.hh:mm:ss]
transaction-done.[yyyy-mm-dd.hh:mm:ss]



対応しましょう。

このエラーは、yum-complete-transaction コマンドを実施すれば治ります。

今回は実行しようとすると、コマンドがないと言われたので、yum-utilsでインストール。
[html]# yum install yum-utils[/html]

実行。
[html]# /usr/sbin/yum-complete-transaction[/html]

これで問題なくyum が利用できました。


[amazonjs asin=”4797382384″ locale=”JP” title=”Linuxコマンドブック ビギナーズ 第4版 (コマンドブックシリーズ)”]