yum 報錯: no module named yum
python –v 顯示為2.6.
ls /usr/local/lib/python2.6/site-packages/ 下面是空的
手工安裝python2.4 rpm:
修改/usr/bin/yum,第一句改為python2.4
還有下面錯誤:
traceback (most recent call last):
file "/usr/bin/yum", line 4, in ?
import yum
file "/usr/lib/python2.4/site-packages/yum/__init__.py", line 50, in ?
import comps
file "/usr/lib/python2.4/site-packages/yum/comps.py", line 23, in ?
iterparse = celementtree.iterparse
attributeerror: 'module' object has no attribute 'iterparse'
print celementtree.__file__
發現其指向的檔案是個符號鏈結,這是罪魁禍首,unlink掉ok
unlink /usr/lib/python2.4/site-packages/yum/celementtree.so
搞定~
修復centos yum管理器的步驟
1.查詢系統版本 cat etc os release cat redhat release2.去centos官方源查詢相應軟體包 找到對應版本之後在相應版本的package目錄下,如 7 os x86 64 packages3.使用rpm安裝相應包 rpm ivh 7 os x86 64 pack...
Cydia崩潰錯誤修復
iphone越獄之後cydia崩潰了,既開啟就秒退,cydia各種報錯看著頭疼,那麼該如何修復cydia呢,cydia崩潰錯誤修復教程如下 1 用ifile或ifunbox進入var lib apt list然後刪掉此資料夾下的所有檔案 資料夾不刪 該目錄下的partial資料夾下的內容也刪除,但要...
POSTGIS修復錯誤資料
select from river as r limit 10 先備份垃圾到表temp1,然後刪除垃圾資料 create table temp1 as select from river where st isvalid geom false delete from river where st i...