[root@localhost]# yum-complete-transaction
Traceback (most recent call last):
File "/usr/sbin/yum-complete-transaction", line 20, in <module>
import yum
ImportError: No module named yumpython
緣由:升級了python,修改了yum使用的python版本,但沒有修改/usr/sbin/yum-complete-transaction。io
解決方法:vi /usr/sbin/yum-complete-transaction,修改python路徑爲舊版本。ast