No available modular metadata package

Hi everyone,

I’m trying to install perl but with following error :

[root@SCHROCKYDEPLOY ~]# yum install perl
This system is receiving updates from Red Hat Satellite or Spacewalk server.
RockyLinux 8 - x86_64                                                                                     27 MB/s | 9.6 MB     00:00
RockyLinux 8 - extra- x86_64                                                                             294 kB/s |  13 kB     00:00
RockyLinux 8 - devel- x86_64                                                                              23 MB/s | 7.0 MB     00:00
RockyLinux 8 - AppStream- x86_64                                                                          47 MB/s |  17 MB     00:00
Dependencies resolved.
=========================================================================================================================================
 Package                      Architecture Version                                              Repository                          Size
=========================================================================================================================================
Installing:
 perl-interpreter             x86_64       4:5.30.1-452.module+el8.5.0+690+b6cd1280             rockylinux8-appstream-x86_64       6.5 M
Installing dependencies:
 perl-Carp                    noarch       1.50-439.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64        32 k
 perl-Encode                  x86_64       4:3.01-439.module+el8.5.0+690+b6cd1280               rockylinux8-appstream-x86_64       1.5 M
 perl-Errno                   x86_64       1.30-452.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64        84 k
 perl-Exporter                noarch       5.73-440.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64        34 k
 perl-File-Path               noarch       2.16-439.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64        38 k
 perl-File-Temp               noarch       1:0.230.900-439.module+el8.5.0+690+b6cd1280          rockylinux8-appstream-x86_64        63 k
 perl-Getopt-Long             noarch       1:2.51-1.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64        63 k
 perl-HTTP-Tiny               noarch       0.076-439.module+el8.5.0+690+b6cd1280                rockylinux8-appstream-x86_64        58 k
 perl-IO                      x86_64       1.40-452.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64       151 k
 perl-MIME-Base64             x86_64       3.15-1001.module+el8.5.0+690+b6cd1280                rockylinux8-appstream-x86_64        30 k
 perl-PathTools               x86_64       3.78-439.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64        90 k
 perl-Pod-Escapes             noarch       1:1.07-396.module+el8.5.0+690+b6cd1280               rockylinux8-appstream-x86_64        20 k
 perl-Pod-Perldoc             noarch       3.28.01-442.module+el8.5.0+690+b6cd1280              rockylinux8-appstream-x86_64        89 k
 perl-Pod-Simple              noarch       1:3.40-1.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64       225 k
 perl-Pod-Usage               noarch       4:1.69-396.module+el8.5.0+690+b6cd1280               rockylinux8-appstream-x86_64        34 k
 perl-Scalar-List-Utils       x86_64       3:1.53-439.module+el8.5.0+690+b6cd1280               rockylinux8-appstream-x86_64        69 k
 perl-Socket                  x86_64       4:2.029-4.module+el8.5.0+690+b6cd1280                rockylinux8-appstream-x86_64        58 k
 perl-Storable                x86_64       1:3.15-442.module+el8.5.0+690+b6cd1280               rockylinux8-appstream-x86_64        99 k
 perl-Term-ANSIColor          noarch       4.06-397.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64        45 k
 perl-Term-Cap                noarch       1.17-396.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64        22 k
 perl-Text-ParseWords         noarch       3.30-396.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64        17 k
 perl-Text-Tabs+Wrap          noarch       2013.0523-396.module+el8.5.0+690+b6cd1280            rockylinux8-appstream-x86_64        23 k
 perl-Time-Local              noarch       1:1.280-2.module+el8.5.0+690+b6cd1280                rockylinux8-appstream-x86_64        33 k
 perl-Unicode-Normalize       x86_64       1.26-439.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64        82 k
 perl-constant                noarch       1.33-1001.module+el8.5.0+690+b6cd1280                rockylinux8-appstream-x86_64        25 k
 perl-libs                    x86_64       4:5.30.1-452.module+el8.5.0+690+b6cd1280             rockylinux8-appstream-x86_64       1.8 M
 perl-macros                  x86_64       4:5.30.1-452.module+el8.5.0+690+b6cd1280             rockylinux8-appstream-x86_64        80 k
 perl-parent                  noarch       1:0.237-2.module+el8.5.0+690+b6cd1280                rockylinux8-appstream-x86_64        19 k
 perl-podlators               noarch       1:4.12-2.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64       118 k
 perl-threads                 x86_64       1:2.22-439.module+el8.5.0+690+b6cd1280               rockylinux8-appstream-x86_64        62 k
 perl-threads-shared          x86_64       1.60-440.module+el8.5.0+690+b6cd1280                 rockylinux8-appstream-x86_64        48 k
Installing weak dependencies:
 perl-IO-Socket-IP            noarch       0.39-6.module+el8.5.0+690+b6cd1280                   rockylinux8-appstream-x86_64        46 k

Transaction Summary
=========================================================================================================================================
Install  33 Packages

Total download size: 12 M
Installed size: 35 M
Is this ok [y/N]: y
Downloading Packages:
(1/33): perl-Carp-1.50-439.module+el8.5.0+690+b6cd1280.noarch.rpm                                        1.2 MB/s |  32 kB     00:00
(2/33): perl-Errno-1.30-452.module+el8.5.0+690+b6cd1280.x86_64.rpm                                       2.4 MB/s |  84 kB     00:00
(3/33): perl-Exporter-5.73-440.module+el8.5.0+690+b6cd1280.noarch.rpm                                    1.4 MB/s |  34 kB     00:00
(4/33): perl-File-Path-2.16-439.module+el8.5.0+690+b6cd1280.noarch.rpm                                   1.6 MB/s |  38 kB     00:00
(5/33): perl-File-Temp-0.230.900-439.module+el8.5.0+690+b6cd1280.noarch.rpm                              2.6 MB/s |  63 kB     00:00
(6/33): perl-Getopt-Long-2.51-1.module+el8.5.0+690+b6cd1280.noarch.rpm                                   2.6 MB/s |  63 kB     00:00
(7/33): perl-HTTP-Tiny-0.076-439.module+el8.5.0+690+b6cd1280.noarch.rpm                                  1.8 MB/s |  58 kB     00:00
(8/33): perl-Encode-3.01-439.module+el8.5.0+690+b6cd1280.x86_64.rpm                                       11 MB/s | 1.5 MB     00:00
(9/33): perl-IO-1.40-452.module+el8.5.0+690+b6cd1280.x86_64.rpm                                          2.5 MB/s | 151 kB     00:00
(10/33): perl-IO-Socket-IP-0.39-6.module+el8.5.0+690+b6cd1280.noarch.rpm                                 903 kB/s |  46 kB     00:00
(11/33): perl-MIME-Base64-3.15-1001.module+el8.5.0+690+b6cd1280.x86_64.rpm                               1.1 MB/s |  30 kB     00:00
(12/33): perl-PathTools-3.78-439.module+el8.5.0+690+b6cd1280.x86_64.rpm                                  2.8 MB/s |  90 kB     00:00
(13/33): perl-Pod-Escapes-1.07-396.module+el8.5.0+690+b6cd1280.noarch.rpm                                736 kB/s |  20 kB     00:00
(14/33): perl-Pod-Perldoc-3.28.01-442.module+el8.5.0+690+b6cd1280.noarch.rpm                             2.9 MB/s |  89 kB     00:00
(15/33): perl-Pod-Simple-3.40-1.module+el8.5.0+690+b6cd1280.noarch.rpm                                   5.6 MB/s | 225 kB     00:00
(16/33): perl-Pod-Usage-1.69-396.module+el8.5.0+690+b6cd1280.noarch.rpm                                  884 kB/s |  34 kB     00:00
(17/33): perl-Scalar-List-Utils-1.53-439.module+el8.5.0+690+b6cd1280.x86_64.rpm                          2.0 MB/s |  69 kB     00:00
(18/33): perl-Socket-2.029-4.module+el8.5.0+690+b6cd1280.x86_64.rpm                                      2.4 MB/s |  58 kB     00:00
(19/33): perl-Storable-3.15-442.module+el8.5.0+690+b6cd1280.x86_64.rpm                                   3.5 MB/s |  99 kB     00:00
(20/33): perl-Term-ANSIColor-4.06-397.module+el8.5.0+690+b6cd1280.noarch.rpm                             1.2 MB/s |  45 kB     00:00
(21/33): perl-Term-Cap-1.17-396.module+el8.5.0+690+b6cd1280.noarch.rpm                                   587 kB/s |  22 kB     00:00
(22/33): perl-Text-ParseWords-3.30-396.module+el8.5.0+690+b6cd1280.noarch.rpm                            467 kB/s |  17 kB     00:00
(23/33): perl-Text-Tabs+Wrap-2013.0523-396.module+el8.5.0+690+b6cd1280.noarch.rpm                        722 kB/s |  23 kB     00:00
(24/33): perl-Time-Local-1.280-2.module+el8.5.0+690+b6cd1280.noarch.rpm                                  963 kB/s |  33 kB     00:00
(25/33): perl-Unicode-Normalize-1.26-439.module+el8.5.0+690+b6cd1280.x86_64.rpm                          2.1 MB/s |  82 kB     00:00
(26/33): perl-constant-1.33-1001.module+el8.5.0+690+b6cd1280.noarch.rpm                                  597 kB/s |  25 kB     00:00
(27/33): perl-macros-5.30.1-452.module+el8.5.0+690+b6cd1280.x86_64.rpm                                   3.5 MB/s |  80 kB     00:00
(28/33): perl-parent-0.237-2.module+el8.5.0+690+b6cd1280.noarch.rpm                                      1.0 MB/s |  19 kB     00:00
(29/33): perl-podlators-4.12-2.module+el8.5.0+690+b6cd1280.noarch.rpm                                    5.2 MB/s | 118 kB     00:00
(30/33): perl-libs-5.30.1-452.module+el8.5.0+690+b6cd1280.x86_64.rpm                                      14 MB/s | 1.8 MB     00:00
(31/33): perl-threads-2.22-439.module+el8.5.0+690+b6cd1280.x86_64.rpm                                    1.3 MB/s |  62 kB     00:00
(32/33): perl-threads-shared-1.60-440.module+el8.5.0+690+b6cd1280.x86_64.rpm                             2.2 MB/s |  48 kB     00:00
(33/33): perl-interpreter-5.30.1-452.module+el8.5.0+690+b6cd1280.x86_64.rpm                               22 MB/s | 6.5 MB     00:00
-----------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                     19 MB/s |  12 MB     00:00
Running transaction check
No available modular metadata for modular package 'perl-Carp-1.50-439.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-Encode-4:3.01-439.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-Errno-1.30-452.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-Exporter-5.73-440.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-File-Path-2.16-439.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-File-Temp-1:0.230.900-439.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-Getopt-Long-1:2.51-1.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-HTTP-Tiny-0.076-439.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-IO-1.40-452.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-IO-Socket-IP-0.39-6.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-MIME-Base64-3.15-1001.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-PathTools-3.78-439.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-Pod-Escapes-1:1.07-396.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-Pod-Perldoc-3.28.01-442.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-Pod-Simple-1:3.40-1.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-Pod-Usage-4:1.69-396.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-Scalar-List-Utils-3:1.53-439.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-Socket-4:2.029-4.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-Storable-1:3.15-442.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-Term-ANSIColor-4.06-397.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-Term-Cap-1.17-396.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-Text-ParseWords-3.30-396.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-Text-Tabs+Wrap-2013.0523-396.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-Time-Local-1:1.280-2.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-Unicode-Normalize-1.26-439.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-constant-1.33-1001.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-interpreter-4:5.30.1-452.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-libs-4:5.30.1-452.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-macros-4:5.30.1-452.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-parent-1:0.237-2.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-podlators-1:4.12-2.module+el8.5.0+690+b6cd1280.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-threads-1:2.22-439.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-threads-shared-1.60-440.module+el8.5.0+690+b6cd1280.x86_64', it cannot be installed on the system
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: No available modular metadata for modular package

Do you have any idea how to fix it ?

My perl module list :

[root@SCHROCKYDEPLOY ~]# dnf module list perl
This system is receiving updates from Red Hat Satellite or Spacewalk server.
Last metadata expiration check: 0:12:25 ago on Thu 02 Jun 2022 09:14:10 AM CEST.
RockyLinux 8 - AppStream- x86_64
Name                Stream                     Profiles                           Summary
perl                5.24                       common [d], minimal                Practical Extraction and Report Language
perl                5.26 [d][e]                common [d], minimal                Practical Extraction and Report Language
perl                5.30                       common [d], minimal                Practical Extraction and Report Language
perl                5.32                       common [d], minimal                Practical Extraction and Report Language

Need helps :frowning:

Hi

This message indicates that the package metadata is missing in the repository:

No available modular metadata for modular package...

Maybe the repositories used are not ok.

Quite strange, module perl:5.26 is enabled, but yum tries to install perl packages from module 5.30.

You can try this:

dnf module reset perl
dnf module enable perl:5.26

Or another perl module version you want. Maybe it is needed to remove any perl package already installed before resetting and enabling the module.

Indeed. Two possibilities do come to mind:

  • Dnf uses cached data, so does not actually check the repo. dnf --enablerepo=* clean all might help
  • The used repo mirror syncs in way that does not mirror the metadata properly

PS. Add the block-quote tags (“Preformatted text”) to copy-pasted terminal output when posting here. Below are two identical lines, without and with block quotes:

dnf module list php

# dnf module list php

Fixed formatting for OP’s post.

I fixed the issue with switching-to perl module 5.30 … I don’t know why have to do this step …

dnf module switch-to perl:5.30
dnf module enable perl:5.30
dnf module install perl:5.30

1 Like

That is how the dnf modules roll. That system has good intentions, but the experience has been so strong that RHEL 9 did start with 0 modules …

One of the goals of EL is stability. You install your service and it can then run several years. Many services are built on “libraries / frameworks” like Python, PHP, Perl, Apache that apparently develop with little backward-compatibility. For example, one does not simply rebase Python from 2.7 into 3.6 and expect all the Python-applications to run fine.

An opposing need is to get recent applications to run. Applications that need recent version of those libraries. The lifespan of RHEL major release is a decade. Libraries do evolve in that time.

The modules attempts to serve both user groups: one can continue to use the older “stream” without fear of rebase, while the other can select more recent “stream” (like you did) for their needs.

However, the all the streams are not supported to EOL of RHEL 8. Therefore, the users of older streams should switch when support for their version expires. Should, but explicitly at the moment of their choice, not by daily dnf up.

I’m interested to know more; do you mean streams and modules and software collectoins have all gone from RHEL9?

This is the part that jumps out at me.

this is probably returned by the spacewalk repository manager nothing more

Red Hat did create Software Collections only for RHEL 6 and 7. For RHEL 8, they did set up the dnf modules (aka streams). RHEL 8 has the ‘scl’ tool, which interestingly has “wrap to environment-modules” as extra functionality. (The environment-modules is decades old technology, well used in HPC environments.)

The (dnf) modules is a feature of dnf. It is in RHEL 9. There just isn’t any modules defined in the repo. Later point updates are likely to add some.

Many thanks for the commments on this above. I am battleing the setup of a Rocky el8 service.
one central that goes out and other mirrors.

a few packages have been causing issues perl being the main one to me ,

using what is above retyped to one comment
stable for Rocky8.7 tested day

dnf module list perl
Last metadata expiration check: 0:41:17 ago on Thu 15 Jun 2023 16:09:52 EDT.
ROCKY-8 AppStream
Name Stream Profiles Summary
perl 5.24 common [d], minimal Practical Extraction and Report Language
perl 5.26 [d][e] common [d] [i], minimal Practical Extraction and Report Language
perl 5.30 common [d], minimal Practical Extraction and Report Language
perl 5.32 common [d], minimal Practical Extraction and Report Language

Hint: [d]efault, [e]nabled, disabled, [i]nstalled

I had issues with it wanting to put later versions on during duf update.
Seems this works to pin it , not 100% sure why! I pass it on for anyone else getting this perl issue with packages and conflicts all the time

dnf module reset perl
dnf module enable perl:5.26 # seems to the one that dont get as much pkg conflicts
dnf -v --enablerepo=* clean all # also nuke cache in
/var/cache/yum/x86_64/8
now try an install of perl. If it still moans! dnf erase it!

dnf install perl
dnf info perl #from ROCKY-8-AppStream