鲲鹏centos7 安装mysql错误 http://repo.mysql.com/yum/mysql-5.6-community/el/7/aarch64/repodata/repomd.xml:

本文详细记录了在ARMv8架构的华为鲲鹏920服务器上,因缺少预编译的MySQL包而无法直接通过yum安装的问题解决过程。包括安装必要依赖、从GitHub获取MySQL源代码、下载并解压Boost库、配置CMake进行编译前准备,最终成功编译安装MySQL。

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

当使用yum安装时yum install mysql-server ,出现错误
错误截图:

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

错误信息:

[root@ecs-kc1-large-2-linux-20200418203932 yum.repos.d]# yum install mysql-serve r
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.aktkn.sg
  • epel: mirrors.yun-idc.com
  • extras: packet01.centos.org
  • updates: mirror.aktkn.sg
    http://repo.mysql.com/yum/mysql-5.6-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 wiki article

https://wiki.centos.org/yum-errors

If above article doesn’t help to resolve this issue please use https://bugs.cent os.org/.

One of the configured repositories failed (MySQL 5.6 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 (
### 解决 CentOS 7 Updates Repository GPG Key Mismatch Error 当遇到 `GPG key mismatch` 错误时,通常是因为系统的 GPG 密钥配置与仓库中的密钥不一致。以下是针对此问题的解决方案: #### 配置正确的 GPG 密钥 确保系统已导入正确的公共密钥。对于 CentOS 7,官方推荐使用的 GPG 密钥位于以下地址: ```bash https://www.centos.org/keys/RPM-GPG-KEY-CentOS-7 ``` 如果使用的是网易镜像源,则应验证其提供的密钥是否有效。可以通过以下命令手动导入密钥[^1]: ```bash sudo rpm --import https://mirrors.163.com/centos-vault/RPM-GPG-KEY-CentOS-7 ``` #### 修改 Yum 源配置文件 编辑 `/etc/yum.repos.d/CentOS-Base.repo` 文件,将其内容替换为网易镜像源的内容。例如: ```ini [base] name=CentOS-$releasever - Base - mirrors.163.com failovermethod=priority baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 [updates] name=CentOS-$releasever - Updates - mirrors.163.com failovermethod=priority baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 ``` 上述配置指定了更新库 (`updates`) 的路径,并设置了本地存储的 GPG 密钥位置。 #### 清理并重新生成缓存 执行以下命令清理旧的缓存并重建新的缓存: ```bash sudo yum clean all sudo yum makecache ``` 这一步可以确保系统加载最新的元数据和软件包列表[^2]。 #### 安装或升级 Telnet 软件包 完成以上操作后,尝试再次安装或升级 `telnet` 软件包: ```bash sudo yum install telnet ``` 如果仍然报错,请确认错误日志中提到的具体问题,并进一步排查。 --- ### 注意事项 - 如果问题仍未解决,可能需要检查网络连接是否存在异常,或者更换其他可用的镜像源。 - 使用阿里云或其他第三方镜像源时,需确保其提供的 GPG 密钥与官方保持一致性[^3]。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值