︿
Top


前言

最近,有個測試需求要在環境中使用 VMware Flings - vSAN Performance Monitor,將 vSAN Performance Monitor 導入 VMware 基礎架構並完成系統開機後,發現採用的是 VMware Photon OS 3 作業系統。

簡單來說,這是 VMware 打造的 Minimal Linux Container Host 系統,相關參考資訊如下:


Question

順利開機後,在執行 tdnf 指令更新 Repository 時卻怎麼也無法成功執行,並出現下列錯誤訊息,嘗試各種可能的解決方式後,看來已經不是主機的網路問題或是 Proxy 設定上的問題?
Refreshing metadata for: 'VMware Photon Linux 3.0( x86_64)'
curl#60: Peer certificate cannot be authenticated with given CA certificates 
Error: Failed to synchronize cache for repo 'VMware Photon Linux 3.0( x86_64)' from 'https://dl.bintray.com/vnware/photon_release_3.0_x86_64' 
Disabling Repo: 'VMware Photon Linux 3.0( x86_64)' 
Refreshing metadata for: 'VMware Photon Linux 3.0( x86_64) Updates' 
curl#60: Peer certificate cannot be authenticated with given CA certificates 
Error: Failed to synchronize cache for repo 'VMware Photon Linux 3.0( x86_64) Updates' from 'https://dl.bintray.com/vnware/photon_updates_3.0_x86_64' 
Disabling Repo: 'VMware Photon Linux 3.0( x86_64) Updates' 
Refreshing metadata for: 'VMware Photon Extras 3.0( x86_64) ' 
curl#60: Peer certificate cannot be authenticated with given CA certificates 
Error: Failed to synchronize cache for repo 'VMware Photon Extras 3.0( x86_64)' from 'https://dl.bintray.com/vnware/photon_extras_3.0_x86_64' 
Disabling Repo: 'VMware Photon Extras 3.0( x86_64)' 
No package photon-repos available
Error (1011): No match ing packages




Answer

最後,找到了下面二篇文章解決疑惑。簡單來說,舊有的 Bintray Repository (dl.bintray.com) 已經在 2020 年 11 月 25 日正式退役了,必須要將 Repository 位址改成新的 packages.vmware.com 才行。
依據 VMware KB 文章,切換到 Repository 路徑下執行指令進行更換後,後續便能順利執行 tdnf repolist、tdnf makecache、tdnf update......等指令。
cd /etc/yum.repos.d/
cat ./!(photon-iso.repo) | grep baseurl
sed  -i 's/dl.bintray.com\/vmware/packages.vmware.com\/photon\/$releasever/g' photon.repo photon-updates.repo photon-extras.repo photon-debuginfo.repo
cat ./!(photon-iso.rpo) | grep baseurl 



文章標籤: