在 RHEL9 上安装 mysql-community-devel,“下载存储库‘mysql80-community’的元数据时出错”

在 RHEL9 上安装 mysql-community-devel,“下载存储库‘mysql80-community’的元数据时出错”

这是我进行此安装的第二个实例,但它没有按预期工作......

dnf -y localinstall mysql80-community-release-el9-5.noarch.rpm

我安装了 mysql80-community-release-el9-5.noarch.rpm 然后我不太记得了,但我想我此时能够安装 mysql-community-devel 。
这是我在文档中写的命令:

dnf install mysql-community-devel.x86_64

我的第一个实例工作正常,但是......

在我的第二个例子中......

安装 mysql80-community-release-el9-5.noarch.rpm 然后尝试安装 mysql-community-devel 以错误结束。

在第二个实例上安装 mysql80-community-release-el9-5.noarch.rpm:

dnf -y localinstall mysql80-community-release-el9-5.noarch.rpm
Updating Subscription Management repositories.
Red Hat Enterprise Linux 9 for x86_64 - AppStr 196 kB/s | 4.5 kB     00:00
Red Hat Enterprise Linux 9 for x86_64 - BaseOS 187 kB/s | 4.1 kB     00:00
Extra Packages for Enterprise Linux 9 - x86_64 159 kB/s | 2.3 kB     00:00
Dependencies resolved.
===============================================================================
 Package                        Arch        Version    Repository         Size
===============================================================================
Installing:
 mysql80-community-release      noarch      el9-5      @commandline       13 k

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

Total size: 13 k
Installed size: 12 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                       1/1
  Installing       : mysql80-community-release-el9-5.noarch                1/1
  Verifying        : mysql80-community-release-el9-5.noarch                1/1
Installed products updated.
Errors during downloading metadata for repository 'mysql80-community':
  - Curl error (56): Failure when receiving data from the peer for http://repo.mysql.com/yum/mysql-8.0-community/el/9/x86_64/repodata/repomd.xml [Recv failure: Connection reset by peer]

Installed:
  mysql80-community-release-el9-5.noarch

Complete!

在第二个实例上尝试 mysql-community-devel:

dnf install mysql-community-devel.x86_64
Updating Subscription Management repositories.
MySQL 8.0 Community Server                     0.0  B/s |   0  B     00:00
Errors during downloading metadata for repository 'mysql80-community':
  - Curl error (56): Failure when receiving data from the peer for http://repo.mysql.com/yum/mysql-8.0-community/el/9/x86_64/repodata/repomd.xml [Recv failure: Connection reset by peer]
Error: Failed to download metadata for repo 'mysql80-community': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

我想我也尝试了尽可能多的 mysql-devel 名称变体。

我已经在这个问题上停留了一段时间,过了一段时间,我设法发现与第一个实例相比,我在第二个实例上缺少 mysql-community-devel 包。

我尝试查找用户命令的日志,但无法找到任何有用的日志或历史记录。

我错过了什么......?


更新:我尝试下载mysql-community-devel-8.3.0-1.el9.x86_64.rpm 并安装它,但遇到类似的问题......

dnf -y localinstall mysql-community-devel-8.3.0-1.el9.x86_64.rpm
Updating Subscription Management repositories.
MySQL 8.0 Community Server                     0.0  B/s |   0  B     00:00
Errors during downloading metadata for repository 'mysql80-community':
  - Curl error (56): Failure when receiving data from the peer for http://repo.mysql.com/yum/mysql-8.0-community/el/9/x86_64/repodata/repomd.xml [Recv failure: Connection reset by peer]
Error: Failed to download metadata for repo 'mysql80-community': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

我期望它在本地查找mysql80-community而不是通过互联网,因为mysql80-community已经通过安装mysql80-community-release-el9-5.noarch.rpm

dnf repolist enabled | grep mysql
mysql-connectors-community   MySQL Connectors Community
mysql-tools-community        MySQL Tools Community
mysql80-community            MySQL 8.0 Community Server

答案1

显然,您的网络连接repo.mysql.com并不完全稳定:某些东西时不时地中断与它的连接。

可能是您运气不好,在他们更新服务器或进行其他维护时尝试连接repo.mysql.com,或者您的系统和服务器之间的路径中的某些内容导致连接中断。

您可能会尝试sudo traceroute -T -p 80 repo.mysql.com找出连接断开的位置。如果故障似乎出现在前三跳左右,并且您的系统位于家庭/小型企业中,您可以尝试重置路由器/调制解调器。如果故障距离较远,或者您尝试安装 MySQL 的系统是云服务,那么您可能需要查看您的互联网服务提供商/云提供商是否发布了故障/中断通知。

相关内容