티스토리 뷰

시스템 서버

No module named yum

달리는개발자 2014. 2. 18. 16:45

오늘 yum을 사용하려고 하니 다음과 같은 오류가 발생했다.


No module named yum


처음 보는 오류여서 당황하셨지만 RPM으로 하나하나 설치하면서 불굴의 노력으로 복구함.


dependencies 때문에 설치가 안될 땐 강제로 설치하게함.

rpm -Uvh --nodeps 패키지명


이미 설치되어 있는데 No module named 라고 나오면 기존 것을 지우고 다시 설치함.

[root@web1 app]# rpm -qa | grep python-elementtree

python-elementtree-1.2.6-5

[root@web1 app]# rpm -e python-elementtree-1.2.6-5

Failed dependencies:

        python-elementtree is needed by (installed) yum-3.2.22-40.el5.centos.noarch

[root@web1 app]# rpm -e --nodeps python-elementtree-1.2.6-5



기타 등등 설치

wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-2.4.3-56.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-devel-2.4.3-56.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-libs-2.4.3-56.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-tools-2.4.3-56.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/tix-8.4.0-11.fc6.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/tix-devel-8.4.0-11.fc6.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/tkinter-2.4.3-56.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/tcl-8.4.13-6.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/tcl-devel-8.4.13-6.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/tk-8.4.13-5.el5_1.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/tk-devel-8.4.13-5.el5_1.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-python-4.4.2.3-34.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-4.4.2.3-34.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-libs-4.4.2.3-34.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libX11-1.0.3-11.el5_7.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libX11-devel-1.0.3-11.el5_7.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/popt-1.10.2.3-34.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libXau-1.0.1-3.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libXau-devel-1.0.1-3.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libXdmcp-1.0.1-2.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libXdmcp-devel-1.0.1-2.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/xorg-x11-proto-devel-7.1-13.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/mesa-libGL-devel-6.5.1-7.11.el5_9.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/mesa-libGL-6.5.1-7.11.el5_9.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libXxf86vm-1.0.1-3.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libXxf86vm-devel-1.0.1-3.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libXext-1.0.1-2.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libXext-devel-1.0.1-2.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libdrm-2.0.2-1.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libdrm-devel-2.0.2-1.1.x86_64.rpm


rpm -Uvh --replacepkgs python-2.4.3-56.el5.x86_64.rpm python-devel-2.4.3-56.el5.x86_64.rpm python-libs-2.4.3-56.el5.x86_64.rpm python-tools-2.4.3-56.el5.x86_64.rpm tix-8.4.0-11.fc6.x86_64.rpm tix-devel-8.4.0-11.fc6.x86_64.rpm tkinter-2.4.3-56.el5.x86_64.rpm yum-3.2.22-40.el5.centos.noarch.rpm tcl-8.4.13-6.el5.x86_64.rpm tcl-devel-8.4.13-6.el5.x86_64.rpm tk-8.4.13-5.el5_1.1.x86_64.rpm tk-devel-8.4.13-5.el5_1.1.x86_64.rpm rpm-python-4.4.2.3-34.el5.x86_64.rpm yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm rpm-4.4.2.3-34.el5.x86_64.rpm rpm-libs-4.4.2.3-34.el5.x86_64.rpm libX11-1.0.3-11.el5_7.1.x86_64.rpm libX11-devel-1.0.3-11.el5_7.1.x86_64.rpm popt-1.10.2.3-34.el5.x86_64.rpm libXau-1.0.1-3.1.x86_64.rpm libXau-devel-1.0.1-3.1.x86_64.rpm libXdmcp-1.0.1-2.1.x86_64.rpm libXdmcp-devel-1.0.1-2.1.x86_64.rpm xorg-x11-proto-devel-7.1-13.el5.x86_64.rpm mesa-libGL-devel-6.5.1-7.11.el5_9.x86_64.rpm mesa-libGL-6.5.1-7.11.el5_9.x86_64.rpm libXxf86vm-1.0.1-3.1.x86_64.rpm libXxf86vm-devel-1.0.1-3.1.x86_64.rpm libXext-1.0.1-2.1.x86_64.rpm libXext-devel-1.0.1-2.1.x86_64.rpm libdrm-2.0.2-1.1.x86_64.rpm libdrm-devel-2.0.2-1.1.x86_64.rpm --nosignature




참고

https://www.centos.org/forums/viewtopic.php?t=18383

http://mirror.centos.org/centos/5/os/i386/CentOS/



반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함