I'm facing below issue after running the script, can you please let me know what's the issue and how to fix?
Determining fastest mirrors
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: centos-base/7Server/x86_64
Could not install base packages.
Run 'yum distro-sync' to manually install them.
For assistance, please open an issue via GitHub: https://github.com/oracle/centos2ol/.
Full Log:
**Checking for required packages...
Checking your distribution...
epel-release-7-14.noarch
Checking for yum lock...
Checking for required python packages...
Finding your repository directory...
Learning which repositories are enabled...
Repositories enabled before update include:
base
centos-base
centos-extras
centos-override
centos-updates
epel
extras
updates
Downloading Oracle Linux yum repository file...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16402 100 16402 0 0 12855 0 0:00:01 0:00:01 --:--:-- 12864
Looking for yumdownloader...
Backing up and removing old repository files...
Removing CentOS-specific yum configuration from /etc/yum.conf
Downloading Oracle Linux release package...
Loaded plugins: fastestmirror, langpacks, versionlock
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 27 kB 00:00:00
Installing base packages for Oracle Linux...
Loaded plugins: fastestmirror, langpacks, versionlock
No Match for argument: centos-backgrounds
No Match for argument: centos-gpg-keys
No Match for argument: centos-release
No Match for argument: centos-release-cr
No Match for argument: desktop-backgrounds-basic
No Match for argument: centos-release-advanced-virtualization
No Match for argument: centos-release-ansible26
No Match for argument: centos-release-ansible-27
No Match for argument: centos-release-ansible-28
No Match for argument: centos-release-ansible-29
No Match for argument: centos-release-azure
No Match for argument: centos-release-ceph-jewel
No Match for argument: centos-release-ceph-luminous
No Match for argument: centos-release-ceph-nautilus
No Match for argument: centos-release-ceph-octopus
No Match for argument: centos-release-configmanagement
No Match for argument: centos-release-dotnet
No Match for argument: centos-release-fdio
No Match for argument: centos-release-gluster40
No Match for argument: centos-release-gluster41
No Match for argument: centos-release-gluster5
No Match for argument: centos-release-gluster6
No Match for argument: centos-release-gluster7
No Match for argument: centos-release-gluster8
No Match for argument: centos-release-gluster-legacy
No Match for argument: centos-release-messaging
No Match for argument: centos-release-nfs-ganesha28
No Match for argument: centos-release-nfs-ganesha30
No Match for argument: centos-release-nfv-common
No Match for argument: centos-release-nfv-openvswitch
No Match for argument: centos-release-openshift-origin
No Match for argument: centos-release-openstack-queens
No Match for argument: centos-release-openstack-rocky
No Match for argument: centos-release-openstack-stein
No Match for argument: centos-release-openstack-train
No Match for argument: centos-release-openstack-ussuri
No Match for argument: centos-release-opstools
No Match for argument: centos-release-ovirt42
No Match for argument: centos-release-ovirt43
No Match for argument: centos-release-ovirt44
No Match for argument: centos-release-paas-common
No Match for argument: centos-release-qemu-ev
No Match for argument: centos-release-qpid-proton
No Match for argument: centos-release-rabbitmq-38
No Match for argument: centos-release-samba411
No Match for argument: centos-release-samba412
No Match for argument: centos-release-scl
No Match for argument: centos-release-scl-rh
No Match for argument: centos-release-storage-common
No Match for argument: centos-release-virt-common
No Match for argument: centos-release-xen
No Match for argument: centos-release-xen-410
No Match for argument: centos-release-xen-412
No Match for argument: centos-release-xen-46
No Match for argument: centos-release-xen-48
No Match for argument: centos-release-xen-common
No Match for argument: libreport-centos
No Match for argument: libreport-plugin-mantisbt
No Match for argument: libreport-plugin-rhtsupport
No Match for argument: python3-syspurpose
No Match for argument: python-oauth
No Match for argument: rocky-backgrounds
No Match for argument: rocky-gpg-keys
No Match for argument: rocky-logos
No Match for argument: rocky-release
No Match for argument: sl-logos
No Match for argument: yum-rhn-plugin
Determining fastest mirrors
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: centos-base/7Server/x86_64
Could not install base packages.
Run 'yum distro-sync' to manually install them.
For assistance, please open an issue via GitHub: https://github.com/oracle/centos2ol/.
[root@VJKCTCOG1DEV centos2ol]# yum cleanup
Loaded plugins: fastestmirror, langpacks, versionlock
No such command: cleanup. Please use /bin/yum --help
**
Hi Team,
I'm facing below issue after running the script, can you please let me know what's the issue and how to fix?
One of the configured repositories failed (Unknown), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this:
Cannot find a valid baseurl for repo: centos-base/7Server/x86_64 Could not install base packages. Run 'yum distro-sync' to manually install them. For assistance, please open an issue via GitHub: https://github.com/oracle/centos2ol/.
Full Log: **Checking for required packages... Checking your distribution... epel-release-7-14.noarch Checking for yum lock... Checking for required python packages... Finding your repository directory... Learning which repositories are enabled... Repositories enabled before update include: base centos-base centos-extras centos-override centos-updates epel extras updates Downloading Oracle Linux yum repository file... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 16402 100 16402 0 0 12855 0 0:00:01 0:00:01 --:--:-- 12864 Looking for yumdownloader... Backing up and removing old repository files... Removing CentOS-specific yum configuration from /etc/yum.conf Downloading Oracle Linux release package... Loaded plugins: fastestmirror, langpacks, versionlock Loading mirror speeds from cached hostfile epel/x86_64/metalink | 27 kB 00:00:00
=========================================================================================================================== repo: ol7_optional_latest =========================================================================================================================== [ol7_optional_latest] async = True bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/7Server baseurl = https://yum.oracle.com/repo/OracleLinux/OL7/optional/latest/x86_64/ cache = 0 cachedir = /var/cache/yum/x86_64/7Server/ol7_optional_latest check_config_file_age = True compare_providers_priority = 80 cost = 1000 deltarpm_metadata_percentage = 100 deltarpm_percentage = enabled = 1 enablegroups = True exclude = failovermethod = priority ftp_disable_epsv = False gpgcadir = /var/lib/yum/repos/x86_64/7Server/ol7_optional_latest/gpgcadir gpgcakey = gpgcheck = True gpgdir = /var/lib/yum/repos/x86_64/7Server/ol7_optional_latest/gpgdir gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle hdrdir = /var/cache/yum/x86_64/7Server/ol7_optional_latest/headers http_caching = all includepkgs = ip_resolve = keepalive = True keepcache = False mddownloadpolicy = sqlite mdpolicy = group:small mediaid = metadata_expire = 21600 metadata_expire_filter = read-only:present metalink = minrate = 0 mirrorlist = mirrorlist_expire = 86400 name = Oracle Linux 7Server Optional Latest (x86_64) old_base_cache_dir = password = persistdir = /var/lib/yum/repos/x86_64/7Server/ol7_optional_latest pkgdir = /var/cache/yum/x86_64/7Server/ol7_optional_latest/packages proxy = False proxy_dict = proxy_password = proxy_username = repo_gpgcheck = False retries = 10 skip_if_unavailable = False ssl_check_cert_permissions = True sslcacert = sslclientcert = sslclientkey = sslverify = True throttle = 0 timeout = 30.0 ui_id = ol7_optional_latest/x86_64 ui_repoid_vars = releasever, basearch username =
Installing base packages for Oracle Linux... Loaded plugins: fastestmirror, langpacks, versionlock No Match for argument: centos-backgrounds No Match for argument: centos-gpg-keys No Match for argument: centos-release No Match for argument: centos-release-cr No Match for argument: desktop-backgrounds-basic No Match for argument: centos-release-advanced-virtualization No Match for argument: centos-release-ansible26 No Match for argument: centos-release-ansible-27 No Match for argument: centos-release-ansible-28 No Match for argument: centos-release-ansible-29 No Match for argument: centos-release-azure No Match for argument: centos-release-ceph-jewel No Match for argument: centos-release-ceph-luminous No Match for argument: centos-release-ceph-nautilus No Match for argument: centos-release-ceph-octopus No Match for argument: centos-release-configmanagement No Match for argument: centos-release-dotnet No Match for argument: centos-release-fdio No Match for argument: centos-release-gluster40 No Match for argument: centos-release-gluster41 No Match for argument: centos-release-gluster5 No Match for argument: centos-release-gluster6 No Match for argument: centos-release-gluster7 No Match for argument: centos-release-gluster8 No Match for argument: centos-release-gluster-legacy No Match for argument: centos-release-messaging No Match for argument: centos-release-nfs-ganesha28 No Match for argument: centos-release-nfs-ganesha30 No Match for argument: centos-release-nfv-common No Match for argument: centos-release-nfv-openvswitch No Match for argument: centos-release-openshift-origin No Match for argument: centos-release-openstack-queens No Match for argument: centos-release-openstack-rocky No Match for argument: centos-release-openstack-stein No Match for argument: centos-release-openstack-train No Match for argument: centos-release-openstack-ussuri No Match for argument: centos-release-opstools No Match for argument: centos-release-ovirt42 No Match for argument: centos-release-ovirt43 No Match for argument: centos-release-ovirt44 No Match for argument: centos-release-paas-common No Match for argument: centos-release-qemu-ev No Match for argument: centos-release-qpid-proton No Match for argument: centos-release-rabbitmq-38 No Match for argument: centos-release-samba411 No Match for argument: centos-release-samba412 No Match for argument: centos-release-scl No Match for argument: centos-release-scl-rh No Match for argument: centos-release-storage-common No Match for argument: centos-release-virt-common No Match for argument: centos-release-xen No Match for argument: centos-release-xen-410 No Match for argument: centos-release-xen-412 No Match for argument: centos-release-xen-46 No Match for argument: centos-release-xen-48 No Match for argument: centos-release-xen-common No Match for argument: libreport-centos No Match for argument: libreport-plugin-mantisbt No Match for argument: libreport-plugin-rhtsupport No Match for argument: python3-syspurpose No Match for argument: python-oauth No Match for argument: rocky-backgrounds No Match for argument: rocky-gpg-keys No Match for argument: rocky-logos No Match for argument: rocky-release No Match for argument: sl-logos No Match for argument: yum-rhn-plugin
One of the configured repositories failed (Unknown), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this:
Cannot find a valid baseurl for repo: centos-base/7Server/x86_64 Could not install base packages. Run 'yum distro-sync' to manually install them. For assistance, please open an issue via GitHub: https://github.com/oracle/centos2ol/. [root@VJKCTCOG1DEV centos2ol]# yum cleanup Loaded plugins: fastestmirror, langpacks, versionlock No such command: cleanup. Please use /bin/yum --help **