Bug 1829398
— No available modular metadata for modular package ‘criu-3.12-9.module_el8.1.0+294+988780c8.x86_64’, it cannot be installed on the system
Summary:
No available modular metadata for modular package ‘criu-3.12-9.module_el8.1.0…
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
I followed the podman installation instructions at
https://podman.io/getting-started/installation
but it fails on this step
[test@centos8 ~]$ sudo dnf -y install podman
CentOS-8 - AppStream 11 MB/s | 6.8 MB 00:00
CentOS-8 - Base 14 MB/s | 6.0 MB 00:00
CentOS-8 - Extras 20 kB/s | 5.5 kB 00:00
Copr repo for container-selinux owned by rhcontainerbot 3.7 kB/s | 1.3 kB 00:00
Stable Releases of Upstream github.com/containers packages (CentOS_8) 129 kB/s | 56 kB 00:00
Dependencies resolved.
============================================================================================================================================================================================================
Package Architecture Version Repository Size
============================================================================================================================================================================================================
Installing:
podman x86_64 1.9.0-2.1.el8 devel_kubic_libcontainers_stable 23 M
Installing dependencies:
container-selinux noarch 2:2.124.0-1.module_el8.1.0+272+3e64ee36 AppStream 47 k
criu x86_64 3.12-9.el8 AppStream 482 k
libnet x86_64 1.1.6-15.el8 AppStream 67 k
protobuf-c x86_64 1.3.0-4.el8 AppStream 37 k
checkpolicy x86_64 2.9-1.el8 BaseOS 348 k
policycoreutils-python-utils noarch 2.9-3.el8_1.1 BaseOS 250 k
python3-audit x86_64 3.0-0.13.20190507gitf58ec40.el8 BaseOS 85 k
python3-libsemanage x86_64 2.9-1.el8 BaseOS 127 k
python3-policycoreutils noarch 2.9-3.el8_1.1 BaseOS 2.2 M
python3-setools x86_64 4.2.2-1.el8 BaseOS 600 k
conmon x86_64 2:2.0.15-2.2.el8 devel_kubic_libcontainers_stable 39 k
containernetworking-plugins x86_64 0.8.5-145.2.el8 devel_kubic_libcontainers_stable 35 M
containers-common x86_64 2:0.2.0-2.2.el8 devel_kubic_libcontainers_stable 57 k
libvarlink-util x86_64 19-1.2.el8 devel_kubic_libcontainers_stable 51 k
podman-plugins x86_64 1.9.0-2.1.el8 devel_kubic_libcontainers_stable 2.3 M
runc x86_64 2:1.0.0-15.3.el8 devel_kubic_libcontainers_stable 4.6 M
slirp4netns x86_64 0.4.3-23.3.el8 devel_kubic_libcontainers_stable 90 k
Installing weak dependencies:
tar x86_64 2:1.30-4.el8 BaseOS 838 k
Transaction Summary
============================================================================================================================================================================================================
Install 19 Packages
Total download size: 71 M
Installed size: 204 M
Downloading Packages:
(1/19): container-selinux-2.124.0-1.module_el8.1.0+272+3e64ee36.noarch.rpm 911 kB/s | 47 kB 00:00
(2/19): libnet-1.1.6-15.el8.x86_64.rpm 1.3 MB/s | 67 kB 00:00
(3/19): protobuf-c-1.3.0-4.el8.x86_64.rpm 2.8 MB/s | 37 kB 00:00
(4/19): criu-3.12-9.el8.x86_64.rpm 5.7 MB/s | 482 kB 00:00
(5/19): python3-audit-3.0-0.13.20190507gitf58ec40.el8.x86_64.rpm 1.6 MB/s | 85 kB 00:00
(6/19): policycoreutils-python-utils-2.9-3.el8_1.1.noarch.rpm 3.3 MB/s | 250 kB 00:00
(7/19): checkpolicy-2.9-1.el8.x86_64.rpm 3.9 MB/s | 348 kB 00:00
(8/19): python3-libsemanage-2.9-1.el8.x86_64.rpm 3.9 MB/s | 127 kB 00:00
(9/19): python3-setools-4.2.2-1.el8.x86_64.rpm 12 MB/s | 600 kB 00:00
(10/19): tar-1.30-4.el8.x86_64.rpm 17 MB/s | 838 kB 00:00
(11/19): python3-policycoreutils-2.9-3.el8_1.1.noarch.rpm 22 MB/s | 2.2 MB 00:00
(12/19): conmon-2.0.15-2.2.el8.x86_64.rpm 205 kB/s | 39 kB 00:00
(13/19): containers-common-0.2.0-2.2.el8.x86_64.rpm 361 kB/s | 57 kB 00:00
(14/19): libvarlink-util-19-1.2.el8.x86_64.rpm 386 kB/s | 51 kB 00:00
(15/19): containernetworking-plugins-0.8.5-145.2.el8.x86_64.rpm 59 MB/s | 35 MB 00:00
(16/19): runc-1.0.0-15.3.el8.x86_64.rpm 23 MB/s | 4.6 MB 00:00
(17/19): podman-plugins-1.9.0-2.1.el8.x86_64.rpm 3.9 MB/s | 2.3 MB 00:00
(18/19): slirp4netns-0.4.3-23.3.el8.x86_64.rpm 681 kB/s | 90 kB 00:00
(19/19): podman-1.9.0-2.1.el8.x86_64.rpm 11 MB/s | 23 MB 00:02
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 24 MB/s | 71 MB 00:02
Running transaction check
No available modular metadata for modular package 'container-selinux-2:2.124.0-1.module_el8.1.0+272+3e64ee36.noarch', 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 'dnf clean packages'.
Error: No available modular metadata for modular package
[test@centos8 ~]$
I’ve tried to run dnf clean packages as suggested above, but it didn’t help.
Computer architecture: x86_64
Here is the output from the command sudo dnf repolist -v:
[test@centos8 ~]$ sudo dnf repolist -v
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
DNF version: 4.2.7
cachedir: /var/cache/dnf
repo: using cache for: AppStream
AppStream: using metadata from Tue Apr 14 03:06:48 2020.
repo: using cache for: BaseOS
BaseOS: using metadata from Tue Apr 14 03:06:08 2020.
repo: using cache for: extras
extras: using metadata from Tue Apr 14 21:44:23 2020.
repo: using cache for: copr:copr.fedorainfracloud.org:rhcontainerbot:container-selinux
copr:copr.fedorainfracloud.org:rhcontainerbot:container-selinux: using metadata from Thu Apr 16 13:07:28 2020.
repo: using cache for: devel_kubic_libcontainers_stable
devel_kubic_libcontainers_stable: using metadata from Thu Apr 16 16:51:32 2020.
Last metadata expiration check: 0:00:38 ago on Thu Apr 16 17:10:46 2020.
Completion plugin: Generating completion cache...
Repo-id : AppStream
Repo-name : CentOS-8 - AppStream
Repo-revision: 1586826408
Repo-updated : Tue Apr 14 03:06:48 2020
Repo-pkgs : 5298
Repo-size : 8.1 G
Repo-mirrors : http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock
Repo-baseurl : http://mirror.zetup.net/CentOS/8.1.1911/AppStream/x86_64/os/ (9 more)
Repo-expire : 172800 second(s) (last: Thu Apr 16 17:10:41 2020)
Repo-filename: /etc/yum.repos.d/CentOS-AppStream.repo
Repo-id : BaseOS
Repo-name : CentOS-8 - Base
Repo-revision: 1586826368
Repo-updated : Tue Apr 14 03:06:08 2020
Repo-pkgs : 2231
Repo-size : 2.1 G
Repo-mirrors : http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=BaseOS&infra=stock
Repo-baseurl : http://mirror.nsc.liu.se/CentOS/8.1.1911/BaseOS/x86_64/os/ (9 more)
Repo-expire : 172800 second(s) (last: Thu Apr 16 17:10:43 2020)
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo
Repo-id : copr:copr.fedorainfracloud.org:rhcontainerbot:container-selinux
Repo-name : Copr repo for container-selinux owned by rhcontainerbot
Repo-revision: 1587035248
Repo-updated : Thu Apr 16 13:07:28 2020
Repo-pkgs : 2
Repo-size : 87 k
Repo-baseurl : https://download.copr.fedorainfracloud.org/results/rhcontainerbot/container-selinux/epel-8-x86_64/
Repo-expire : 172800 second(s) (last: Thu Apr 16 17:10:45 2020)
Repo-filename: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:rhcontainerbot:container-selinux.repo
Repo-id : devel_kubic_libcontainers_stable
Repo-name : Stable Releases of Upstream github.com/containers packages (CentOS_8)
Repo-revision: 1587048692
Repo-updated : Thu Apr 16 16:51:32 2020
Repo-pkgs : 71
Repo-size : 303 M
Repo-baseurl : http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_8/
Repo-expire : 172800 second(s) (last: Thu Apr 16 17:10:46 2020)
Repo-filename: /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo
Repo-id : extras
Repo-name : CentOS-8 - Extras
Repo-revision: 1586893465
Repo-updated : Tue Apr 14 21:44:23 2020
Repo-pkgs : 15
Repo-size : 187 k
Repo-mirrors : http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=extras&infra=stock
Repo-baseurl : http://mirror.zetup.net/CentOS/8.1.1911/extras/x86_64/os/ (9 more)
Repo-expire : 172800 second(s) (last: Thu Apr 16 17:10:44 2020)
Repo-filename: /etc/yum.repos.d/CentOS-Extras.repo
Total packages: 7617
[test@centos8 ~]$
-
peeqi
- Posts: 5
- Joined: 2020/02/13 07:04:07
Issues with running dnf upgrade, complains about missing metadata for modular package
Hi,
We have a system running CentOS 8 that is having trouble running dnf upgrade. If we run dnf upgrade we get the following error:
Running transaction check
No available modular metadata for modular package ‘oci-systemd-hook-1:0.1.15-2.git2d0b8a3.module_el8.1.0+237+63e26edc.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 ‘dnf clean packages’.
Error: No available modular metadata for modular package
We’ve tried running dnf clean all, but the issue still persists. What is the issue here?
-
TrevorH
- Site Admin
- Posts: 32532
- Joined: 2009/09/24 10:40:56
- Location: Brighton, UK
Re: Issues with running dnf upgrade, complains about missing metadata for modular package
Post
by TrevorH » 2020/02/13 07:23:04
Are you using a CentOS supplied mirror or do you have your own? If you have your own then be aware that to copy the CentOS supplied one needs special tooling or using rsync to clone the entire CentOS provided one. You cannot run older tools from previous CentOS versions, e.g. reposync, createrepo etc, as they are not module aware and will corrupt the metadata.
-
TrevorH
- Site Admin
- Posts: 32532
- Joined: 2009/09/24 10:40:56
- Location: Brighton, UK
Re: Issues with running dnf upgrade, complains about missing metadata for modular package
Post
by TrevorH » 2020/02/13 09:55:02
It works for me using a CentOS mirror. I would suggest that you doublecheck that you are since the only reason for this message is corrupted yum metadata. So far the only cases where I’ve seen this are where someone is using a local copy of a CentOS mirror that’s been created using tools other than rsync.
-
peeqi
- Posts: 5
- Joined: 2020/02/13 07:04:07
Re: Issues with running dnf upgrade, complains about missing metadata for modular package
Post
by peeqi » 2020/02/13 12:51:19
This is the output from dnf repolist:
Code: Select all
CentOS-8 - AppStream 25 kB/s | 4.3 kB 00:00
CentOS-8 - Base 31 kB/s | 3.8 kB 00:00
CentOS-8 - Extras 8.7 kB/s | 1.5 kB 00:00
CentOS/RHEL 7 repository for Elasticsearch Curator 5.x packages 9.7 kB/s | 1.3 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 31 kB/s | 15 kB 00:00
repo id repo name status
AppStream CentOS-8 - AppStream 5093
BaseOS CentOS-8 - Base 2080
curator-5 CentOS/RHEL 7 repository for Elasticsearch Curator 5.x packages 25
epel Extra Packages for Enterprise Linux 8 - x86_64 4732
extras CentOS-8 - Extras 3
I’ll try and disable repos one by one
-
TrevorH
- Site Admin
- Posts: 32532
- Joined: 2009/09/24 10:40:56
- Location: Brighton, UK
Re: Issues with running dnf upgrade, complains about missing metadata for modular package
Post
by TrevorH » 2020/02/13 12:56:33
You definitely shouldn’t have EL7 repos on an el8 system.
Also, I don’t know what you’re using to post with but it strips all carriage returns out of anything you post so it looks like rubbish. I’ve had to manually edit your posts to restore them.
-
peeqi
- Posts: 5
- Joined: 2020/02/13 07:04:07
Re: Issues with running dnf upgrade, complains about missing metadata for modular package
Post
by peeqi » 2020/02/13 12:59:53
I’ve tried disabling all repos except the ones that came with Centos 8, but the error still appears.
Output from dnf repolist after deactivating repos:
Code: Select all
repo id repo name status
AppStream CentOS-8 - AppStream 5093
BaseOS CentOS-8 - Base 2080
extras CentOS-8 - Extras 3
-
TrevorH
- Site Admin
- Posts: 32532
- Joined: 2009/09/24 10:40:56
- Location: Brighton, UK
Re: Issues with running dnf upgrade, complains about missing metadata for modular package
Post
by TrevorH » 2020/02/13 13:18:19
Whereever you are pointing to for AppStream is not correct. It should have 5116 packages not 5093.
-
Lazlow
- Posts: 168
- Joined: 2007/09/21 16:55:45
Re: Issues with running dnf upgrade, complains about missing metadata for modular package
Post
by Lazlow » 2020/02/13 20:43:00
I am wondering if there is not one (or more) bad mirrors out there. Seeing the same issue on my system. Only oddballs are epel-playground, rpmfusion both free and nonfree.
-
peeqi
- Posts: 5
- Joined: 2020/02/13 07:04:07
Re: Issues with running dnf upgrade, complains about missing metadata for modular package
Post
by peeqi » 2020/02/14 06:43:55
TrevorH wrote: ↑
2020/02/13 13:18:19
Whereever you are pointing to for AppStream is not correct. It should have 5116 packages not 5093.
Code: Select all
> cat /etc/yum.repos.d/CentOS-AppStream.repo
[AppStream]
name=CentOS-$releasever - AppStream
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=AppStream&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Anyway, i removed the ‘oci-systemd-hook’ package to be done with it. Still no idea what caused it or how to resolve it for future reference.
