Linux
更新沒有軟體包的 Red Hat 儲存庫
我正在嘗試在我的 RHEL 5.10 (Tikanga) 伺服器上安裝一些軟體包,但是由於安裝了零軟體包的 repo,我無法這樣做。
當我這樣做時
yum repolist
,它顯示為這樣(隱藏了其他儲存庫):repo id repo name status zabbix RS Zabbix Repository 0
然而,我在這個執行緒中遇到了答案,我寧願更新它或恢復它應該擁有的包,而不是刪除或禁用它。
我該怎麼辦?所有搜尋點都指向不適用於我的系統。這是來自的輸出
yum repolist -v zabbix
:Loading "rhnplugin" plugin Loading "security" plugin Config time: 0.072 This system is receiving updates from RHN Classic or RHN Satellite. Looking for repo options for [main] Looking for repo options for [rhel-x86_64-server-5] Repo 'rhel-x86_64-server-5' setting option 'enabled' = '1' Repo 'rhel-x86_64-server-5' setting option 'gpgcheck' = '1' Looking for repo options for [rs-rhel-x86_64-server-5-common] Repo 'rs-rhel-x86_64-server-5-common' setting option 'enabled' = '1' Repo 'rs-rhel-x86_64-server-5-common' setting option 'gpgcheck' = '1' Looking for repo options for [rhel-x86_64-server-vt-5] Repo 'rhel-x86_64-server-vt-5' setting option 'enabled' = '1' Repo 'rhel-x86_64-server-vt-5' setting option 'gpgcheck' = '1' Yum Version: 3.2.22 http://el5.racklabs.co.uk/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: zabbix. Please verify its path and try again
對於 Zabbix,該 URL 似乎已損壞或不正確。
$ curl -I http://el5.racklabs.co.uk/repodata/repomd.xml HTTP/1.1 404 Not Found Content-Length: 0 Content-Type: text/html; charset=UTF-8 X-Trans-Id: tx22005d1372924371a082e-00530356f9lon3 Vary: Accept-Encoding Cache-Control: public, max-age=30 Expires: Tue, 18 Feb 2014 12:50:31 GMT Date: Tue, 18 Feb 2014 12:50:01 GMT Connection: keep-alive
注意到它返回了 404 嗎?我會仔細檢查以確保您的安裝是正確的/最新的。他們下載文件的首頁在
.repo
這裡,標題為:3 Installation from packages。顯示 EL5 的這個命令:
用於 RHEL5 的 Zabbix 2.0:
64 位
$ sudo rpm -ivh http://repo.zabbix.com/zabbix/2.0/rhel/5/x86_64/zabbix-release-2.0-1.el5.noarch.rpm
32 位
$ sudo rpm -ivh http://repo.zabbix.com/zabbix/2.0/rhel/5/i386/zabbix-release-2.0-1.el5.noarch.rpm
主倉庫也在這裡:http ://repo.zabbix.com/ 。