yum安装库报错

博客记录了使用yum install zip命令时,出现MySQL 5.7社区服务器仓库HTTP 404错误,yum无法继续的问题。给出的处理办法是进入/etc/yum.repos.d目录,删除mysql-connectors-community.repo和mysql-tools-community.repo文件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误
[root@localhost zoukaicai]# yum install zip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
mysql-connectors-community | 2.5 kB 00:00:00
mysql-tools-community | 2.5 kB 00:00:00
http://repo.mysql.com/yum/mysql-5.7-community/el/7/aarch64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn’t help to resolve this issue please create a bug on https://bugs.centos.org/

One of the configured repositories failed (MySQL 5.7 Community Server),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=mysql57-community ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable mysql57-community
    or
        subscription-manager repos --disable=mysql57-community

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=mysql57-community.skip_if_unavailable=true

failure: repodata/repomd.xml from mysql57-community: [Errno 256] No more mirrors to try.
http://repo.mysql.com/yum/mysql-5.7-community/el/7/aarch64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
处理
cd /etc/yum.repos.d下
删除mysql-connectors-community.repo、mysql-tools-community.repo

当你通过 `yum` 安装 Chromium 浏览器时报出依赖冲突错误,通常是因为系统中存在一些版本不兼容的包或者某些必要的文件缺失。 ### 解决步骤: #### 1. **更新 YUM 软件源** 首先确保你的软件源是最新的,并且包含最新的软件包信息。你可以运行以下命令来更新软件源缓存: ```bash sudo yum update -y ``` #### 2. **检查现有依赖项冲突** 使用 `yum deplist` 查看 Chromium 的所有依赖项列表以及当前系统的满足情况 ```bash yum deplist chromium ``` 如果发现有冲突的依赖项,则需要分析具体的冲突原因并尝试解决这些冲突。 #### 3. **清理旧版或冗余的软件包** 某些时候残留的历史版本或其他不必要的软件可能会导致安装失败。可以考虑使用以下命令清理不再需要的软件包及它们相关的配置文件等数据。 ```bash sudo yum autoremove sudo yum clean all ``` #### 4. **手动指定版本安装** 如果默认仓提供的最新版与您的操作系统环境不符,您可以试着下载特定版本的 RPM 包进行本地安装;也可以从其他更稳定的第三方镜像站获取适合您OS架构和内核级别的Chromium rpm包 找到合适的RPM链接后直接用wget下载再通过rpm -ivh 安装 ```bash # 示例命令 cd /tmp/ wget [URL_OF_THE_RPM_FILE] # 替换为实际网址 sudo rpm -Uvh ./chromium*.rpm ``` #### 5. **添加 EPEL 或者 ELRepo 等额外存储** 对于企业级 Linux 发行版来说,默认官方源可能并不提供完整的开源浏览器支持,这时就需要开启外部社区维护的质量较高的附加组件资源池如EPEL(Extra Packages for Enterprise Linux)、ELRepo (Enterprise Linux Repository),以便更好地解决问题。 例如,在 CentOS 上启用 EPEL: ```bash sudo yum install epel-release sudo yum-config-manager --enable epel* ``` 然后再次尝试安装 Chromium 即可。 --- 希望以上方法可以帮助你顺利地完成 Chromium 的安装
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

混沌人生

你的鼓励将是我创作的最大动力

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

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

打赏作者

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

抵扣说明:

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

余额充值