Install error - The repository 'https://software.virtualmin.com/vm/7/gpl/apt virtualmin Release' does not have a Release file

new install on ubuntu 20.04

E: The repository ‘Index of /vm/7/gpl/apt virtualmin Release’ does not have a Release file.
Downloading repository metadata: [2022-10-13 17:28:02 BST] [ERROR] Failed with error: 100
[2022-10-13 17:28:02 BST] [ERROR] Something went wrong. Exiting.
[2022-10-13 17:28:02 BST] [ERROR] The last few log entries were:

1 Like

I am getting the exact sme thing on install.

Hello,

What is the error message (last 10 lines) you’re getting logged at /root/virtualmin-install.log file?

Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 163.172.162.254 443]
Reading package lists…
E: The repository ‘Index of /vm/7/gpl/apt virtualmin Release’ does not have a Release file.
Downloading repository metadata: [2022-10-13 17:28:02 BST] [ERROR] Failed with error: 100
[2022-10-13 17:28:02 BST] [ERROR] Something went wrong. Exiting.
[2022-10-13 17:28:02 BST] [ERROR] The last few log entries were:

I believe this issue is happening on your side. Please make sure that you’re using the latest Virtualmin 7.0.0. install script?

https://www.virtualmin.com/download/

Also, check if date is set correctly on your systems and if latest ca-certificates package is installed.

I ve looked through the help guide and all ready up dated the ca etc and I even tried the pre release script and get the same result

What is the output of these commands:

ping software.virtualmin.com
host software.virtualmin.com
apt-get update

Try running:

apt install --reinstall ca-certificates

If that doesn’t help, try fixing your Virtualmin repos by running:

wget -O virtualmin-install.sh https://software.virtualmin.com/gpl/scripts/install.sh; /usr/bin/sudo /bin/sh virtualmin-install.sh --setup

If that still doesn’t work, edit /etc/apt/sources.list.d/virtualmin.list replacing https with http in the URL.

In-fact technically, it’s okay to download packages using http as we check for the package signature anyway.

Also, please note that running apt-get upgrade shouldn’t have a lock on /var/lib/dpkg/lock-frontend file (hopefully this is not the issue we’re all discussing here).

i will try removing the https and see how that gos but everything else above in the screen shot.

the install script changes it back to https

Follow the steps please.

Also, I wonder if your system has /etc/apt/auth.conf.d/virtualmin.conf file present?

Hi,
I have the same issue.

root@ubuntu20:~# ping software.virtualmin.com
PING software.virtualmin.com (163.172.162.254) 56(84) bytes of data.
64 bytes from 254-162-172-163.instances.scw.cloud (163.172.162.254): icmp_seq=1 ttl=48 time=86.4 ms
64 bytes from 254-162-172-163.instances.scw.cloud (163.172.162.254): icmp_seq=2 ttl=48 time=82.4 ms
64 bytes from 254-162-172-163.instances.scw.cloud (163.172.162.254): icmp_seq=3 ttl=48 time=84.6 ms
64 bytes from 254-162-172-163.instances.scw.cloud (163.172.162.254): icmp_seq=4 ttl=48 time=82.0 ms
64 bytes from 254-162-172-163.instances.scw.cloud (163.172.162.254): icmp_seq=5 ttl=48 time=89.9 ms
^C
software.virtualmin.com ping statistics —
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 81.990/85.076/89.934/2.899 ms
root@ubuntu20:~# host software.virtualmin.com
software.virtualmin.com has address 163.172.162.254
root@ubuntu20:~# apt-get update
Hit:1 Index of /ubuntu focal InRelease
Get:2 Index of /ubuntu focal-updates InRelease [114 kB]
Hit:3 Zabbix Official Repository focal InRelease
Get:4 Index of /ubuntu focal-backports InRelease [108 kB]
Get:5 Index of /ubuntu focal-security InRelease [114 kB]
Ign:6 Index of /vm/7/gpl/apt virtualmin InRelease
Err:7 Index of /vm/7/gpl/apt virtualmin Release
Could not wait for server fd - select (11: Resource temporarily unavailable) [IP: 163.172.162.254 443]
Reading package lists… Done
E: The repository ‘Index of /vm/7/gpl/apt virtualmin Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

That is not the case, have a look: https://software.virtualmin.com/vm/7/gpl/apt/dists/virtualmin/InRelease

At first make sure that there is only one Virtualmin repo defined for APT by running:

grep -R virtualmin /etc/apt

The only found file should be:

/etc/apt/sources.list.d/virtualmin.list

Next check if the file content is:

deb [signed-by=/usr/share/keyrings/debian-virtualmin-7.gpg] https://software.virtualmin.com/vm/7/gpl/apt virtualmin main

It’s important to notice that the key /usr/share/keyrings/debian-virtualmin-7.gpg is properly installed (and correct for Virtualmin 7 repo, as old key from Virtualmin 6 wouldn’t work).

To fix Virtualmin repos and import proper sign key, just download official virtualmin-install.sh script and run it with --setup param:

wget -O virtualmin-install.sh https://software.virtualmin.com/gpl/scripts/install.sh; /usr/bin/sudo /bin/sh virtualmin-install.sh --setup

This command will re-setup the repos for you, and should fix the problem.

Now, if you still have the initial issue, then this is not something we can fix. Although, there is a fix, when APT is getting lost in its own repos metadata, by first commenting out certain repo, i.e. in our case the commented out line in /etc/apt/sources.list.d/virtualmin.list would look like:

#deb [signed-by=/usr/share/keyrings/debian-virtualmin-7.gpg] https://software.virtualmin.com/vm/7/gpl/apt virtualmin main

… then running apt-get update, and right afterwards uncommenting Virtualmin repo line that we just commented, and then again re-running apt-get update command.

1 Like

Also, sometimes running apt clean could also solve this kind of error but I’m pretty sure ya’ll tried it.

1 Like

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