Yum編譯安裝Error Downloading Packages報(bào)錯(cuò)
在編譯安裝FS環(huán)境的時(shí)候發(fā)現(xiàn)如何報(bào)錯(cuò):
本文引用地址:http://2s4d.com/article/201609/304212.htmyum編譯執(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
報(bào)錯(cuò)信息如下:
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 報(bào)錯(cuò),那就檢查一下yum倉(cāng)庫(kù)是否有問題;并清除/etc/yum.repos.d/下多余.repo文件!
評(píng)論