Centos下安装wget时出现Delta RPMs disabled because /usr/bin/applydeltarpm not installed解决办法

在刚装好的centos8上面使用yum命令安装wget报错如下:

Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
wget-1.14-18.el7_6.1.x86_64.rp FAILED

上述报错字面上的意思是deltarpm没有安装,下面开始安装deltarpm

yum provides '*/applydeltarpm'
yum install deltarpm

然后又出现报错信息如下:

CentOS cannot find a valid baseurl for repo base/7/x86_64

从上述报错信息可以确定这是网络问题。

  • 需要检查网卡文件的配置是否没有问题
[root@localhost network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static #静态IP配置
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=a3747444-e06a-463d-9a9e-1811a8909d9e
DEVICE=ens33
ONBOOT=yes #是否开机启动
IPADDR=192.168.102.130 #ip
NETMASK=255.255.255.0 #子网掩码
GATEWAY=192.168.102.1 #网关
PREFIX=24
DNS1=114.114.114.114 #DNS
  • 重启网卡
service network restart
  • ping 外网(www.baidu.com)是否可以访问外网
ping www.baidu.com
64 bytes from 180.101.49.11 (180.101.49.11): icmp_seq=1 ttl=128 time=14.1 ms
64 bytes from 180.101.49.11 (180.101.49.11): icmp_seq=2 ttl=128 time=14.6 ms
64 bytes from 180.101.49.11 (180.101.49.11): icmp_seq=3 ttl=128 time=14.0 ms
64 bytes from 180.101.49.11 (180.101.49.11): icmp_seq=4 ttl=128 time=14.0 ms
  • 安装deltarpm
yum provides '*/applydeltarpm'
yum install deltarpm

至此问题解决

你可能感兴趣的:(Centos下安装wget时出现Delta RPMs disabled because /usr/bin/applydeltarpm not installed解决办法)