YUM encountered errors outside of EasyApache 4

YUM encountered errors outside of EasyApache 4
5/5 - (2 votes)

In this guide, i will show you how you can fix the EasyApache4 yum error after installation of imunify360 or cloudlinux. some time php error.

# ll /etc/yum.repos.d
  • If the system is registered to RHN Classic, only rhel-source.repo should be present under /etc/yum.repos.d/.
    If the system is registered with Red Hat Subscription Manager (RHSM) via subscription-manager, rhel-source.repo and ‘redhat.repo’ are present.
    If any local repositories, or any other media repositories are present, remove them by :-

Raw

# rm -rf /etc/yum.repos.d/<local or other repository name>
  • Remove old yum cache from system by running following commands:

Raw

# rm -fr /var/cache/yum/*
# yum clean all
  • Check if you can list the valid repositories by :-

Raw

# yum repolist

If you are using subscription-manager and the previous solutions do not work, try reenabling each repository one-by-one with the following:-Raw

# REPOLIST=`subscription-manager repos --list-enabled | grep "Repo ID" | awk '{print $3}'`
# subscription-manager repos --disable="*"
# rm -fr /var/cache/yum/*
# yum clean all
# for i in ${REPOLIST}; do subscription-manager repos --enable=$i ; yum repolist; done

Root Cause

  • Possible reasons for this issue:
    1. Corrupted yum cache.
    2. Inaccessibility of a repository URL from the system due to network related issues.
    3. Presence of customized or other media repositories.
    4. Outdated whitelist when using IP-based Firewall configuration to access
Total
0
Shares
Leave a Reply

Your email address will not be published.

Previous Post
FileOp Failure on: Directory not empty

How To Fix FileOp Failure on: Directory not empty in cPanel

Next Post
How To Remove Shared License

How to Remove Shared License From Server – cPanel, Imunify365, Plesk, LightSpeed, Cloud Linux.

Related Posts
Total
0
Share