Error: Unable to find a match: policycoreutils-python报错解决

文章讲述了在安装GitLab时遇到内存不足的问题,以及如何解决通过配置yum源安装EPEL仓库以获取必要的依赖。后续还演示了使用`yuminstall`命令安装curl、policycoreutils、python3和openssh-server的过程。
摘要由CSDN通过智能技术生成

 在安装gitlab时需要保证虚拟机有4G的内存

 问题分析

这个报错是因为未配置yum源,所以需要安装EPEL源:

[root@bogon ~]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Last metadata expiration check: 0:56:41 ago on Mon 08 Apr 2024 02:38:32 PM CST.
epel-release-latest-8.noarch.rpm                                            20 kB/s |  25 kB     00:01    
Dependencies resolved.
===========================================================================================================
 Package                    Architecture         Version                  Repository                  Size
===========================================================================================================
Installing:
 epel-release               noarch               8-19.el8                 @commandline                25 k

Transaction Summary
===========================================================================================================
Install  1 Package

Total size: 25 k
Installed size: 35 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                   1/1 
  Installing       : epel-release-8-19.el8.noarch                                                      1/1 
  Running scriptlet: epel-release-8-19.el8.noarch                                                      1/1 
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.

  Verifying        : epel-release-8-19.el8.noarch                                                      1/1 

Installed:
  epel-release-8-19.el8.noarch                                                                             

Complete!

使用python3安装

[root@bogon ~]# yum install -y curl policycoreutils-python3 openssh-server
Extra Packages for Enterprise Linux 8 - x86_64                             3.8 MB/s |  16 MB     00:04    
Last metadata expiration check: 0:00:06 ago on Mon 08 Apr 2024 03:35:41 PM CST.
Package curl-7.61.1-22.el8.x86_64 is already installed.
Package python3-policycoreutils-2.9-16.el8.noarch is already installed.
Package openssh-server-8.0p1-10.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

 

[root@bogon ~]# yum install -y curl policycoreutils-python3 openssh-server perl

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

元气满满的热码式

感谢您的支持!我会继续努力发布

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值