[root@localhost ~]# yum -y install vim-enhanced dialog sysstat


Setting up Install Process


Setting up repositories


update                    100% |=========================|  951 B    00:00     


base                      100% |=========================| 1.1 kB    00:00     


addons                    100% |=========================|  951 B    00:00     


extras                    100% |=========================| 1.1 kB    00:00     


Reading repository metadata in from local files


primary.xml.gz            100% |=========================| 864 kB    00:01     


update    : ################################################## 1935/1935


primary.xml.gz            100% |=========================|  16 kB    00:53     


http://vault.centos.org/4.8/os/i386/repodata/primary.xml.gz: [Errno 4] Socket Error: timed out


Trying other mirror.


Error: failure: repodata/primary.xml.gz from base: [Errno 256] No more mirrors to try.


[root@localhost ~]# yum -y install vim-enhanced dialog sysstat


Setting up Install Process


Setting up repositories


Reading repository metadata in from local files


primary.xml.gz            100% |=========================|  64 kB    00:57     


http://vault.centos.org/4.8/os/i386/repodata/primary.xml.gz: [Errno 4] Socket Error: timed out


Trying other mirror.


Error: failure: repodata/primary.xml.gz from base: [Errno 256] No more mirrors to try.


[root@localhost ~]# yum clean metadata


Cleaning up xml metadata


10 metadata files removed


[root@localhost ~]# yum -y install vim-enhanced dialog sysstat


Setting up Install Process


Setting up repositories


update                    100% |=========================|  951 B    00:00     


base                      100% |=========================| 1.1 kB    00:00     


addons                    100% |=========================|  951 B    00:00     


extras                    100% |=========================| 1.1 kB    00:00     


Reading repository metadata in from local files


primary.xml.gz            100% |=========================| 864 kB    00:01     


primary.xml.gz            100% |=========================| 611 kB    00:01     


base      : ################################################## 1599/1599


http://vault.centos.org/4.8/addons/i386/repodata/primary.xml.gz: [Errno 12] Timeout: <urlopen error timed out>


Trying other mirror.


Error: failure: repodata/primary.xml.gz from addons: [Errno 256] No more mirrors to try.


[root@localhost ~]# yum clean metadata                        


Cleaning up xml metadata


10 metadata files removed


[root@localhost ~]# yum -y install vim-enhanced dialog sysstat


Setting up Install Process


Setting up repositories


update                    100% |=========================|  951 B    00:00     


base                      100% |=========================| 1.1 kB    00:00     


addons                    100% |=========================|  951 B    00:00     


http://vault.centos.org/4.8/extras/i386/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>


Trying other mirror.


Cannot open/read repomd.xml file for repository: extras


failure: repodata/repomd.xml from extras: [Errno 256] No more mirrors to try.


Error: failure: repodata/repomd.xml from extras: [Errno 256] No more mirrors to try.


[root@localhost ~]# yum clean all


Cleaning up Everything


0 headers removed


0 packages removed


6 metadata files removed


0 cache files removed


2 cache files removed


[root@localhost ~]# yum -y install vim-enhanced dialog sysstat


Setting up Install Process


Setting up repositories


update                    100% |=========================|  951 B    00:00     


http://vault.centos.org/4.8/os/i386/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>


Trying other mirror.


Cannot open/read repomd.xml file for repository: base


failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.


Error: failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.


[root@localhost ~]# yum -y install vim-enhanced dialog sysstat


Setting up Install Process


Setting up repositories


base                      100% |=========================| 1.1 kB    00:00     


addons                    100% |=========================|  951 B    00:00     


extras                    100% |=========================| 1.1 kB    00:00     


Reading repository metadata in from local files


primary.xml.gz            100% |=========================| 864 kB    00:02     


update    : ################################################## 1935/1935


primary.xml.gz            100% |=========================| 611 kB    00:02     


base      : ################################################## 1599/1599


primary.xml.gz            100% |=========================|  190 B    00:00     


primary.xml.gz            100% |=========================|  41 kB    00:00     


extras    : ################################################## 149/149


Parsing package install arguments


Resolving Dependencies


--> Populating transaction set with selected packages. Please wait.


---> Downloading header for sysstat to pack into transaction set.


sysstat-5.0.5-27.el4.i386 100% |=========================|  15 kB    00:00     


---> Package sysstat.i386 0:5.0.5-27.el4 set to be updated


--> Running transaction check




Dependencies Resolved




=============================================================================


 Package                 Arch       Version          Repository        Size 


=============================================================================


Installing:


 sysstat                 i386       5.0.5-27.el4     update            117 k




Transaction Summary


=============================================================================


Install      1 Package(s)         


Update       0 Package(s)         


Remove       0 Package(s)         


Total download size: 117 k


Downloading Packages:


(1/1): sysstat-5.0.5-27.e 100% |=========================| 117 kB    00:01     


Running Transaction Test


Finished Transaction Test


Transaction Test Succeeded


Running Transaction


  Installing: sysstat                      ######################### [1/1] 




Installed: sysstat.i386 0:5.0.5-27.el4


Complete!












요약


에러내용


yum 사용할때


http://vault.centos.org/4.8/os/i386/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>


Trying other mirror.


Cannot open/read repomd.xml file for repository: base


failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.


Error: failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.




해결방법 yum clean all , yum clean metadata 




그리고 계속 yum 사용해보니까 됨

'job > linux' 카테고리의 다른 글

메모리덤프  (0) 2018.09.03
lime 포렌식  (0) 2018.09.03
쓸만한 리눅스 명령어  (0) 2018.09.03
unauthenticated user  (0) 2018.09.03
centos 4점대 yum repo  (0) 2018.09.03

+ Recent posts