Install on Rocky Linux 9 via dnf - Help - Interrupted by header callback: Inconsistent server data, reported file Content-Length: 16417424, repository metadata states file length: 16417228 (please report to repository maintainer)

SYSTEM INFORMATION
OS type and version 9.2 (Blue Onyx)
Webmin version webmin-2.021-1.noarch

I would like to install Webmin via the dnf package manager. I have a small home lab and I like to have my base server builds scripted. When trying to install Webmin via dnf, I keep receiving the following error: “Interrupted by header callback: Inconsistent server data, reported file Content-Length: 16417424, repository metadata states file length: 16417228 (please report to repository maintainer)”.

Here is my repo configuration:
[Webmin]
name=Webmin
mirrorlist=https://download.webmin.com/download/yum/mirrorlist
enabled=1
gpgkey=http://www.webmin.com/jcameron-key.asc

Here are the errors:
[MIRROR] usermin-1.861-1.noarch.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 16417424, repository metadata states file length: 16417228 (please report to repository maintainer)
[MIRROR] usermin-1.861-1.noarch.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 16417424, repository metadata states file length: 16417228 (please report to repository maintainer)
[MIRROR] webmin-2.021-1.noarch.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 41498892, repository metadata states file length: 41498760 (please report to repository maintainer)
(52/53): usermin-1.861-1.noarch.rpm 665 kB/s | 16 MB 00:24
[MIRROR] webmin-2.021-1.noarch.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 41498892, repository metadata states file length: 41498760 (please report to repository maintainer)
[FAILED] webmin-2.021-1.noarch.rpm: No more mirrors to try - All mirrors were already tried without success

The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing ‘dnf clean packages’.
Error: Error downloading packages:
webmin-2.021-1.noarch: Cannot download, all mirrors were already tried without success

Would someone be able to provide me an automated method to installing webmin? I prefer via dnf so webmin stays updates; however, I would even be fine with an automated script at this point.

Thank you so much!

Obviously, dnf should work. You shouldn’t use random scripts to install packages.

Try dnf clean and try to install again. If problems persist, I’ll ping Jamie about it.

I have tried for several days to no avail. For now, I restored to a manual method. This works; just means I need to manually update as new releases become available. I’d still love to have a working repo so I can install and update via dnf. Thanks so much!

wget Download webmin-2.021-1.noarch.rpm (Webmin) -P /tmp &&

dnf install -y /tmp/webmin-2.021-1.noarch.rpm &&

rm -f /tmp/webmin-2.021-1.noarch.rpm

doesn’t this install the repos for dnf

I get a GPG error that wants me to downgrade the system to SHA1.

That was fixed a month or so ago. I’m not sure how it was fixed, I would assume a new repo using the new signing key. You may have to switch to the new repo.

I would guess that running the repo-setup.sh script again would fix the key situation, but I’m guessing. But, I know the Virtualmin install.sh repo setup mode upgrades repos, and Ilia wrote both.

Maybe I am not using the correct download link? I have tried over the past week on several different days with fresh, brand-new Rocky 9 installs and get the error.

This is how to get the latest correct?
curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
sh setup-repos.sh

I just tried again this morning with a fresh Rocky install. It appears to still be trying to use SHA1.

Installing Webmin key …
warning: Signature not supported. Hash algorithm SHA1 not available.
error: developers-key.asc: key 1 import failed.

Full details:

[root@rocky2 ~]# cat /etc/rocky-release
Rocky Linux release 9.2 (Blue Onyx)

[root@rocky2 ~]# uname -a
Linux rocky2 6.2.16-3-pve #1 SMP PREEMPT_DYNAMIC PVE 6.2.16-3 (2023-06-17T05:58Z) x86_64 x86_64 x86_64 GNU/Linux

[root@rocky2 ~]# dnf upgrade -y --refresh
Extra Packages for Enterprise Linux 9 - x86_64                                                                              149 kB/s |  28 kB     00:00
Extra Packages for Enterprise Linux 9 - Next - x86_64                                                                       166 kB/s |  21 kB     00:00
Rocky Linux 9 - BaseOS                                                                                                       11 kB/s | 4.1 kB     00:00
Rocky Linux 9 - AppStream                                                                                                    17 kB/s | 4.5 kB     00:00
Rocky Linux 9 - CRB                                                                                                          15 kB/s | 4.5 kB     00:00
Rocky Linux 9 - Extras                                                                                                      5.4 kB/s | 2.9 kB     00:00
Dependencies resolved.
Nothing to do.
Complete!

[root@rocky2 ~]# curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
sh setup-repos.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4876  100  4876    0     0  67722      0 --:--:-- --:--:-- --:--:-- 67722
Setup Webmin official repository? (y/N) y
  Downloading Webmin key ..
  .. done
  Installing Webmin key ..
warning: Signature not supported. Hash algorithm SHA1 not available.
error: developers-key.asc: key 1 import failed.
  .. done
  Setting up Webmin repository ..
  .. done
Webmin package can now be installed using dnf install webmin command.

[root@rocky2 ~]# dnf install -y webmin
Webmin - noarch                                                                                                              11 kB/s | 170 kB     00:15
Dependencies resolved.
============================================================================================================================================================
 Package                            Architecture                       Version                              Repository                                 Size
============================================================================================================================================================
Installing:
 webmin                             noarch                             2.021-1                              webmin-noarch                              40 M

Transaction Summary
============================================================================================================================================================
Install  1 Package

Total download size: 40 M
Installed size: 116 M
Downloading Packages:
webmin-2.021-1.noarch.rpm                                                                                                   2.3 MB/s |  40 MB     00:17
------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                       2.3 MB/s |  40 MB     00:17
Webmin - noarch                                                                                                             3.0 MB/s | 3.0 kB     00:00
Importing GPG key 0xFF6ADD85:
 Userid     : "Webmin Developers <developers@webmin.com>"
 Fingerprint: B966 3227 39F9 8E2E 092E 69CF 28E1 1943 FF6A DD85
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-webmin-developers
warning: Signature not supported. Hash algorithm SHA1 not available.
Key import failed (code 2). Failing package is: webmin-2.021-1.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webmin-developers
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

@Ilia, what’s going on here?

@Jamie, where we at?

For now we’re still recommending a work-around of running update-crypto-policies --set DEFAULT:SHA1

Okay, thank you for the update. Rather than downgrading my crypto policies (I am not sure where to get the update-crypto-policies command anyway as it doesn’t exist on Rocky Linux 9), I’ll stick with the manual method. Any plans to upgrade the GPG key?

We’re working on it …

The issue was fixed. You can try re-running the following command to re-setup the repos and reimport the signing key:

curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
sh setup-repos.sh
1 Like

Thank you so much. It is working now. Much appreciated!

does this GPG key ‘issue’ carry over to the virtualmin repo ?

that is, does the virtualmin repo need a new key too?

No. This has nothing to do with the Virtualmin repos.

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