Yum編譯安裝Error Downloading Packages報錯
在編譯安裝FS環(huán)境的時候發(fā)現(xiàn)如何報錯:
yum編譯執(zhí)行命令如下:
yum install ntpdate wget autoconf automakelibtool gcc-c++ zlib-devel libjpeg-devel sqlite-devel libcurl-devel pcre-develspeex-devel libedit-devel openssl-devel libogg-devel libvorbis-devel
報錯信息如下:
Error Downloading Packages:
openssl-devel-1.0.1e-16.el6_5.14.i686:failure: Packages/openssl-devel-1.0.1e-16.el6_5.14.i686.rpm base: [Errno 256] No more mirrors to try.
openssl-devel-1.0.1e-16.el6_5.14.i686:failure: Packages/openssl-devel-1.0.1e-16.el6_5.14.i686.rpm base: [Errno 256] No more mirrors to try.
openssl-devel-1.0.1e-16.el6_5.14.i686:failure: Packages/openssl-devel-1.0.1e-16.el6_5.14.i686.rpm base: [Errno 256] No more mirrors to try.
openssl-devel-1.0.1e-16.el6_5.14.i686:failure: Packages/openssl-devel-1.0.1e-16.el6_5.14.i686.rpm from base: [Errno 256] No more mirrors to try.
解決思路:
1:執(zhí)行yum clean all 清除緩存目錄下的軟件包及舊的headers;
2:接著執(zhí)行 yum list 重新列出所有已經(jīng)安裝和可以安裝的軟件包;
3:重新執(zhí)行上述命令,發(fā)現(xiàn)yum編譯成功;
注意:如果執(zhí)行 yum list 報錯,那就檢查一下yum倉庫是否有問題;并清除/etc/yum.repos.d/下多余.repo文件!