Yum issue with centos7-els and 401 Unauthorized Print

  • 0

Symptoms

Accessing the MultiPHP Manager, or using yum to perform a package operation, returns a 401 unauthorized error for the centos7-els repository.

 

Cause

The original IP of the server has changed, which is not registered for centos7-els repository, causing repository errors.

 

Resolution

Re-register the server for the centos7-els repository.

  1. Move ELS release and repository files aside:

    mv /etc/els-release{,.bak}

    mv /etc/yum.repos.d/centos7-els.repo{,.bak}

    mv /etc/yum.repos.d/centos7-els-rollout.repo{,.bak}

  2. Run a license check:

    /usr/local/cpanel/cpkeyclt

  3. Manually perform a cPanel update:

    /scripts/upcp

  4. Once completed, put the ELS release and repository files back:

    mv /etc/els-release{.bak,}

    mv /etc/yum.repos.d/centos7-els.repo{.bak,}

    mv /etc/yum.repos.d/centos7-els-rollout.repo{.bak,}

  5. Finally, refresh the package manager cache:

    yum clean all && yum makecache


Was this answer helpful?
Back

Send Message