Closed2

Photon OSエラー

roota5666roota5666

対応

リポジトリURL

設定されている参照先URL
https://dl.bintray.com/vmware/photon_extras_3.0_x86_64/repodata/repomd.xml

新しいURL
https://packages.vmware.com/photon

変更する前
https://dl.bintray.com/vmware/photon_extras_3.0_x86_64/repodata/repomd.xml
変更後
https://packages.vmware.com/photon/3.0/photon_extras_3.0_x86_64/repodata/repomd.xml

変更する前
baseurl=https://dl.bintray.com/vmware/photon_debuginfo_releasever_basearch
変更後
baseurl=https://packages.vmware.com/vmware/photon_debuginfo_releasever_basearch

設定確認

root@photon-675c5d3c1a6a [ ~ ]# ls -l /etc/yum.repos.d/
total 20
-rw-r--r-- 1 root root 239 Feb  4  2019 photon-debuginfo.repo
-rw-r--r-- 1 root root 224 Feb  4  2019 photon-extras.repo
-rw-r--r-- 1 root root 181 Feb  4  2019 photon-iso.repo
-rw-r--r-- 1 root root 217 Feb  4  2019 photon.repo
-rw-r--r-- 1 root root 233 Feb  4  2019 photon-updates.repo
root@photon-675c5d3c1a6a [ ~ ]#

file list

/etc/yum.repos.d/photon-debuginfo.repo
/etc/yum.repos.d/photon-extras.repo
/etc/yum.repos.d/photon-iso.repo
/etc/yum.repos.d/photon.repo
/etc/yum.repos.d/photon-updates.repo

変更前

root@photon-675c5d3c1a6a [ ~ ]# ls -l /etc/yum.repos.d/
total 20
-rw-r--r-- 1 root root 239 Feb  4  2019 photon-debuginfo.repo
-rw-r--r-- 1 root root 224 Feb  4  2019 photon-extras.repo
-rw-r--r-- 1 root root 181 Feb  4  2019 photon-iso.repo
-rw-r--r-- 1 root root 217 Feb  4  2019 photon.repo
-rw-r--r-- 1 root root 233 Feb  4  2019 photon-updates.repo
root@photon-675c5d3c1a6a [ ~ ]#
root@photon-675c5d3c1a6a [ ~ ]#
root@photon-675c5d3c1a6a [ ~ ]# cat /etc/yum.repos.d/photon-debuginfo.repo
[photon-debuginfo]
name=VMware Photon Linux debuginfo 3.0(x86_64)
baseurl=https://dl.bintray.com/vmware/photon_debuginfo_$releasever_$basearch
gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
gpgcheck=1
enabled=0
skip_if_unavailable=True
root@photon-675c5d3c1a6a [ ~ ]#
root@photon-675c5d3c1a6a [ ~ ]# cat /etc/yum.repos.d/photon-extras.repo
[photon-extras]
name=VMware Photon Extras 3.0(x86_64)
baseurl=https://dl.bintray.com/vmware/photon_extras_$releasever_$basearch
gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
gpgcheck=1
enabled=1
skip_if_unavailable=True
root@photon-675c5d3c1a6a [ ~ ]#
root@photon-675c5d3c1a6a [ ~ ]# cat /etc/yum.repos.d/photon-iso.repo
[photon-iso]
name=VMWare Photon Linux ISO 3.0(x86_64)
baseurl=file:///mnt/cdrom/RPMS
gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
gpgcheck=1
enabled=0
skip_if_unavailable=True
root@photon-675c5d3c1a6a [ ~ ]#
root@photon-675c5d3c1a6a [ ~ ]# cat /etc/yum.repos.d/photon.repo
[photon]
name=VMware Photon Linux 3.0(x86_64)
baseurl=https://dl.bintray.com/vmware/photon_release_$releasever_$basearch
gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
gpgcheck=1
enabled=1
skip_if_unavailable=True
root@photon-675c5d3c1a6a [ ~ ]#
root@photon-675c5d3c1a6a [ ~ ]# cat /etc/yum.repos.d/photon-updates.repo
[photon-updates]
name=VMware Photon Linux 3.0(x86_64) Updates
baseurl=https://dl.bintray.com/vmware/photon_updates_$releasever_$basearch
gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
gpgcheck=1
enabled=1
skip_if_unavailable=True
root@photon-675c5d3c1a6a [ ~ ]#

変更後

root@photon-675c5d3c1a6a [ ~ ]# cd /etc/yum.repos.d/
root@photon-675c5d3c1a6a [ /etc/yum.repos.d ]# sed  -i 's/dl.bintray.com\/vmware/packages.vmware.com\/photon\/$releasever/g' photon.repo photon-updates.repo photon-extras.repo photon-debuginfo.repo
root@photon-675c5d3c1a6a [ /etc/yum.repos.d ]#
root@photon-675c5d3c1a6a [ /etc/yum.repos.d ]# cat /etc/yum.repos.d/photon-debuginfo.repo
[photon-debuginfo]
name=VMware Photon Linux debuginfo 3.0(x86_64)
baseurl=https://packages.vmware.com/photon/$releasever/photon_debuginfo_$releasever_$basearch
gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
gpgcheck=1
enabled=0
skip_if_unavailable=True
root@photon-675c5d3c1a6a [ /etc/yum.repos.d ]# cat /etc/yum.repos.d/photon-extras.repo
[photon-extras]
name=VMware Photon Extras 3.0(x86_64)
baseurl=https://packages.vmware.com/photon/$releasever/photon_extras_$releasever_$basearch
gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
gpgcheck=1
enabled=1
skip_if_unavailable=True
root@photon-675c5d3c1a6a [ /etc/yum.repos.d ]# cat /etc/yum.repos.d/photon-iso.repo
[photon-iso]
name=VMWare Photon Linux ISO 3.0(x86_64)
baseurl=file:///mnt/cdrom/RPMS
gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
gpgcheck=1
enabled=0
skip_if_unavailable=True
root@photon-675c5d3c1a6a [ /etc/yum.repos.d ]# cat /etc/yum.repos.d/photon.repo
[photon]
name=VMware Photon Linux 3.0(x86_64)
baseurl=https://packages.vmware.com/photon/$releasever/photon_release_$releasever_$basearch
gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
gpgcheck=1
enabled=1
skip_if_unavailable=True
root@photon-675c5d3c1a6a [ /etc/yum.repos.d ]# cat /etc/yum.repos.d/photon-updates.repo
[photon-updates]
name=VMware Photon Linux 3.0(x86_64) Updates
baseurl=https://packages.vmware.com/photon/$releasever/photon_updates_$releasever_$basearch
gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
gpgcheck=1
enabled=1
skip_if_unavailable=True
root@photon-675c5d3c1a6a [ /etc/yum.repos.d ]#
root@photon-675c5d3c1a6a [ /etc/yum.repos.d ]# grep baseurl /etc/yum.repos.d/*
/etc/yum.repos.d/photon-debuginfo.repo:baseurl=https://packages.vmware.com/photon/$releasever/photon_debuginfo_$releasever_$basearch
/etc/yum.repos.d/photon-extras.repo:baseurl=https://packages.vmware.com/photon/$releasever/photon_extras_$releasever_$basearch
/etc/yum.repos.d/photon-iso.repo:baseurl=file:///mnt/cdrom/RPMS
/etc/yum.repos.d/photon.repo:baseurl=https://packages.vmware.com/photon/$releasever/photon_release_$releasever_$basearch
/etc/yum.repos.d/photon-updates.repo:baseurl=https://packages.vmware.com/photon/$releasever/photon_updates_$releasever_$basearch
root@photon-675c5d3c1a6a [ /etc/yum.repos.d ]#
このスクラップは2023/10/05にクローズされました