Fedora19: RPMDB 問題 - Linux

Table of Contents

我的作業系統是Fedora 19, 使用Gomone3桌面
年初貌似因為yum更新讓系統開機後圖形界面跑一半還沒進入User list就死掉了
好像有更新到glibc還是xorg, 但最後解不了還是重灌.
所以後來就只有剛重灌完有yum update之外, 都沒有再用過yum的update功能.

但這幾天想要用yum安裝terminator, yum在解析完下載清單後, 說:

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 clean all

後來想安裝另一個套件tmux, yum在解析完後出現一樣的訊息...就想說不理他了,
直接安裝, 但沒想到yum跳出:
Warning: RPMDB altered outside of yum.
** Found 98 pre-existing rpmdb problem(s), 'yum check' output follows

我執行package-cleanup –cleandupes, 發現有足足4.0GB的套件要移除啊!

我想有可能是我有自己加repo在yum.repos.d裡...
長期下來各倉庫的版本不一所以導致這結果?

實在很怕移到不該移的套件...電腦又要重灌...
不知有沒有什麼處理這問題的建議?
在這連結有我將螢幕上執行指令的過程複製下的文字檔,
http://ppt.cc/Jt1h
希望各位版友能幫忙!
謝謝!!

--

All Comments

Joseph avatarJoseph2014-09-07
RPMDB altered outside of yum表示你曾用rpm來安裝套件
Charlie avatarCharlie2014-09-11
你的RPMDB有問題,可用rpm -V來檢查,然後把壞的套件重裝
Lily avatarLily2014-09-12
rpm --rebuilddb可以重建RPMDB