CentOS Base Repo Mirror Unavailable

Hello All,

I have being trying to upgrade my CentOS 7.9 Server to Oracle Linux 8. While trying to perform leapp upgrade, few of the dependencies are failing to download due to which upgrade is failing.

Mirror 

http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=

is archieved. 

Reason of failure behind leapp upgrade

[07/04/24 06:25:17.114494966] --> Processing Dependency: leapp-framework-dependencies = 5 for package: python2-leapp-0.14.0-1.el7.noarch
[07/04/24 06:25:17.118791693] --> Running transaction check
[07/04/24 06:25:17.122093554] ---> Package leapp-deps.noarch 0:0.14.0-1.el7 will be installed
[07/04/24 06:25:17.125483053] ---> Package leapp-upgrade-el7toel8-deps.noarch 1:0.16.0-6.el7.elevate.20 will be installed
[07/04/24 06:25:17.128864986] --> Processing Dependency: dnf >= 4 for package: 1:leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.20.noarch
[07/04/24 06:25:17.132277989] --> Processing Dependency: policycoreutils-python for package: 1:leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.20.noarch
[07/04/24 06:25:17.258101907] --> Finished Dependency Resolution
[07/04/24 06:25:17.294312954] Error: Package: 1:leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.20.noarch (elevate)
[07/04/24 06:25:17.301289116] Requires: policycoreutils-python
[07/04/24 06:25:17.303848004] Error: Package: 1:leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.20.noarch (elevate)
[07/04/24 06:25:17.318212466] Requires: dnf >= 4
[07/04/24 06:25:17.325405599] You could try using --skip-broken to work around the problem
[07/04/24 06:25:17.717064779] You could try running: rpm -Va --nofiles --nodigest

Is there any other mirror available for CentOS where i can download the required dependencies.

Thank you

Fixed your formatting :slight_smile:

The CentOS mirrors are archived. This means you still have CentOS repositories somewhere.

I would recommend AlmaLinux or RockyLinux, but Oracle is of course fine too.

Please give us the exact commands you ran.

You need to replace ALL repos in /etc/yum.repos.d/ which is not yet done.

https://vault.centos.org/

The primary vault is going to be regularly overloaded by people trying to get 7.9 items, please use a mirror of the vault like https://archive.kernel.org/centos-vault/ or similar.
In order to make this work, you should edit the /etc/CentOS-Base.repo to comment out the

# base packages for reinstall
[base]
name=CentOS-$releasever - Base
baseurl=https://archive.kernel.org/centos-vault/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates 
[updates]
name=CentOS-$releasever - Updates
baseurl=https://archive.kernel.org/centos-vault/7.9.2009/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=https://archive.kernel.org/centos-vault/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=https://archive.kernel.org/centos-vault/7.9.2009/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
2 Likes

Indeed. What I did was create my own private CentOS 7 repo on a staging server and then created a Cloudflare R2 S3 bucket and uploaded the CentOS 7 repo contents to Cloudflare R2 S3 bucket and enabled subdomain public access and added Cloudflare CDN caching and updated the repo urls to point to my private CentOS 7 repo :slight_smile: