ハマログ

株式会社イーツー・インフォの社員ブログ

yum update時のエラーの解決 ERROR with transaction check vs depsolve:

yum updateの途中でコンソールが応答しなくなり、それ以降のyum updateがエラーで失敗するようになりました。

エラー内容
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
The program yum-complete-transaction is found in the yum-utils package.

環境

OSはAmazon Linux 2
# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

対応

The program yum-complete-transaction is found in the yum-utils package.
と表示されているので、yum-utilsをインストールしました。
yum install yum-utils
続いて、以下のメッセージの通り、コマンドを実行しました。
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
コマンド
# yum-complete-transaction --cleanup-only
Loaded plugins: dkms-build-requires, nvidia, priorities, update-motd, upgrade-helper
7 packages excluded due to repository priority protections
Cleaning up unfinished transaction journals
これでyum updateが成功するようになりました。やはりエラーメッセージは読まないとだめですね。
Errorrpmtransactionyumエラートランザクション

  kaneko tomo   2022年6月26日


関連記事

AWSとは何ぞや

皆様お疲れ様です。 今まで経験した環境では特にAWSと関わることがなく 存在は知…

Apache2.4でIP制限/Basic認証/特定のURL除外の設定

Apache2.4で、以下の要件を実現する必要があったので、対応しました。 特定…

nagiosでHTTPステータスコードを監視する

Nagiosについて イーツー・インフォでは、ウェブサイトの死活監視の一部にNa…


← 前の投稿

次の投稿 →