無法運行 yum update

無法運行 yum update

我已經用頭敲鍵盤了!我正在 CentOS 6.5 x86_64 上工作。

首先我嘗試更新phpapache使用easy apache。更新很快就失敗了,所以我繼續在網路上進行常規搜尋。看來我也跑不了了yum update。這是讀數的底部:

Error: Package: glibc-utils-2.12-1.132.el6_5.2.x86_64 (updates)
       Requires: libgd.so.2()(64bit)
       Removing: gd-2.0.35-11.el6.x86_64 (@base)
           libgd.so.2()(64bit)
       Updated By: gd-2.1.0-1.el6.x86_64 (CentALT)
           Not found
Error: Package: cpanel-webalizer-2.23_05-2.cp1136.x86_64 (installed)
       Requires: libgd.so.2()(64bit)
       Removing: gd-2.0.35-11.el6.x86_64 (@base)
           libgd.so.2()(64bit)
       Updated By: gd-2.1.0-1.el6.x86_64 (CentALT)
           Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

我嘗試過跑步rpm -Va --nofiles --nodigest,但沒有成功。

我讀過的很多內容都提到了儲存庫。我安裝了以下存儲庫:

CentOS-Base.repo
CentOS-Vault.repo
mod-pagespeed.repo
CentOS-Debuginfo.repo
epel.repo
remi.repo
centalt.repo
CentOS-Media.repo
epel-testing.repo

我知道存在問題,centalt.repo因為當我嘗試存取基本 URL 時,我收到一條403:forbidden訊息。

我嘗試使用wget安裝,gd-2.0.35-11.el6.x86_64.rpm但它說它已經安裝了。對我來說,這意味著libgd.so.2()(64bit)也應該安裝(根據http://www.rpmfind.net//linux/RPM/centos/6.5/x86_64/Packages/gd-2.0.35-11.el6.x86_64.html)。

我真的被困在這裡...我真的希望有人能幫我解決這個問題。我需要為客戶更新 PHP。

答案1

我只需將.repoCentALT 檔案重新指向其中一個鏡像即可。主存儲庫確實似乎已關閉,我只能瀏覽其頂級 URL,所有 YUM URL 都返回 403 Forbidden。

這是一面這樣的鏡子:

您可以/etc/yum.repo.d/centos.alt.ru.repo像這樣更改文件:

[CentALT]
name=CentALT Packages for Enterprise Linux 6 - $basearch
baseurl=http://mirror.neu.edu.cn/CentALT/6/$basearch/
enabled=1
gpgcheck=0

參考

相關內容