GPL install: unpacking archive failed, cpio: Digest mismatch

SYSTEM INFORMATION
OS type and version Oracle 9 x86_64
Webmin version 2
Virtualmin version 7
Related packages GPL install virtualmin-pro-release-7.0-1.noarch

Running standard GPL install.

Error message:

unpacking of archive failed on file /etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin-7;6446af9d: cpio: Digest mismatch

Installer messages and errors (scroll the code window to see the errors at the end…):

 Continue? (y/n) y
[DEBUG] Memory is greater than 1572 MB, which should be sufficient.
[INFO] Started installation log in /root/virtualmin-install.log
[DEBUG] Phase 1 of 3: Setup
▣◻◻ Phase 1 of 3: Setup
[DEBUG] Install mode: full
[DEBUG] Product: Virtualmin GPL
[DEBUG] install.sh version: 7.0.3
[DEBUG] Checking for fully qualified hostname ..
[DEBUG] Hostname is fully qualified as ol9-testing.redacted.name.edu
[DEBUG] Setting hostname to ol9-testing.redacted.name.edu
[DEBUG] Hostname is fully qualified as ol9-testing.redacted.name.edu
[DEBUG] Primary address detected as 172.27.72.181
[DEBUG] Entry for IP 172.27.72.181 exists in /etc/hosts.
[DEBUG] Updating with new hostname.
[DEBUG] Installing serial number and license key into /etc/virtualmin-license
[DEBUG] Operating system name:    Oracle Linux
[DEBUG] Operating system version: 9.1
[DEBUG] Operating system type:    ol
[DEBUG] Operating system major:   9
[DEBUG] Configuring package manager for Oracle Linux 9.1 ..
[DEBUG] Disabling SELinux during installation ..
[DEBUG]  setenforce 0 succeeded
Installing core plugins for package manager                                  ✔
Downloading Virtualmin 7 release package                                     ✔
Installing Virtualmin 7 release package                                     [ERROR] Failed with error: 1
 ✘

[ERROR] Something went wrong. Exiting.
[ERROR] The last few log entries were:
Dependencies resolved.
Nothing to do.
Complete!
Installing core plugins for package manager: Success.
Spin pid is: 2598
2023-04-24 12:34:35 URL:https://software.virtualmin.com/vm/7/rpm/virtualmin-gpl-release.noarch.rpm [18879/18879] -> "virtualmin-gpl-release.noarch.rpm" [1]
Downloading Virtualmin 7 release package: Success.
error: package  is not installed
Spin pid is: 2641
warning: virtualmin-gpl-release.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID b9a0b8b7: NOKEY
error: unpacking of archive failed on file /etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin-7;6446af9d: cpio: Digest mismatch
error: virtualmin-gpl-release-7.0-1.noarch: install failed
Installing Virtualmin 7 release package: [2023-04-24 12:34:37 EDT] [ERROR] Failed with error: 1
[2023-04-24 12:34:37 EDT] [ERROR] Something went wrong. Exiting.

have you read this
https://www.virtualmin.com/documentation/os-support/
Oracle Linux 8 and 9 on x86_64 (using --unstable param)

@stefan1958 Yes, I am using the -e (–unstable) flag.

This is very similar error to:

Same error when I tried install with my Pro license:

 wget -O virtualmin-install.sh https://software.virtualmin.com/cgi-bin/install.cgi?serial=[redacted]\&key=[redacted]; /usr/bin/sudo /bin/sh virtualmin-install.sh -e
[INFO] Started installation log in /root/virtualmin-install.log
▣◻◻ Phase 1 of 3: Setup
Installing core plugins for package manager                                  ✔
Downloading Virtualmin 7 release package                                     ✔
Installing Virtualmin 7 release package                                     [ERROR] Failed with error: 1
 ✘

[ERROR] Something went wrong. Exiting.
[ERROR] The last few log entries were:
Dependencies resolved.
Nothing to do.
Complete!
Installing core plugins for package manager: Success.
Spin pid is: 3154
2023-04-25 08:43:42 URL:https://[redacted license/key]@software.virtualmin.com/vm/7/rpm/virtualmin-pro-release.noarch.rpm [19203/19203] -> "virtualmin-pro-release.noarch.rpm" [1]
Downloading Virtualmin 7 release package: Success.
error: package  is not installed
Spin pid is: 3197
warning: virtualmin-pro-release.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID b9a0b8b7: NOKEY
error: unpacking of archive failed on file /etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin-7;6447cb00: cpio: Digest mismatch
error: virtualmin-pro-release-7.0-1.noarch: install failed
Installing Virtualmin 7 release package: [2023-04-25 08:43:44 EDT] [ERROR] Failed with error: 1
[2023-04-25 08:43:44 EDT] [ERROR] Something went wrong. Exiting.

This is unrelated issue!

By the way, it works just fine for me in my Oracle 9 box.

Try running dnf clean all && dnf update -y before running Virtualmin install script.

Thanks, Ilia. I did run dnf clean all and dnf update prior to the install script the first time. I am going to try GPL install again on a fresh OL9 VM with --unstable --minimal.

After that, will try to manually fetch the keys and manually install the repos and run the script again, if you think that is worthwhile.

And I can also try the manual install to see if I can get Virtualmin running with the needed features and packages (do not need mail services, so minimal LAMP+PHP-FPM 8.1 should work). The database server will be remote.

It looks like our implementation of OL9 won’t accept external repo keys.

We’ll set up local mirrors for Remi and Virtualmin and try again. Or just continue with RHEL9 if that does not work. We have RHEL available but it’s pay-to-play so IT is trying to consolidate to OL because some of our infrastructure requires it.

:face_with_head_bandage: :exploding_head: :face_with_diagonal_mouth:

That is not an acceptable Linux implementation, if you can’t safely install third-party software (and adding keys is the only way to check signatures when installing software).

1 Like

@Joe, I can install and enable Remi on our OL9 VMs by:

wget https://rpms.remirepo.net/enterprise/remi-release-9.rpm
sudo su -c "rpm -Uvh $HOME/remi*.rpm"
sudo dnf install http://rpms.remirepo.net/enterprise/remi-release-9.rpm
sudo dnf config-manager --set-enabled remi

…but doing same for https://software.virtualmin.com/vm/7/rpm/virtualmin-gpl-release.noarch.rpm still fails.

$ sudo su -c "rpm -Uvh $HOME/virt*.rpm"
warning: /home/jty711/virtualmin-gpl-release.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID b9a0b8b7: NOKEY
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:virtualmin-gpl-release-7.0-1     ################################# [100%]
error: unpacking of archive failed on file /etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin-7;644a7fc0: cpio: Digest mismatch
error: virtualmin-gpl-release-7.0-1.noarch: install failed
$ dnf repolist --all
repo id                                                repo name                                                                                                status
epel                                                   Extra Packages for Enterprise Linux 9 - x86_64                                                           enabled
epel-debuginfo                                         Extra Packages for Enterprise Linux 9 - x86_64 - Debug                                                   disabled
epel-source                                            Extra Packages for Enterprise Linux 9 - x86_64 - Source                                                  disabled
epel-testing                                           Extra Packages for Enterprise Linux 9 - Testing - x86_64                                                 disabled
epel-testing-debuginfo                                 Extra Packages for Enterprise Linux 9 - Testing - x86_64 - Debug                                         disabled
epel-testing-source                                    Extra Packages for Enterprise Linux 9 - Testing - x86_64 - Source                                        disabled
ol9_MODRHCK                                            Latest RHCK with fixes from Oracle for Oracle Linux 9 (x86_64)                                           disabled
ol9_RDMA                                               Oracle Linux 9 (x86_64) RDMA                                                                             disabled
ol9_UEKR7                                              Oracle Linux 9 UEK Release 7 (x86_64)                                                                    enabled
ol9_addons                                             Oracle Linux 9 Addons (x86_64)                                                                           disabled
ol9_appstream                                          Oracle Linux 9 Application Stream Packages (x86_64)                                                      enabled
ol9_baseos_latest                                      Oracle Linux 9 BaseOS Latest (x86_64)                                                                    enabled
ol9_codeready_builder                                  Oracle Linux 9 CodeReady Builder (x86_64) - (Unsupported)                                                disabled
ol9_developer_EPEL                                     Oracle Linux 9 EPEL Packages for Development (x86_64)                                                    enabled
ol9_distro_builder                                     Oracle Linux 9 Distro Builder (x86_64) - (Unsupported)                                                   disabled
ol9_kvm_utils                                          Oracle Linux 9 KVM Utilities (x86_64)                                                                    disabled
ol9_u0_baseos_base                                     Oracle Linux 9 BaseOS GA (x86_64)                                                                        disabled
ol9_u1_baseos_base                                     Oracle Linux 9.1 BaseOS (x86_64)                                                                         disabled
remi                                                   Remi's RPM repository for Enterprise Linux 9 - x86_64                                                    enabled
remi-debuginfo                                         Remi's RPM repository for Enterprise Linux 9 - x86_64 - debuginfo                                        disabled
remi-modular                                           Remi's Modular repository for Enterprise Linux 9 - x86_64                                                enabled
remi-modular-debuginfo                                 Remi's Modular repository for Enterprise Linux 9 - x86_64 - debuginfo                                    disabled
remi-modular-test                                      Remi's Modular testing repository for Enterprise Linux 9 - x86_64                                        disabled
remi-modular-test-debuginfo                            Remi's Modular testing repository for Enterprise Linux 9 - x86_64 - debuginfo                            disabled
remi-safe                                              Safe Remi's RPM repository for Enterprise Linux 9 - x86_64                                               enabled
remi-safe-debuginfo                                    Remi's RPM repository for Enterprise Linux 9 - x86_64 - debuginfo                                        disabled
remi-test                                              Remi's test RPM repository for Enterprise Linux 9 - x86_64                                               disabled
remi-test-debuginfo                                    Remi's test RPM repository for Enterprise Linux 9 - x86_64 - debuginfo                                   disabled

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