美文网首页
centos软件安装rpm遇到的错误No such file o

centos软件安装rpm遇到的错误No such file o

作者: 王侦 | 来源:发表于2019-11-23 15:25 被阅读0次

1.No such file or directory

Error downloading packages:
  deltarpm-3.6-3.el7.x86_64: [Errno 5] [Errno 2] No such file or directory

2.更新CentOS-Base.repo源不奏效

step1.首先进入 /etc/yum.repos.d 目录,备份CentOS-Base.repo源,

cp CentOS-Base.repo  CentOS-Base.repo.bak  

step2、修改 CentOS-Base.repo 文件

vim CentOS-Base.repo

http://mirrors.cloud.aliyuncs.com 批量替换为 http://mirrors.aliyun.com

step3、备份epel.repo源,修改epel.repo文件

cp  epel.repo  epel.repo.bak
vim  epel.repo

http://mirrors.cloud.aliyuncs.com 批量替换为 http://mirrors.aliyun.com

step4、清理yum缓存和重新生成缓存,

yum  clean  all
yum  makecache

3.建立python软连接奏效

后来按如下方式可以:

ln -s python2.7 python

安装都成功

yum -y install deltarpm
yum -y install wget

相关文章

网友评论

      本文标题:centos软件安装rpm遇到的错误No such file o

      本文链接:https://www.haomeiwen.com/subject/raehwctx.html