yum update failure - GPG key

Hi People
I am trying to update my virtualmin pro installation with the following result.

[[root@testtube backup]]# yum update
Setting up Update Process
Setting up Repos
virtualmin 100% |=========================| 951 B 00:00
virtualmin-universal 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
virtualmin: ################################################## 106/106
virtualmin: ################################################## 143/143
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Package wbt-virtual-server-theme.noarch 2:3.3-1 set
—> Package usermin.noarch 0:1.240-1 set to be updated
—> Package wbm-virtualmin-svn.noarch 2:2.71-1 set to be
—> Package wbm-virtualmin-dav.noarch 2:2.3-1 set to be
—> Package wbm-virtualmin-mailman.noarch 2:3.5-1 set to
—> Package wbm-virtual-server.noarch 2:3.31-1 set to be
—> Package wbm-virtualmin-awstats.noarch 2:2.6-1 set to
—> Package webmin.noarch 0:1.310-1 set to be updated
–> Running transaction check

Dependencies Resolved
Transaction Listing:
Update: usermin.noarch 0:1.240-1 - virtualmin-universal
Update: wbm-virtual-server.noarch 2:3.31-1 - virtualmin
Update: wbm-virtualmin-awstats.noarch 2:2.6-1 - virtual
Update: wbm-virtualmin-dav.noarch 2:2.3-1 - virtualmin-
Update: wbm-virtualmin-mailman.noarch 2:3.5-1 - virtual
Update: wbm-virtualmin-svn.noarch 2:2.71-1 - virtualmin
Update: wbt-virtual-server-theme.noarch 2:3.3-1 - virtu
Update: webmin.noarch 0:1.310-1 - virtualmin-universal
Total download size: 17 M
Is this ok [[y/N]]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key
public key not available for usermin-1.240-1.noarch.rpm
Retrieving GPG key from file:///etc/pki/rpm-gpg/RPM-GPG-K

The GPG key at file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtua
is already installed but is not the correct key for this
Check that this is the correct key for the "Virtualmin Di ository.

I only have virtualmin repositories. I use apt for the OS.
Any ideas?

Cheers

Nic Baxter

Hey Nic,

Usermin and Webmin are a slightly odd duck in that they are signed with Jamie’s key. I probably ought to re-sign them. In the next revision I will.

That said, Jamie’s key ought to have been installed during the original installation via the virtualmin-release package.

Do you have that package?

rpm -q virtualmin-release

If so, run this command to try importing Jamie’s key manually:

rpm --import /etc/RPM-GPG-KEYS/RPM-GPG-KEY-webmin

Then try the yum update again.

If you don’t have virtualmin-release, then I’m a wee bit confused how the installation ever worked in the first place. But, I’m sure we can get it all straightened out, regardless. :wink:

Hi Joe
Thanks for the quick post. Yes I do have the virtualmin-release and I imported the key manually even though it was in a different place (rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-webmin). The upgrade then went well. Was the different location an issue?

Cheers

Nic

Hey Nic,

You spotted it! Excellent. I need to fix that. :wink: