virtualbox repo
[virtualbox] name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox baseurl=http://download.virtualbox.org/virtualbox/rpm/rhel/7/$basearch enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
virtualbox repo适配阿里云的OS
阿里自己搞得这个OS. 谨慎安装,我今天踩到坑了。
repo下载的virtualbox的时候拼接路径有问题
Errors during downloading metadata for repository 'virtualbox': - Status code: 404 for http://download.virtualbox.org/virtualbox/rpm/el/3/x86_64/repodata/repomd.xml (IP: 104.75.164.29) Error: Failed to download metadata for repo 'virtualbox': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
修改virtualbox repo
该地址可访问 baseurl 修改为该地址
https://download.virtualbox.org/virtualbox/rpm/rhel/7/x86_64/repodata/
[virtualbox] name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox baseurl=http://download.virtualbox.org/virtualbox/rpm/rhel/7/$basearch enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
成功下载
Is this ok [y/N]: y
Oracle Linux / RHEL / CentOS-3 / x86_64 - VirtualBox 116 kB/s | 497 kB 00:04
Metadata cache created.
安装报错
⚡ root@ninesun /etc/yum.repos.d yum install VirtualBox-7.0
Last metadata expiration check: 0:02:54 ago on Mon 12 Dec 2022 11:18:54 AM CST.
Error:
Problem: cannot install the best candidate for the job
- nothing provides libvpx.so.1()(64bit) needed by VirtualBox-7.0-7.0.4_154605_el7-1.x86_64(try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)
安装 libvpx
yum install libvpx
还是会报错
⚡ root@ninesun /etc/yum.repos.d yum install VirtualBox-7.0
Last metadata expiration check: 0:02:54 ago on Mon 12 Dec 2022 11:18:54 AM CST.
Error:
Problem: cannot install the best candidate for the job
- nothing provides libvpx.so.1()(64bit) needed by VirtualBox-7.0-7.0.4_154605_el7-1.x86_64(try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)
此问题暂时未解决,准备重装ECS的OS. 装成7.3