[root@hardaway ~]# yum search mysql
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. </body></html>/
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. </body></html>/
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. </body></html>/
base                                                                                                                       |  15 kB     00:00 ... 
http://mirror.centos.org/centos/6/os/i386/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file
Trying other mirror.
extras                                                                                                                     |  15 kB     00:00 ... 
http://mirror.centos.org/centos/6/extras/i386/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for extras: Damaged repomd.xml file
Trying other mirror.
updates                                                                                                                    |  15 kB     00:00 ... 
http://mirror.centos.org/centos/6/updates/i386/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for updates: Damaged repomd.xml file
Trying other mirror.
=============================================================== N/S Matched: mysql ===============================================================
MySQL-python.i686 : An interface to MySQL
apr-util-mysql.i686 : APR utility library MySQL DBD driver
bacula-director-mysql.i686 : Bacula Director with MySQL database support
bacula-storage-mysql.i686 : MySQL Bacula storage daemon files
dovecot-mysql.i686 : MySQL back end for dovecot
freeradius-mysql.i686 : MySQL support for freeradius
libdbi-dbd-mysql.i686 : MySQL plugin for libdbi
mod_auth_mysql.i686 : Basic authentication for the Apache web server using a MySQL database
mysql.i686 : MySQL client programs and shared libraries
mysql-bench.i686 : MySQL bench scripts and data
mysql-connector-java.noarch : Official JDBC driver for MySQL
mysql-connector-odbc.i686 : ODBC driver for MySQL
mysql-devel.i686 : Files for development of MySQL applications
mysql-embedded.i686 : MySQL as an embeddable library
mysql-embedded-devel.i686 : Development files for MySQL as an embeddable library
mysql-libs.i686 : The shared libraries required for MySQL clients
mysql-server.i686 : The MySQL server and related files
mysql-test.i686 : The test suite distributed with MySQL
pcp-pmda-mysql.i686 : Performance Co-Pilot (PCP) metrics for MySQL
perl-DBD-MySQL.i686 : A MySQL interface for perl
php-mysql.i686 : A module for PHP applications that use MySQL databases
qt-mysql.i686 : MySQL driver for Qt's SQL classes
qt3-MySQL.i686 : MySQL drivers for Qt 3's SQL classes
rsyslog-mysql.i686 : MySQL support for rsyslog
rsyslog7-mysql.i686 : MySQL support for rsyslog  Name and summary matches only, use "search all" for everything.这是什么错误啊啊啊啊啊

解决方案 »

  1.   

    以及这样的错误[root@hardaway ~]# yum install mysql
    Loaded plugins: fastestmirror, refresh-packagekit, security
    Loading mirror speeds from cached hostfile
    YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
     Eg. </body></html>/
    YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
     Eg. </body></html>/
    YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
     Eg. </body></html>/
    base                                                                                                                       |  15 kB     00:00 ... 
    http://mirror.centos.org/centos/6/os/i386/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file
    Trying other mirror.
    extras                                                                                                                     |  15 kB     00:00 ... 
    http://mirror.centos.org/centos/6/extras/i386/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for extras: Damaged repomd.xml file
    Trying other mirror.
    updates                                                                                                                    |  15 kB     00:00 ... 
    http://mirror.centos.org/centos/6/updates/i386/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for updates: Damaged repomd.xml file
    Trying other mirror.
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package mysql.i686 0:5.1.73-8.el6_8 will be installed
    --> Processing Dependency: mysql-libs = 5.1.73-8.el6_8 for package: mysql-5.1.73-8.el6_8.i686
    --> Running transaction check
    ---> Package mysql-libs.i686 0:5.1.61-4.el6 will be updated
    ---> Package mysql-libs.i686 0:5.1.73-8.el6_8 will be an update
    --> Processing Dependency: libssl.so.10(libssl.so.10) for package: mysql-libs-5.1.73-8.el6_8.i686
    --> Processing Dependency: libcrypto.so.10(libcrypto.so.10) for package: mysql-libs-5.1.73-8.el6_8.i686
    --> Running transaction check
    ---> Package openssl.i686 0:1.0.0-20.el6_2.5 will be updated
    ---> Package openssl.i686 0:1.0.1e-48.el6_8.4 will be an update
    --> Finished Dependency ResolutionDependencies Resolved==================================================================================================================================================
     Package                            Arch                         Version                                    Repository                       Size
    ==================================================================================================================================================
    Installing:
     mysql                              i686                         5.1.73-8.el6_8                             updates                         904 k
    Updating for dependencies:
     mysql-libs                         i686                         5.1.73-8.el6_8                             updates                         1.2 M
     openssl                            i686                         1.0.1e-48.el6_8.4                          updates                         1.5 MTransaction Summary
    ==================================================================================================================================================
    Install       1 Package(s)
    Upgrade       2 Package(s)Total download size: 3.6 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/3): mysql-5.1.73-8.el6_8.i686.rpm                                                                                       |  15 kB     00:00 ... 
    http://mirror.centos.org/centos/6/updates/i386/Packages/mysql-5.1.73-8.el6_8.i686.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=updates clean metadata
    Trying other mirror.
    (2/3): mysql-libs-5.1.73-8.el6_8.i686.rpm                                                                                  |  15 kB     00:00 ... 
    http://mirror.centos.org/centos/6/updates/i386/Packages/mysql-libs-5.1.73-8.el6_8.i686.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=updates clean metadata
    Trying other mirror.
    (3/3): openssl-1.0.1e-48.el6_8.4.i686.rpm                                                                                  |  15 kB     00:00 ... 
    http://mirror.centos.org/centos/6/updates/i386/Packages/openssl-1.0.1e-48.el6_8.4.i686.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=updates clean metadata
    Trying other mirror.
    Error Downloading Packages:
      mysql-libs-5.1.73-8.el6_8.i686: failure: Packages/mysql-libs-5.1.73-8.el6_8.i686.rpm from updates: [Errno 256] No more mirrors to try.
      openssl-1.0.1e-48.el6_8.4.i686: failure: Packages/openssl-1.0.1e-48.el6_8.4.i686.rpm from updates: [Errno 256] No more mirrors to try.
      mysql-5.1.73-8.el6_8.i686: failure: Packages/mysql-5.1.73-8.el6_8.i686.rpm from updates: [Errno 256] No more mirrors to try.
      

  2.   

    http://blog.sina.com.cn/s/blog_541a3cf10101h245.html