4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

yum が使えなくなったとき

Posted at

yum が使えなくなったとき用にメモで追記していく。

#1. Another app is currently holding the yum lock; #

■エラー内容

[root@study ~]#  yum install httpd
読み込んだプラグイン:fastestmirror
ロックファイル /var/run/yum.pid が存在します: PID 1278 として別に実行されています。
Another app is currently holding the yum lock; waiting for it to exit...
 他のアプリケーション: yum
   メモリー:  48 M RSS (588 MB VSZ)
    開始   : Mon Sep  7 09:37:03 2020 - 04:40 秒経過
    状態   : トレース/停止、PID: 1278
Another app is currently holding the yum lock; waiting for it to exit...
 他のアプリケーション: yum
   メモリー:  48 M RSS (588 MB VSZ)
    開始   : Mon Sep  7 09:37:03 2020 - 04:42 秒経過
    状態   : トレース/停止、PID: 1278
Another app is currently holding the yum lock; waiting for it to exit...

■対処

kill -9 1278

rm -f /var/run/yum.pid

yum clean all

【1.】の内容を実行しても、【2.】のエラーが表示されることがある。

#2.Thread died in Berkeley DB library#

■エラー内容

[root@study ~]# yum check-update
エラー: rpmdb: BDB0113 Thread/process 1278/140418154268480 failed: BDB1507 Thread died in Berkeley DB library
エラー: db5 エラー (-30973) (dbenv->failchk において): BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
エラー: Packages インデックスを db5 で開けません -  (-30973)
エラー: /var/lib/rpm にある Package データベースを開けません。
CRITICAL:yum.main:

■対処

rm -rf /var/lib/rpm/__db.00*

rpm --rebuilddb
4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?