首页 > 其他分享 >Failed to synchronize cache for repo 'appstream', ignoring this repo. Failed to synchroniz

Failed to synchronize cache for repo 'appstream', ignoring this repo. Failed to synchroniz

时间:2022-12-28 18:38:09浏览次数:39  
标签:httpd x86 Failed apr module repo synchronize el8 64

问题: 当你进行安装httpd 服务时报错如下:

[root@localhost yum.repos.d]# yum install httpd

Updating Subscription Management repositories.

Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

appstream                                       0.0  B/s |   0  B     00:00    

baseos                                          0.0  B/s |   0  B     00:00    

Failed to synchronize cache for repo 'appstream', ignoring this repo.

Failed to synchronize cache for repo 'baseos', ignoring this repo.

No match for argument: httpd

Error: Unable to find a match


解决方案:

1.检查软件仓库配置的路径

2.检查是否有挂载


解决步骤:

1.挂载

[root@localhost ~]# mkdir /mnt/cdrom

[root@localhost ~]# mount /dev/sr0 /mnt/cdrom/

mount: /mnt/cdrom: WARNING: device write-protected, mounted read-only.

2.配置软件仓库

[root@localhost ~]# cat /etc/yum.repos.d/iso.repo

[baseos]

name = baseos

enabled = yes

baseurl=file:///mnt/cdrom/BaseOS

gpgcheck = 0


[appstream]

name= appstream  

baseurl=file:///mnt/cdrom/AppStream

enabled = yes

gpgcheck = 0

验证:再次安装可以成功安装

[root@localhost ~]# yum install httpd -y  

Updating Subscription Management repositories.

Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Last metadata expiration check: 0:00:21 ago on Wed 28 Dec 2022 04:50:51 AM EST.

Dependencies resolved.

================================================================================

Package            Arch   Version                              Repository

                                                                          Size

================================================================================

Installing:

httpd              x86_64 2.4.37-10.module+el8+2764+7127e69e   appstream 1.4 M

Installing dependencies:

redhat-logos-httpd noarch 80.7-1.el8                           BaseOS     25 k

apr                x86_64 1.6.3-9.el8                          appstream 125 k

apr-util           x86_64 1.6.1-6.el8                          appstream 105 k

httpd-filesystem   noarch 2.4.37-10.module+el8+2764+7127e69e   appstream  34 k

httpd-tools        x86_64 2.4.37-10.module+el8+2764+7127e69e   appstream 101 k

mod_http2          x86_64 1.11.3-1.module+el8+2443+605475b7    appstream 156 k

Installing weak dependencies:

apr-util-bdb       x86_64 1.6.1-6.el8                          appstream  25 k

apr-util-openssl   x86_64 1.6.1-6.el8                          appstream  27 k

Enabling module streams:

httpd                     2.4                                                  


Transaction Summary

================================================================================

Install  9 Packages


Total size: 2.0 M

Installed size: 5.4 M

Downloading Packages:

Running transaction check

Transaction check succeeded.

Running transaction test

Transaction test succeeded.

Running transaction

 Preparing        :                                                        1/1  

 Installing       : apr-1.6.3-9.el8.x86_64                                 1/9  

 Running scriptlet: apr-1.6.3-9.el8.x86_64                                 1/9  

 Installing       : apr-util-bdb-1.6.1-6.el8.x86_64                        2/9  

 Installing       : apr-util-openssl-1.6.1-6.el8.x86_64                    3/9  

 Installing       : apr-util-1.6.1-6.el8.x86_64                            4/9  

 Running scriptlet: apr-util-1.6.1-6.el8.x86_64                            4/9  

 Installing       : httpd-tools-2.4.37-10.module+el8+2764+7127e69e.x86_6   5/9  

 Running scriptlet: httpd-filesystem-2.4.37-10.module+el8+2764+7127e69e.   6/9  

 Installing       : httpd-filesystem-2.4.37-10.module+el8+2764+7127e69e.   6/9  

 Installing       : redhat-logos-httpd-80.7-1.el8.noarch                   7/9  

 Installing       : mod_http2-1.11.3-1.module+el8+2443+605475b7.x86_64     8/9  

 Installing       : httpd-2.4.37-10.module+el8+2764+7127e69e.x86_64        9/9  

 Running scriptlet: httpd-2.4.37-10.module+el8+2764+7127e69e.x86_64        9/9  

 Verifying        : redhat-logos-httpd-80.7-1.el8.noarch                   1/9  

 Verifying        : apr-1.6.3-9.el8.x86_64                                 2/9  

 Verifying        : apr-util-1.6.1-6.el8.x86_64                            3/9  

 Verifying        : apr-util-bdb-1.6.1-6.el8.x86_64                        4/9  

 Verifying        : apr-util-openssl-1.6.1-6.el8.x86_64                    5/9  

 Verifying        : httpd-2.4.37-10.module+el8+2764+7127e69e.x86_64        6/9  

 Verifying        : httpd-filesystem-2.4.37-10.module+el8+2764+7127e69e.   7/9  

 Verifying        : httpd-tools-2.4.37-10.module+el8+2764+7127e69e.x86_6   8/9  

 Verifying        : mod_http2-1.11.3-1.module+el8+2443+605475b7.x86_64     9/9  

Installed products updated.


Installed:

 httpd-2.4.37-10.module+el8+2764+7127e69e.x86_64                                

 apr-util-bdb-1.6.1-6.el8.x86_64                                                

 apr-util-openssl-1.6.1-6.el8.x86_64                                            

 redhat-logos-httpd-80.7-1.el8.noarch                                          

 apr-1.6.3-9.el8.x86_64                                                        

 apr-util-1.6.1-6.el8.x86_64                                                    

 httpd-filesystem-2.4.37-10.module+el8+2764+7127e69e.noarch                    

 httpd-tools-2.4.37-10.module+el8+2764+7127e69e.x86_64                          

 mod_http2-1.11.3-1.module+el8+2443+605475b7.x86_64                            


Complete!



标签:httpd,x86,Failed,apr,module,repo,synchronize,el8,64
From: https://blog.51cto.com/u_14567835/5976109

相关文章