Unable to access Oracle rpm repository for Fedora

Discussions related to using VirtualBox on Linux hosts.
Post Reply
YinYang
Posts: 6
Joined: 14. Jan 2020, 15:59

Unable to access Oracle rpm repository for Fedora

Post by YinYang »

Hi,

using the report file at : https://download.virtualbox.org/virtual ... albox.repo

I'm getting :
racle Linux / RHEL / CentOS-36 / x86_64 - VirtualBox 23 kB/s | 6.9 kB 00:00
Errors during downloading metadata for repository 'virtualbox':
- Status code: 404 for http://download.virtualbox.org/virtualb ... repomd.xml (IP: 184.24.68.85)
Error: Failed to download metadata for repo 'virtualbox': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

When acessing with browser :
"


We're sorry, the page you requested was not found.

We have recorded this error (404) to help us fix the problem.
You may wish to try again using one of the tools below.
"

Seems it is NOT considering fedora distribuitions, although the site ( download.oracle.org ) does have a working link/repo : http://download.virtualbox.org/virtualbox/rpm/fedora/

Thank you.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Unable to access Oracle rpm repository for Fedora

Post by scottgus1 »

I've no idea how to fix this, I'm no Linux guru. But when I go to "http://download.virtualbox.org/virtualbox/rpm/el/" there is no "36" subfolder. Maybe there's a problem in the server code that generates those links? Or could it be you're linking to the wrong repository? As you point out, there is a Fedora 36 folder link, and there is a direct Fedora 36 download at https://www.virtualbox.org/wiki/Linux_Downloads.

For example the Fedora 36 "repomd.xml" can be found here: http://download.virtualbox.org/virtualb ... repomd.xml
YinYang
Posts: 6
Joined: 14. Jan 2020, 15:59

Re: Unable to access Oracle rpm repository for Fedora

Post by YinYang »

True, but better would be to have a .repo file :
[virtualbox]
name=Fedora-$releasever
baseurl=http://download.virtualbox.org/virtualb ... /$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc

Could not find an option/variable to replace [ el|fedora ] depending on the system, so unless someone knows the correct variable, a Fedora dedicated .repo file seems to be the best option.

Will the team use it and make it available to general public ?
klaus
Oracle Corporation
Posts: 1135
Joined: 10. May 2007, 14:57

Re: Unable to access Oracle rpm repository for Fedora

Post by klaus »

The original issue is a user error, when manually creating a .repo file not matching the repository organization. There is one repo for EL (with a symlink so that rhel also works), and a separate for Fedora and another one for OpenSUSE.

The repository files are publicly available for 5+ years: Those are all referenced at the bottom of the VirtualBox Linux Downloads page. So there should be little reason to invent your own.
YinYang
Posts: 6
Joined: 14. Jan 2020, 15:59

Re: Unable to access Oracle rpm repository for Fedora

Post by YinYang »

I stand corrected, correct user error, missed the Fedora repo.

Sorry for any incovenience.
Post Reply