Yum --enablerepo=base clean metadata

yum --enablerepo=base clean metadata

1 문제상황[ | ]

[root@localhost ~]# yum install ruby
base                                                                           | 3.7 kB     00:00     
base/primary_db                                                                | 4.6 MB     00:01     
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64 error was
14: problem making ssl connection
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. </BODY></HTML>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/extras/mirrorlist.txt
updates                                                                        | 3.4 kB     00:00     
updates/primary_db                                                             | 171 kB     00:00     
Setting up Install Process
Resolving Dependencies
... (생략)
======================================================================================================
 Package                      Arch               Version                       Repository        Size
======================================================================================================
Installing:
 ruby                         x86_64             1.8.7.374-2.el6               base             538 k
Installing for dependencies:
 compat-readline5             x86_64             5.2-17.1.el6                  base             130 k
 ruby-libs                    x86_64             1.8.7.374-2.el6               base             1.7 M

Transaction Summary
======================================================================================================
Install       3 Package(s)

Total download size: 2.3 M
Installed size: 7.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): compat-readline5-5.2-17.1.el6.x86_64.rpm                                |  550 B     00:00     
http://mirror.premi.st/centos/6.6/os/x86_64/Packages/compat-readline5-5.2-17.1.el6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=base clean metadata
Trying other mirror.
(1/3): compat-readline5-5.2-17.1.el6.x86_64.rpm                                | 130 kB     00:01     
http://ftp.neowiz.com/centos/6.6/os/x86_64/Packages/compat-readline5-5.2-17.1.el6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=base clean metadata
Trying other mirror.
(1/3): compat-readline5-5.2-17.1.el6.x86_64.rpm                                | 130 kB     00:00     
(2/3): ruby-1.8.7.374-2.el6.x86_64.rpm                                         | 538 kB     00:00     
(3/3): ruby-libs-1.8.7.374-2.el6.x86_64.rpm                                    | 1.7 MB     00:01     
------------------------------------------------------------------------------------------------------
Total                                                                 171 kB/s | 2.3 MB     00:13     
... (생략)
Complete!
  • 오류메시지
[Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=base clean metadata

2 해결[ | ]

[root@localhost ~]# yum --enablerepo=base clean metadata
Cleaning repos: base epel extras updates
11 metadata files removed
5 sqlite files removed
0 metadata files removed
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}