authconfig-tui ImportError: No module named acutil
[root@cd ~]# authconfig-tui
Traceback (most recent call last):
File "/usr/sbin/authconfig-tui", line 27, in <module>
import authinfo, acutil
File "/usr/share/authconfig/authinfo.py", line 35, in <module>
import dnsclient
File "/usr/share/authconfig/dnsclient.py", line 23, in <module>
import acutil
ImportError: No module named acutil
[root@cd ~]#
解决如下:
[root@cd ~]# whereis python
python: /usr/bin/python /usr/bin/python2.7-config /usr/bin/python2.6 /usr/bin/python2.7 /usr/lib/python2.6 /usr/lib/python2.7 /usr/lib64/python2.6 /usr/local/bin/python /usr/local/bin/python2.7-config /usr/local/bin/python2.7 /usr/local/lib/python2.7 /usr/include/python2.6 /usr/include/python2.7 /usr/share/man/man1/python.1.gz /usr/share/man/man1/python2.1 /usr/share/man/man1/python.1
运行/usr/bin/python发现其版本为2.7.7,于是
# mv /usr/bin/python /usr/bin/python2.7.7
同理
# mv /usr/local/bin/python /usr/local/bin/python2.7.7
拷贝老版本
# cp /usr/bin/python2.6 /usr/bin/python
再次运行
# authconfig-tui
成功
共有 0 条评论