首页 > 系统相关 >yum install lrzsz出错

yum install lrzsz出错

时间:2024-07-04 16:43:39浏览次数:18  
标签:CentOS repos lrzsz repo etc Base yum install

[root@centos ~]# 

yum install -y lrzsz
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#7 - "Failed to connect to 2600:1f16:c1:5e01:4180:6610:5482:c1c0: 网络不可达"


One of the configured repositories failed (未知),
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=<repoid> ...

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 <repoid>
or
subscription-manager repos --disable=<repoid>

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=<repoid>.skip_if_unavailable=true

 

可以尝试下边一种解决方案:

一般系统默认是从国外的仓库拉取数据,失败率很高,可以考虑将yum源更改为国内的源,更新方法如下。 

1、先备份

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/

你系统版本是哪个就用哪个 

CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

3、添加EPEL

CentOS 6
wget -O /etc/yum.repos.d/epel-6.repo http://mirrors.aliyun.com/repo/epel-6.repo
CentOS 7
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

4、清理缓存并生成新的缓存

yum clean all
yum makecache

标签:CentOS,repos,lrzsz,repo,etc,Base,yum,install
From: https://www.cnblogs.com/po3a/p/18284144

相关文章

  • vcpkg install 依赖慢的解决办法
    解决方案为了解决这个问题,我们可以利用第三方提供的GitHub镜像服务来加速下载。//类似的可以搜索ghproxy,在此感谢ghproxy!这里,我们将使用ghproxy.xiaopa.cc作为我们的GitHub镜像服务。 步骤一:设置环境变量打开Windows系统的“控制面板”。点击“系统和安全”......
  • 解决Centos无法yum源的问题
    1、安装yum依赖包,出现报错couldnotresolvehost:mirrorlist.centos.org:unknownerror此时#pingmirrors.aliyun.com不通一般是由于dns解析存在问题,cd/etc/resolv.conf 修改nameserver改为114.114.114.114。重启网卡:systemctlrestartnetwork再次#ping mirrors.al......
  • 成功解决CentOS7中yum能ping通外网,但是无法下载问题
    今天安装完centos7后,使用yum安装vim时出现连接国外源超时情况,想通过yumupdate来解决问题,但是出现以下情况:通过pingwww.baidu.com,网络是通的。怀疑是CentOS-Base.repo文件出了问题。通过命令将该文件备份:mv/etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base......
  • yum安装中关于Base.repo的报错问题
     用yum安装出现以下问题: 确认自己的DNS配置正确,而且可以用连接公网,测试如下: 查看repolist:是否为0,是的话继续下面操作yumrepolist备份原来的Base.repomv/etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.backup 下载阿里的yum安装的Bas......
  • centos7安装后yum 错误
    前言安装没有图形界面的centos7后,发现yum无法使用,一直错误,原因是因为yum需要更换源过程先备份,yum源目录为cd/etc/yum.repos.d/mv/etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.backup下载阿里云的yum源wget-O/etc/yum.repos.d/CentOS-B......
  • 修改yum安装的php的启动用户
    在使用yum安装php时,默认情况下,安装完成后php的启动用户是apache1、编辑php-fpm的配置文件。在大多数Linux系统中,php-fpm的配置文件路径为/etc/php-fpm.d/www.conf。2、找到配置文件中的`user`和`group`项。默认情况下,`user`的值是apache,`group`的值是apache,即php启动用户和用户......
  • 详细讲解 Keil Pack Installer,以及通过 Keil 官网获取 Pack
    前言大家好,我是梁国庆。收到粉丝留言,说Keil安装Pack不太明白,可不可以详细演示一下?当然可以有,直接视频+文章全部安排,我就是宠粉。PS:第一次录视频有些紧张,见谅哈。微信视频号:https://weixin.qq.com/sph/AXbpYwEawb站:https://www.bilibili.com/video/BV1zx4y147ZJ/Keil......
  • linux yum的安装与管理
    (学生填写)(一)yum配置本地源在使用yum安装之前是必须配置yum源的,在不能联网的情况下,可使用DVD光盘或ISO文件做本地yum源.建立光盘文件存放目录(/mnt/dvd)和创建光盘挂载点,如图1所示。 图1挂载光盘成功2.利用挂载光盘命令,已将光盘正常挂载好,如图2......
  • ubuntu制作本地镜像(类似yum本地)
     1.原文件备份root@11g:/mnt#cd/etc/apt/root@11g:/etc/apt#cpsources.listbak_sources.list 2.挂载安装盘镜像mkdir-p/media/cdrom/root@11g:/soft/ios#cd/soft/iosroot@11g:/soft/ios#mountubuntu-18.04.6-desktop-amd64.iso-oloop/media/cdrommount:/media......
  • 有关paddleocr在pyinstall中打包问题的解决方案
    借鉴网址python解决paddleocr打包问题_pyinstaller怎么解决paddleocr中的动态导入-CSDN博客在打包时我使用的spec文件如下:(需要将pathe和binaries换为自己的paddleocr路径)block_cipher=Nonea=Analysis(['main.py'],   pathex=['E:\\PyEnviroment\\Lib\\site-packages\\p......