티스토리 뷰
오늘 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/
반응형
댓글