yum报错

问题1:

[root@localhost yum.repos.d]# yum clean all
已加载插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
/var/run/yum.pid 已被锁定,PID19589 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to exit...
  另一个应用程序是:yum
    内存: 30 M RSS477 MB VSZ)
    已启动: Wed Dec 22 11:04:44 2021 - 52:26之前
    状态  :跟踪/停止,进程ID19589
Another app is currently holding the yum lock; waiting for it to exit...
  另一个应用程序是:yum
    内存: 30 M RSS477 MB VSZ)
    已启动: Wed Dec 22 11:04:44 2021 - 52:28之前
    状态  :跟踪/停止,进程ID19589
^Z
[2]+  已停止               yum clean all

解决办法

rm -f /var/run/yum.pid

问题2

[root@localhost /]# yum install zabbix-server-mysql zabbix-agent
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
local                                                                           | 4.3 kB  00:00:00     
http://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/repodata/repomd.xml: (28, 'Resolving timed out after 30012 milliseconds')
正在尝试其它镜像。
^Z
[1]+  已停止               yum install zabbix-server-mysql zabbix-agent

解决办法

重新配置DNS

[root@localhost /]# vim /etc/resolv.conf
[root@localhost /]# cat /etc/resolv.conf
; generated by /usr/sbin/dhclient-script
search localdomain
nameserver 114.114.114.114
nameserver 192.168.1.1

问题3

[root@localhost yum.repos.d]# yum clean all
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
正在清理软件源: local

解决办法

[root@localhost /]# vim /etc/yum/pluginconf.d/subscription-manager.conf
[main]
enabled=0
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值