-->

Thursday, October 13, 2022

[Solved] warning: containerd.io.rpm: error: Failed dependencies:container-selinux >= 2:2.74 is needed by containerd.io

 

Issue:- 

When installing the containerd rpm on the centos7 get a dependency issue related to container-selinux preventing the containerd from getting installed

Error:- 

 [root@kubemaster ~]# rpm -ivh containerd.io-1.6.8-3.1.el7.x86_64.rpm
warning: containerd.io-1.6.8-3.1.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
error: Failed dependencies:
	container-selinux >= 2:2.74 is needed by containerd.io-1.6.8-3.1.el7.x86_64 


Effect:-

Was not able to install the containerd on the Centos7.

Resolution:-
Use the yum package manager to resolve the dependencies and install the rpm

 [root@kubemaster ~]# yum install -y containerd.io-1.6.8-3.1.el7.x86_64.rpm

 [root@kubemaster ~]# yum install -y containerd.io-1.6.8-3.1.el7.x86_64.rpm
Loaded plugins: fastestmirror
Examining containerd.io-1.6.8-3.1.el7.x86_64.rpm: containerd.io-1.6.8-3.1.el7.x86_64
Marking containerd.io-1.6.8-3.1.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package containerd.io.x86_64 0:1.6.8-3.1.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.6.8-3.1.el7.x86_64
Loading mirror speeds from cached hostfile
 * base: download.cf.centos.org
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: download.cf.centos.org
 * nux-dextop: mirror.li.nux.ro
 * updates: download.cf.centos.org
--> Running transaction check
---> Package container-selinux.noarch 2:2.119.2-1.911c772.el7_8 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================
 Package             Arch     Version                       Repository                             Size
========================================================================================================
Installing:
 containerd.io       x86_64   1.6.8-3.1.el7                 /containerd.io-1.6.8-3.1.el7.x86_64   125 M
Installing for dependencies:
 container-selinux   noarch   2:2.119.2-1.911c772.el7_8     extras                                 40 k

Transaction Summary
========================================================================================================
Install  1 Package (+1 Dependent package)

Total size: 125 M
Total download size: 40 k
Installed size: 125 M
Downloading packages:
container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm                             |  40 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch                                   1/2
  Installing : containerd.io-1.6.8-3.1.el7.x86_64                                                   2/2
  Verifying  : containerd.io-1.6.8-3.1.el7.x86_64                                                   1/2
  Verifying  : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch                                   2/2

Installed:
  containerd.io.x86_64 0:1.6.8-3.1.el7

Dependency Installed:
  container-selinux.noarch 2:2.119.2-1.911c772.el7_8

Complete!

0 comments:

Post a Comment