系統重啟後準備使用yum命令安裝乙個軟體包,但是在安裝的過程**現如圖所示錯誤:
[root@coisini ~]# yum install -y tree
loaded plugins: product-id, search-disabled-repos, subscription-manager
this system is not registered with an entitlement server. you can use subscription-manager to register.
resolving dependencies
--> running transaction check
---> package tree.x86_64 0:1.6.0-10.el7 will be installed
traceback (most recent call last):
file "/usr/bin/yum", line 29, in yummain.user_main(sys.ar**[1:], exit_code=true)
file "/usr/share/yum-cli/yummain.py", line 375, in user_main
errcode = main(args)
file "/usr/share/yum-cli/yummain.py", line 239, in main
(result, resultmsgs) = base.buildtransaction()
file "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1198, in buildtransaction
(rescode, restring) = self.resolvedeps()
file "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 902, in resolvedeps
for po, dep in self._checkfilerequires():
file "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1193, in _checkfilerequires
self.installedfileproviders = self.rpmdb.filerequiresdata()
file "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 994, in filerequiresdata
rpmdbv = self.******version(main_only=true)[0]
file "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1228, in ******version
if 'checksum_type' in ydbi and 'checksum_data' in ydbi:
file "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1949, in __contains__
x = self.get(attr)
file "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1979, in get
res = self._read(attr)
file "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1885, in _read
info = misc.stat_f(fn, ignore_eacces=true)
file "/usr/lib/python2.7/site-packages/yum/misc.py", line 974, in stat_f
return os.stat(filename)
oserror: [errno 117] structure needs cleaning: '/var/lib/yum/yumdb/y/c360c3efe4203eb7ee07d45808e61daa061f8742-yum-3.4.3-163.el7-noarch/checksum_type'
看到這個報錯有點熟悉的感覺,彷彿之前遇到過,仔細想了好久,終於想到該怎樣處理這個問題,在此也做個記錄, Redhat7配置乙個資料庫
描述 在 system1 上建立乙個 mariadb 資料庫,名為 contacts 並符合以下條件 資料庫應該包含來自資料庫複製的內容,複製檔案的url為 資料庫只能被 localhost 訪問。除了root使用者,此資料庫只能被使用者 luigi 查詢。此使用者密碼為 flectrag root...
記錄一下關於oracle還原資料庫的問題
第一種 oracle匯出還原使用者 expdp 首先得建立乙個存放備份資料的地方,這裡建立的地方是匯出匯入的地方 create directory dbdata as d oracl bak dbdir 建立備份檔案夾,dbdata 是起的名稱 可以在select from dba director...
乙個在win下關於配置監聽埠的有
乙個在win下關於配置監聽埠的有趣的問題 問題場景 一想把預設的port 1521 改為port 1523,接著又想改回來。將listener.ora的port改為1521 listener description list description address protocol tcp host...