Sudo dnf install cpanm fails

Hello everyone,

I can’t install cpanm. It tells me that a specific rpm can’t be downloaded.

I also tried to download & install the latest rpm of the missing rpm (because Fedora tries to download an outdated version) with rpm -i but rpm -i also tells me that I need other rpm-packages for the latest rpm…and that let me guess that I’d have to download literally everything / a lot packages manually…so I thought "let’s try Ask Fedora so that ".

My error message (scroll down to the end, I posted the complete log so that it’s complete):

annatar@fedora:~$ sudo dnf clean all
0 files removed
annatar@fedora:~$ sudo dnf update
Copr repo for PyCharm owned by phracek                                                                                                                                                                        107 kB/s | 108 kB     00:01    
Fedora 39 - x86_64                                                                                                                                                                                            3.5 MB/s |  89 MB     00:25    
Fedora 39 openh264 (From Cisco) - x86_64                                                                                                                                                                      3.5 kB/s | 2.6 kB     00:00    
Fedora 39 - x86_64 - Updates                                                                                                                                                                                  2.2 MB/s |  37 MB     00:17    
google-chrome                                                                                                                                                                                                 1.6 kB/s | 3.6 kB     00:02    
RPM Fusion for Fedora 39 - Free                                                                                                                                                                               1.1 MB/s | 639 kB     00:00    
RPM Fusion for Fedora 39 - Free - Updates                                                                                                                                                                     539 kB/s | 249 kB     00:00    
RPM Fusion for Fedora 39 - Nonfree                                                                                                                                                                            686 kB/s | 259 kB     00:00    
RPM Fusion for Fedora 39 - Nonfree - NVIDIA Driver                                                                                                                                                             52 kB/s |  15 kB     00:00    
RPM Fusion for Fedora 39 - Nonfree - Steam                                                                                                                                                                    7.1 kB/s | 2.1 kB     00:00    
RPM Fusion for Fedora 39 - Nonfree - Updates                                                                                                                                                                  152 kB/s |  96 kB     00:00    
Dependencies resolved.
Nothing to do.
annatar@fedora:~$ cpanm
bash: cpanm: command not found...
Install package 'perl-App-cpanminus' to provide command 'cpanm'? [N/y] y

 * Waiting in queue... 
The following packages have to be installed:
 gcc-c++-13.2.1-7.fc39.x86_64	C++ support for GCC
 libstdc++-devel-13.2.1-7.fc39.x86_64	Header files and libraries for C++ development
 perl-4:5.38.2-502.fc39.x86_64	Practical Extraction and Report Language
 perl-Algorithm-Diff-1.2010-9.fc39.noarch	Compute 'intelligent' differences between two files/lists
 perl-App-cpanminus-1.7047-1.fc39.noarch	Get, unpack, build and install CPAN modules
 perl-Archive-Tar-3.02-4.fc39.noarch	A module for Perl manipulation of .tar files
 perl-Archive-Zip-1.68-12.fc39.noarch	Perl library for accessing Zip archives
 perl-Attribute-Handlers-1.03-502.fc39.noarch	Simpler definition of attribute handlers
 perl-AutoSplit-5.74-502.fc39.noarch	Split a package for automatic loading
 perl-Benchmark-1.24-502.fc39.noarch	Benchmark running times of Perl code
 perl-CPAN-2.36-501.fc39.noarch	Query, download and build perl modules from CPAN sites
 perl-CPAN-DistnameInfo-0.12-28.fc39.noarch	Extract distribution name and version from a distribution filename
 perl-CPAN-Meta-2.150010-500.fc39.noarch	Distribution metadata for a CPAN dist
 perl-CPAN-Meta-Check-0.018-1.fc39.noarch	Verify requirements in a CPAN::Meta object
 perl-CPAN-Meta-Requirements-2.143-4.fc39.noarch	Set of version requirements for a CPAN dist
 perl-CPAN-Meta-YAML-0.018-501.fc39.noarch	Read and write a subset of YAML for CPAN Meta files
 perl-Compress-Bzip2-2.28-15.fc39.x86_64	Interface to Bzip2 compression library
 perl-Compress-Raw-Lzma-2.206-2.fc39.x86_64	Low-level interface to lzma compression library
 perl-Config-Extensions-0.03-502.fc39.noarch	Hash lookup of which Perl core extensions were built
 perl-Config-Perl-V-0.36-501.fc39.noarch	Structured data retrieval of perl -V output
 perl-DBM_Filter-0.06-502.fc39.noarch	Filter DBM keys and values
 perl-DB_File-1.859-1.fc39.x86_64	Perl5 access to Berkeley DB version 1.x
 perl-Data-OptList-0.114-2.fc39.noarch	Parse and validate simple name/value option pairs
 perl-Data-Section-0.200008-3.fc39.noarch	Read multiple hunks of data out of your DATA section
 perl-Devel-PPPort-3.71-501.fc39.x86_64	Perl Pollution Portability header generator
 perl-Devel-Peek-1.33-502.fc39.x86_64	A data debugging tool for the XS programmer
 perl-Devel-SelfStubber-1.06-502.fc39.noarch	Generate stubs for a SelfLoading module
 perl-Devel-Size-0.83-16.fc39.x86_64	Perl extension for finding the memory usage of Perl variables
 perl-Digest-SHA-1:6.04-501.fc39.x86_64	Perl extension for SHA-1/224/256/384/512
 perl-Digest-SHA1-2.13-40.fc39.x86_64	Digest-SHA1 Perl module
 perl-DirHandle-1.05-502.fc39.noarch	Supply object methods for directory handles
 perl-Dumpvalue-2.27-502.fc39.noarch	Screen dump of Perl data
 perl-Encode-Locale-1.05-27.fc39.noarch	Determine the locale encoding
 perl-Encode-devel-4:3.19-500.fc39.x86_64	Perl Encode Module Generator
 perl-English-1.11-502.fc39.noarch	Nice English or awk names for ugly punctuation variables
 perl-Env-1.06-500.fc39.noarch	Perl module that imports environment variables as scalars or arrays
 perl-ExtUtils-CBuilder-1:0.280238-500.fc39.noarch	Compile and link C code for Perl modules
 perl-ExtUtils-Command-2:7.70-501.fc39.noarch	Perl routines to replace common UNIX commands in Makefiles
 perl-ExtUtils-Constant-0.25-502.fc39.noarch	Generate XS code to import C header constants
 perl-ExtUtils-Embed-1.35-502.fc39.noarch	Utilities for embedding Perl in C/C++ applications
 perl-ExtUtils-Install-2.22-500.fc39.noarch	Install Perl files from here to there
 perl-ExtUtils-MM-Utils-2:7.70-501.fc39.noarch	ExtUtils::MM methods without dependency on ExtUtils::MakeMaker
 perl-ExtUtils-MakeMaker-2:7.70-501.fc39.noarch	Create a module Makefile
 perl-ExtUtils-Manifest-1:1.75-3.fc39.noarch	Utilities to write and check a MANIFEST file
 perl-ExtUtils-Miniperl-1.13-502.fc39.noarch	Write the C code for perlmain.c
 perl-ExtUtils-ParseXS-1:3.51-500.fc39.noarch	Module and a script for converting Perl XS code into C code
 perl-File-Compare-1.100.700-502.fc39.noarch	Compare files or file handles
 perl-File-DosGlob-1.12-502.fc39.x86_64	DOS-like globbing
 perl-File-Fetch-1.04-500.fc39.noarch	Generic file fetching mechanism
 perl-File-HomeDir-1.006-10.fc39.noarch	Find your home and other directories on any platform
 perl-File-Which-1.27-9.fc39.noarch	Portable implementation of the 'which' utility
 perl-File-pushd-1.016-18.fc39.noarch	Change directory temporarily for a limited scope
 perl-FileCache-1.10-502.fc39.noarch	Keep more files open than the system permits
 perl-Filter-2:1.64-501.fc39.x86_64	Perl source filters
 perl-Filter-Simple-0.96-500.fc39.noarch	Simplified Perl source filtering
 perl-FindBin-1.53-502.fc39.noarch	Locate a directory of an original Perl script
 perl-GDBM_File-1:1.24-502.fc39.x86_64	Perl5 access to the gdbm library
 perl-Hash-Util-0.30-502.fc39.x86_64	General-utility hash subroutines
 perl-Hash-Util-FieldHash-1.26-502.fc39.x86_64	Support for inside-out classes
 perl-I18N-Collate-1.02-502.fc39.noarch	Compare 8-bit scalar data according to the current locale
 perl-I18N-LangTags-0.45-502.fc39.noarch	Functions for dealing with RFC 3066 language tags
 perl-I18N-Langinfo-0.22-502.fc39.x86_64	Query locale information
 perl-IO-Compress-Lzma-2.206-1.fc39.noarch	Read and write lzma compressed data
 perl-IO-Zlib-1:1.14-500.fc39.noarch	Perl IO:: style interface to Compress::Zlib
 perl-IPC-Cmd-2:1.04-501.fc39.noarch	Finding and running system commands made easy
 perl-IPC-SysV-2.09-501.fc39.x86_64	Object interface to System V IPC
 perl-IPC-System-Simple-1.30-11.fc39.noarch	Run commands simply, with detailed diagnostics
 perl-Importer-0.026-10.fc39.noarch	Alternative interface to modules that export symbols
 perl-JSON-PP-1:4.16-501.fc39.noarch	JSON::XS compatible pure-Perl module
 perl-Locale-Maketext-1.33-501.fc39.noarch	Framework for localization
 perl-Locale-Maketext-Simple-1:0.21-502.fc39.noarch	Simple interface to Locale::Maketext::Lexicon
 perl-MIME-Charset-1.013.1-3.fc39.noarch	Charset Informations for MIME
 perl-MRO-Compat-0.15-7.fc39.noarch	Mro::* interface compatibility for Perls < 5.9.5
 perl-Math-BigInt-FastCalc-0.501.400-3.fc39.x86_64	Math::BigInt::Calc with some XS for more speed
 perl-Memoize-1.16-502.fc39.noarch	Transparently speed up functions by caching return values
 perl-Module-Build-2:0.42.34-2.fc39.noarch	Build and install Perl modules
 perl-Module-CPANfile-1.1004-17.fc39.noarch	Parse cpanfile
 perl-Module-CoreList-1:5.20240320-1.fc39.noarch	What modules are shipped with versions of perl
 perl-Module-CoreList-tools-1:5.20240320-1.fc39.noarch	Tool for listing modules shipped with perl
 perl-Module-Load-1:0.36-500.fc39.noarch	Run-time require of both modules and files
 perl-Module-Load-Conditional-0.74-500.fc39.noarch	Looking up module information / loading at run-time
 perl-Module-Loaded-1:0.08-502.fc39.noarch	Mark modules as loaded or unloaded
 perl-Module-Metadata-1.000038-3.fc39.noarch	Gather package and POD information from perl module files
 perl-Module-Signature-0.88-6.fc39.noarch	CPAN signature management utilities and modules
 perl-NEXT-0.69-502.fc39.noarch	Pseudo-class that allows method redispatch
 perl-Net-1.03-502.fc39.noarch	By-name interface to Perl built-in network resolver
 perl-Net-Ping-2.76-500.fc39.noarch	Check a remote host for reachability
 perl-ODBM_File-1.18-502.fc39.x86_64	Tied access to odbm files
 perl-Object-HashBase-0.010-1.fc39.noarch	Build hash-based classes
 perl-Opcode-1.64-502.fc39.x86_64	Disable named opcodes when compiling a perl code
 perl-Package-Generator-1.106-29.fc39.noarch	Generate new packages quickly and easily
 perl-Params-Check-1:0.38-500.fc39.noarch	Generic input parsing/checking mechanism
 perl-Params-Util-1.102-12.fc39.x86_64	Simple standalone parameter-checking functions
 perl-Parse-PMFile-0.44-2.fc39.noarch	Parses .pm file as PAUSE does
 perl-Perl-OSType-1.010-501.fc39.noarch	Map Perl operating system names to generic types
 perl-PerlIO-via-QuotedPrint-0.10-500.fc39.noarch	PerlIO layer for quoted-printable strings
 perl-Pod-Checker-4:1.75-500.fc39.noarch	Check POD documents for syntax errors
 perl-Pod-Functions-1.14-502.fc39.noarch	Group Perl functions as in perlfunc POD
 perl-Pod-Html-1.34-502.fc39.noarch	Convert POD files to HTML
 perl-Safe-2.44-502.fc39.noarch	Compile and execute code in restricted compartments
 perl-Search-Dict-1.07-502.fc39.noarch	Search for a key in a dictionary file
 perl-SelfLoader-1.26-502.fc39.noarch	Load functions only on demand
 perl-Software-License-0.104004-2.fc39.noarch	Package that provides templated software licenses
 perl-String-ShellQuote-1.04-40.fc39.noarch	Perl module for quoting strings for passing through the shell
 perl-Sub-Exporter-0.990-1.fc39.noarch	Sophisticated exporter for custom-built routines
 perl-Sub-Install-0.929-3.fc39.noarch	Install subroutines into packages easily
 perl-Sys-Syslog-0.36-501.fc39.x86_64	Perl interface to the UNIX syslog(3) calls
 perl-Term-Complete-1.403-502.fc39.noarch	Perl word completion
 perl-Term-ReadLine-1.17-502.fc39.noarch	Perl interface to various read-line packages
 perl-Term-Size-Any-0.002-40.fc39.noarch	Retrieve terminal size
 perl-Term-Size-Perl-0.031-17.fc39.x86_64	Perl extension for retrieving terminal size (Perl version)
 perl-Term-Table-0.016-7.fc39.noarch	Format a header and rows into a table
 perl-Test-1.31-502.fc39.noarch	Simple framework for writing test scripts
 perl-Test-Harness-1:3.48-1.fc39.noarch	Run Perl standard test scripts with statistics
 perl-Test-Simple-3:1.302195-5.fc39.noarch	Basic utilities for writing tests
 perl-Text-Abbrev-1.02-502.fc39.noarch	Create an abbreviation table from a list
 perl-Text-Balanced-2.06-500.fc39.noarch	Extract delimited text sequences from strings
 perl-Text-Diff-1.45-19.fc39.noarch	Perform diffs on files and record sets
 perl-Text-Glob-0.11-21.fc39.noarch	Perl module to match globbing patterns against text
 perl-Text-Template-1.61-3.fc39.noarch	Expand template text with embedded Perl
 perl-Thread-3.05-502.fc39.noarch	Manipulate threads in Perl (for old code only)
 perl-Thread-Queue-3.14-500.fc39.noarch	Thread-safe queues
 perl-Thread-Semaphore-2.13-502.fc39.noarch	Thread-safe semaphores
 perl-Tie-4.6-502.fc39.noarch	Base classes for tying variables
 perl-Tie-File-1.07-502.fc39.noarch	Access the lines of a disk file via a Perl array
 perl-Tie-Memoize-1.1-502.fc39.noarch	Add data to a hash when needed
 perl-Tie-RefHash-1.40-500.fc39.noarch	Use references as hash keys
 perl-Time-1.03-502.fc39.noarch	By-name interface to Perl built-in time functions
 perl-Time-Piece-1.3401-502.fc39.x86_64	Time objects from localtime and gmtime
 perl-Unicode-Collate-1.31-500.fc39.x86_64	Unicode Collation Algorithm
 perl-Unicode-LineBreak-2019.001-18.fc39.x86_64	UAX #14 Unicode Line Breaking Algorithm
 perl-Unicode-Normalize-1.32-500.fc39.x86_64	Unicode Normalization Forms
 perl-Unicode-UCD-0.78-502.fc39.noarch	Unicode character database
 perl-User-pwent-1.04-502.fc39.noarch	By-name interface to Perl built-in user name resolver
 perl-YAML-1.30-16.fc39.noarch	YAML Ain't Markup Language (tm)
 perl-autodie-2.36-501.fc39.noarch	Replace functions with ones that succeed or die
 perl-autouse-1.11-502.fc39.noarch	Postpone load of modules until a function is used
 perl-bignum-0.66-501.fc39.noarch	Transparent big number support for Perl
 perl-blib-1.07-502.fc39.noarch	Use uninstalled version of a package
 perl-debugger-1.60-502.fc39.noarch	Perl debugger
 perl-deprecate-0.04-502.fc39.noarch	Perl pragma for deprecating the inclusion of a module in core
 perl-devel-4:5.38.2-502.fc39.x86_64	Header files for use in perl development
 perl-diagnostics-1.39-502.fc39.noarch	Produce verbose warning diagnostics
 perl-doc-5.38.2-502.fc39.noarch	Perl language documentation
 perl-encoding-4:3.00-500.fc39.x86_64	Write your Perl script in non-ASCII or non-UTF-8
 perl-encoding-warnings-0.14-502.fc39.noarch	Warn on implicit encoding conversions
 perl-experimental-0.031-500.fc39.noarch	Experimental features made easy
 perl-fields-2.27-502.fc39.noarch	Compile-time class fields
 perl-filetest-1.03-502.fc39.noarch	Perl pragma to control the filetest permission operators
 perl-inc-latest-2:0.500-25.fc39.noarch	Use modules bundled in inc/ if they are newer than installed ones
 perl-less-0.03-502.fc39.noarch	Perl pragma to request less of something
 perl-libnetcfg-4:5.38.2-502.fc39.noarch	Configure libnet
 perl-local-lib-2.000029-5.fc39.noarch	Create and use a local lib/ for perl modules
 perl-macros-4:5.38.2-502.fc39.noarch	Macros for rpmbuild
 perl-meta-notation-5.38.2-502.fc39.noarch	Change nonprintable characters below 0x100 into printables
 perl-open-1.13-502.fc39.noarch	Perl pragma to set default PerlIO layers for input and output
 perl-perlfaq-5.20230812-1.fc39.noarch	Frequently asked questions about Perl
 perl-ph-5.38.2-502.fc39.x86_64	Selected system header files converted to Perl headers
 perl-sigtrap-1.10-502.fc39.noarch	Perl pragma to enable simple signal handling
 perl-sort-2.05-502.fc39.noarch	Perl pragma to control sort() behavior
 perl-subs-1.04-502.fc39.noarch	Perl pragma to predeclare subroutine names
 perl-threads-1:2.36-500.fc39.x86_64	Perl interpreter-based threads
 perl-threads-shared-1.68-500.fc39.x86_64	Perl extension for sharing data structures between threads
 perl-utils-5.38.2-502.fc39.noarch	Utilities packaged with the Perl distribution
 perl-version-8:0.99.30-1.fc39.x86_64	Perl extension for Version Objects
 perl-vmsish-1.04-502.fc39.noarch	Perl pragma to control VMS-specific language features
 python3-pyparsing-3.0.9-11.fc39.noarch	Python package with an object-oriented approach to text processing
 sombok-2.4.0-20.fc39.x86_64	Unicode Text Segmentation Package
 systemtap-sdt-devel-5.1~pre17062192g5fd8daba-1.fc39.x86_64	Static probe support tools
Proceed with changes? [N/y] y

 * Waiting in queue... 
 * Waiting for authentication... 
 * Waiting in queue... 
 * Downloading packages... Failed to install packages: Cannot download Packages/p/perl-Module-CoreList-5.20240320-1.fc39.noarch.rpm: All mirrors were tried; Last error: Status code: 404 for (IP: X.X.X.X)

It appears your dnf metadata is out of date. Here, dnf is trying to download systemtap-sdt-devel-5.1~pre17062192g5fd8daba-1.fc39 but this was replaced by systemtap-sdt-devel-5.1-1.fc39 three weeks ago.

Perhaps a dnf clean all will fix things.

I would guess that it was PackageKit which was trying to install the package. You could try with sudo dnf install perl-App-cpanminus.


Hello, thanks for your reply. I already tried dnf clean all & I hoped it’d have worked but it didn’t work unfortunately.

Hello, thanks for your reply. That worked! Thanks!

1 Like

Probably the PackageKit cached data needs to be refreshed. I don’t have PackageKit installed so I can’t say how to do that.

I’m also unsure what it is. Maybe it’ll solve by time…somehow Xd.