blbates has asked for the wisdom of the Perl Monks concerning the following question:

I've been installing packages via cpan without any problems. Then I had some failures with Perl using the wrong compiler command and options, so I corrected that, got out of cpan and then back in. Ever since I got back in, nothing will install now. I keep getting the following error for everything:

gpg run was failing, cannot continue: "/opt/freeware/bin/gpg" --verify + --batch --no-tty --output "/tmp/CHECKSUMS-eMRO/CHECKSUMS.6095688" "/ +usr/local/src/perl/.cpan/sources/authors/id/S/ST/STRO/CHECKSUMS" 2> " +/dev/null"

I didn't change anything for gpg. It was working fine earlier, but it isn't now. One thing that I did was install the latest CPAN. I've done a number of Google searches and can't find anything helpful. I've got a long list of packages that need to be installed and now I'm at a complete standstill. Does anyone have any ideas on what I need to check/change? Thanks.

Replies are listed 'Best First'.
Re: CPAN Installs Failing On gpg
by hippo (Archbishop) on Jun 11, 2025 at 22:48 UTC
    One thing that I did was install the latest CPAN

    Which version were you using previously? GPG changes happened as recently as version 2.33.

    You could also try running the given failing gpg command yourself, but without sending STDERR to /dev/null. That may give you more detail on the actual problem.

    Finally, CPAN is not the only automated installer available. You could try one of the others at least to get you past the current impasse.


    🦛

      I forgot to add to my original post that I had tried to manually run the command. This is what happened:

      /opt/freeware/bin/gpg --verify --batch --no-tty /usr/local/src/perl/.c +pan/sources/authors/id/S/ST/STRO/CHECKSUMS gpg: Signature made Sat Oct 29 02:53:44 2022 EDT gpg: using RSA key E247329948EA8380 gpg: Can't check signature: No public key

      Google searches returned some very old information about gpg not being able to connect to a public key store that would have the key the command is looking for. However, I don't know how valid that is any more.

      I was running CPAN v2.20 before it suggested that I install the latest version v2.38.