Problem with virtualbox repo on rocky 8.5

Hi,

I’m unable to install virtualbox on rocky linux 8.5

here is an error from dnf

Oracle Linux / RHEL / CentOS - 8 x86_64 - VirtualBox 598 B/s | 190 kB 05:26
Errors during downloading metadata for repository ‘virtualbox’:

here some system information.
Any idea what could be wrong?

Thank you,
tj

[root@rockyresearch tomasz]# cat /etc/yum.repos.d/virtualbox.repo
[virtualbox]
name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc

python3 -c ‘import dnf, pprint; db = dnf.dnf.Base(); pprint.pprint(db.conf.substitutions,width=1)’
{‘arch’: ‘x86_64’,
‘basearch’: ‘x86_64’,
‘releasever’: ‘8’}

[root@rockyresearch tomasz]# cat /etc/redhat-release
Rocky Linux release 8.5 (Green Obsidian)

Hey @tomasz , that looks like VirtualBox’s repo was unreachable, too busy or the connection was too slow at the time when trying to download the files. Is that a permanent error, still happening for you?
I just checked from here and it looks okay to me, I can curl the files from the stated links without problem…

Cheers, Thomas

hi schroedingersdog

still happening since Friday when I was trying to install vb first time. I can not curl the xml.gz files (server in center iowa) and also download via www in Poland…

but I can download with curl rpm file http://download.virtualbox.org/virtualbox/rpm/rhel/8/x86_64/VirtualBox-6.1-6.1.8_137981_el8-1.x86_64.rpm

will command
rpm -qpl VirtualBox-6.1-6.1.8_137981_el8-1.x86_64.rpm do the same what dnf do?

Thank you

[tomasz@rockyresearch ~]$ curl -O Index of http://download.virtualbox.org/virtualbox/rpm rhel/8/x86_64/repodata/a085d513d5c91646b12eca2ef3a534f50c4515748dd4363519ed3af5a 6c5e134-primary.xml.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
95 6875 95 6550 0 0 10 0 0:11:27 0:10:15 0:01:12 0
curl: (56) Recv failure: Connection timed out

"rpm -qpl " will only list files.
so question is what command mimics dnf?
thank you

the same problem with epel repo…
im wondering what is wrong here…

Thank you

Hi @tomasz,

I don’t know why the repo files (xml.gz) don’t work for you. Sorry.
However, if the question is how to install a package from its .rpm file, it’s basically one of 2 ways:

  1. In GUI / gnome:
    Open file manager, navigate to downloads directory and double-click the downloaded .rpm file

  2. From command-line:
    Open terminal, cd to downloads directory and enter
    sudo rpm -i PACKAGEFILE.rpm
    (…and replace “PACKAGEFILE” accordingly)

In order to make sure that your downloaded file was not corrupted during transfer, you can do a checksum verification. The checksums are available directly from the download page of rocky (rightmost of the minimal|DVD|boot… .ISO links). More details here:
https://docs.rockylinux.org/guides/installation/#verifying-the-installer-iso-file

Also, if you need to download it again, simply use wget instead of curl. My experience is, that I often struggle with the many options of curl while wget works perfectly for downloading without having to specify anything except the filename.

Finally, this link summarizes all of the above:

Hope this helps, cheers, Thomas

VirtualBox from RPMFusion repository works perfectly here.

Hi All,
I have the same problem with rpmfusion repository :frowning:

Errors during downloading metadata for repository ‘rpmfusion-free-updates’:

except Rocky- repositories I have also epel repo configured
epel-modular.repo epel-playground.repo epel.repo epel-testing-modular.repo epel-testing.repo
epel works fine.

docker repo also works fine

Thank you