sojib in

Member
Feb 15, 2023
7
0
1
INDIA
cPanel Access Level
Root Administrator
hello,
yum show error


* epel: www.nic.funet.fi
file:///usr/local/cpanel/etc/rpm/generic/cPAddons/yumrepo/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /usr/local/cpanel/etc/rpm/generic/cPAddons/yumrepo/repodata/repomd.xml"
Trying other mirror.
 

Attachments

Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,218
2,417
363
cPanel Access Level
Root Administrator
Hey there! Whenever I run into an issue with Yum not updating properly, I always try these three commands first:

yum clean all
yum makecache
yum update

Can you try that and let me know if that changes the behavior of the "yum update" process at all?
 

sojib in

Member
Feb 15, 2023
7
0
1
INDIA
cPanel Access Level
Root Administrator
Hey there! Whenever I run into an issue with Yum not updating properly, I always try these three commands first:

yum clean all
yum makecache
yum update

Can you try that and let me know if that changes the behavior of the "yum update" process at all?
still some issue.

Metadata Cache Created
[[email protected] ~]# yum update
Loaded plugins: fastestmirror, rhnplugin, universal-hooks
This system is receiving updates from CLN.
Loading mirror speeds from cached hostfile
* EA4: 178.18.193.52
* cpanel-addons-production-feed: 178.18.193.52
* cpanel-plugins: 178.18.193.52
* cloudlinux-x86_64-server-7: cl-mirror.dk.team.blue
* epel: www.nic.funet.fi
file:///usr/local/cpanel/etc/rpm/generic/cPAddons/yumrepo/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /usr/local/cpanel/etc/rpm/generic/cPAddons/yumrepo/repodata/repomd.xml"
Trying other mirror.
No packages marked for update
[[email protected] ~]#
 

sojib in

Member
Feb 15, 2023
7
0
1
INDIA
cPanel Access Level
Root Administrator
It seems like a specific repository is looking for that file. Can you run this command and share the result?

Code:
grep -Ri cpaddons /etc/yum.repos.d
[[email protected] ~]# grep -Ri cpaddons /etc/yum.repos.d
/etc/yum.repos.d/usr_local_cpanel_etc_rpm_generic_cPAddons_yumrepo.repo:[usr_local_cpanel_etc_rpm_generic_cPAddons_yumrepo]
/etc/yum.repos.d/usr_local_cpanel_etc_rpm_generic_cPAddons_yumrepo.repo:name=added from: file:///usr/local/cpanel/etc/rpm/generic/cPAddons/yumrepo
/etc/yum.repos.d/usr_local_cpanel_etc_rpm_generic_cPAddons_yumrepo.repo:baseurl=file:///usr/local/cpanel/etc/rpm/generic/cPAddons/yumrepo
/etc/yum.repos.d/cPAddons.repo:mirrorlist=http://httpupdate.cpanel.net/cPAddons-c$cp_centos_major_version-$basearch-mirrorlist
[[email protected] ~]#
[[email protected] ~]#
 

ServerHealers

Well-Known Member
Sep 21, 2015
100
57
78
India
cPanel Access Level
Root Administrator
Looks like the server has a faulty or outdated repository for cPanel addons, rename that repository file with below command and then run those commands @cPRex given in his initial response.

mv /etc/yum.repos.d/usr_local_cpanel_etc_rpm_generic_cPAddons_yumrepo.repo /etc/yum.repos.d/usr_local_cpanel_etc_rpm_generic_cPAddons_yumrepo.repo_backup

Once the above is executed, run the following and see if this helps:

yum clean all
yum makecache
yum update
 
  • Like
Reactions: sojib in

sojib in

Member
Feb 15, 2023
7
0
1
INDIA
cPanel Access Level
Root Administrator
Looks like the server has a faulty or outdated repository for cPanel addons, rename that repository file with below command and then run those commands @cPRex given in his initial response.

mv /etc/yum.repos.d/usr_local_cpanel_etc_rpm_generic_cPAddons_yumrepo.repo /etc/yum.repos.d/usr_local_cpanel_etc_rpm_generic_cPAddons_yumrepo.repo_backup

Once the above is executed, run the following and see if this helps:

yum clean all
yum makecache
yum update
Thanks its worked now.