当前位置: 首页> 文旅> 文化 > 【已解决】CentOS8安装lrzsz报错:Error: Failed to download metadata for repo ‘BaseOS‘

【已解决】CentOS8安装lrzsz报错:Error: Failed to download metadata for repo ‘BaseOS‘

时间:2025/7/12 14:02:49来源:https://blog.csdn.net/kuailebuzhidao/article/details/140249506 浏览次数:0次

这里写自定义目录标题

  • 系统信息
  • 安装lrzsz
  • 解决方案
    • 开始使用

系统信息

#cat /etc/redhat-release
CentOS Linux release 8.1.1911 (Core)

安装lrzsz

# yum install lrzsz
CentOS-8 - AppStream                                                                                     100 kB/s | 4.3 kB     00:00
CentOS-8 - Base                                                                                          0.0  B/s |   0  B     00:31
Failed to download metadata for repo 'BaseOS'
Error: Failed to download metadata for repo 'BaseOS'

Error: Failed to download metadata for repo ‘BaseOS’
按照网上方式修改CentOS-Base.repo的没有成功。
然后还原了这个文件。

解决方案

先查看下载包是否有 lrzsz

# yum list lrzsz
CentOS-8 - Base                                                                                          117 kB/s | 3.9 kB     00:00
CentOS-8 - Extras                                                                                         45 kB/s | 1.5 kB     00:00
Extra Packages for Enterprise Linux 8 - x86_64                                                           150 kB/s | 4.4 kB     00:00
MySQL Connectors Community                                                                               5.7 kB/s | 2.6 kB     00:00
MySQL Tools Community                                                                                    8.2 kB/s | 2.6 kB     00:00
MySQL 5.7 Community Server                                                                               8.3 kB/s | 2.6 kB     00:00
Available Packages
lrzsz.x86_64                                                    0.12.20-43.el8                                                     BaseOS

发现有 lrzsz 则直接本地安装。

# yum install lrzsz.x86_64
Last metadata expiration check: 0:00:19 ago on Sun 07 Jul 2024 05:40:18 PM CST.
Dependencies resolved.
=========================================================================================================================================Package                      Architecture                  Version                                  Repository                     Size
=========================================================================================================================================
Installing:lrzsz                        x86_64                        0.12.20-43.el8                           BaseOS                         84 kTransaction Summary
=========================================================================================================================================
Install  1 PackageTotal download size: 84 k
Installed size: 190 k
Is this ok [y/N]: y
Downloading Packages:
lrzsz-0.12.20-43.el8.x86_64.rpm                                                                          1.6 MB/s |  84 kB     00:00
-----------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                    1.5 MB/s |  84 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transactionPreparing        :                                                                                                                 1/1Installing       : lrzsz-0.12.20-43.el8.x86_64                                                                                     1/1Running scriptlet: lrzsz-0.12.20-43.el8.x86_64                                                                                     1/1Verifying        : lrzsz-0.12.20-43.el8.x86_64                                                                                     1/1Installed:lrzsz-0.12.20-43.el8.x86_64

完美!

开始使用

上传文件到服务器
# rz -by (回车)下载xx文件到本地
# sz xx (回车)
关键字:【已解决】CentOS8安装lrzsz报错:Error: Failed to download metadata for repo ‘BaseOS‘

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: