Virtualmin Repository URL for Updating Rocky Linux OS

SYSTEM INFORMATION
OS type and version Rocky Linux 8
Webmin version REQUIRED
Virtualmin version REQUIRED
Related packages SUGGESTED

The OS installed OK with github/virtualmin script a month or two ago.

But problem updating virtualmin packages: repo url is wrong!

What is the actual URL/mirror for Virtualmin GPL repos for Rocky Linux?

Update 1:

cat /etc/yum.repos.d/virtualmin.repo

[virtualmin]
name=RHEL $releasever - $basearch - Virtualmin
baseurl=http://GPL:GPL@software.virtualmin.com/vm/7/gpl/rhel/$releasever/$basear                                        ch/
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin-7
gpgcheck=1

[virtualmin-universal]
name=Virtualmin Distribution Neutral Packages
baseurl=http://GPL:GPL@software.virtualmin.com/vm/7/gpl/universal/
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin-7
gpgcheck=1

Update 2: This is the error I get when I enable the above repos

[root@ns36 ~]# dnf -y update
RHEL 8 - x86_64 - Virtualmin                                                            333  B/s | 240  B     00:00
Errors during downloading metadata for repository 'virtualmin':
  - Status code: 404 for http://GPL:GPL@software.virtualmin.com/vm/7/gpl/rhel/8/x86_64/repodata/repomd.xml (IP: 163.172.162.254)
Error: Failed to download metadata for repo 'virtualmin': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[root@ns36 ~]#

Hello,

The solution would be is to download development version of install.sh script (for now) and running it with --setup param, like this:

wget https://raw.githubusercontent.com/virtualmin/virtualmin-install/master/virtualmin-install.sh
sh virtualmin-install.sh --setup

You don’t need to do anything else, not even to edit install.sh script to add your actual license. It will all be done automatically.

[root@ns36 ~]# sh virtualmin-install.sh --setup
Running Virtualmin 7 pre-installation setup:
Checking and installing system packages updates, if any …
… done
[INFO] Started installation log in /root/virtualmin-install.log
▣ Phase 1 of 1: Setup
Installing core plugins for package manager [ERROR] Failed with error: 1
[ ✘ ]

[ERROR] Something went wrong. Exiting.
[ERROR] The last few log entries were:
[2022-06-10 18:54:11 IST] [DEBUG] Operating system name: Rocky
[2022-06-10 18:54:11 IST] [DEBUG] Operating system version: 8.6
[2022-06-10 18:54:11 IST] [DEBUG] Operating system type: rocky
[2022-06-10 18:54:11 IST] [DEBUG] Operating system major: 8
[2022-06-10 18:54:11 IST] [DEBUG] Configuring package manager for Rocky 8.6 …
[2022-06-10 18:54:11 IST] [DEBUG] Disabling SELinux during installation …
[2022-06-10 18:54:11 IST] [DEBUG] setenforce 0 failed: 1
Spin pid is: 480471
RHEL 8 - x86_64 - Virtualmin 332 B/s | 240 B 00:00
Errors during downloading metadata for repository ‘virtualmin’:

  • Status code: 404 for http://GPL:GPL@software.virtualmin.com/vm/7/gpl/rhel/8/x86_64/repodata/repomd.xml (IP: 163.172.162.254)
    Error: Failed to download metadata for repo ‘virtualmin’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    Installing core plugins for package manager: [2022-06-10 18:54:17 IST] [ERROR] Failed with error: 1
    [2022-06-10 18:54:17 IST] [ERROR] Something went wrong. Exiting.
    [2022-06-10 18:54:17 IST] [ERROR] The last few log entries were:
    [root@ns36 ~]# ls
    anaconda-ks.cfg install.sh virtualmin-install.log virtualmin-install.sh virtualmin-install.sh.1
    [root@ns36 ~]#

Oh my bad. Didn’t realize I already had virtualmin-install.sh and the latest one saved with .1

OK after doing
sh virtualmin-install.sh.1 --setup

dnf -y update ran without errors

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.