Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script failed to run with the error for yum #168

Open
vijayakrishnarajesh opened this issue Oct 18, 2023 · 0 comments
Open

Script failed to run with the error for yum #168

vijayakrishnarajesh opened this issue Oct 18, 2023 · 0 comments

Comments

@vijayakrishnarajesh
Copy link

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?

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

  • centos-base: download.cf.centos.org
  • centos-extras: download.cf.centos.org
  • centos-updates: download.cf.centos.org
  • epel: d2lzkl7pfhq30w.cloudfront.net
    centos-base | 3.6 kB 00:00:00
    centos-extras | 2.9 kB 00:00:00
    centos-override | 3.4 kB 00:00:00
    centos-updates | 2.9 kB 00:00:00
    ol7_UEKR5 | 3.0 kB 00:00:00
    ol7_latest | 3.6 kB 00:00:00
    (1/5): ol7_UEKR5/x86_64/updateinfo | 407 kB 00:00:00
    (2/5): ol7_latest/x86_64/group_gz | 136 kB 00:00:00
    (3/5): ol7_latest/x86_64/updateinfo | 3.5 MB 00:00:00
    (4/5): ol7_UEKR5/x86_64/primary_db | 72 MB 00:00:01
    (5/5): ol7_latest/x86_64/primary_db | 48 MB 00:00:01
    warning: /tmp/tmp.QrmlDZomE8/oraclelinux-release-7.9-1.0.11.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
    Public key for oraclelinux-release-7.9-1.0.11.el7.x86_64.rpm is not installed
    (1/3): oraclelinux-release-7.9-1.0.11.el7.x86_64.rpm | 63 kB 00:00:00
    (2/3): redhat-release-server-7.9-6.0.1.el7_9.x86_64.rpm | 12 kB 00:00:00
    (3/3): oraclelinux-release-el7-1.0-17.el7.x86_64.rpm | 22 kB 00:00:00
    Switching old release package with Oracle Linux...
    warning: oraclelinux-release-7.9-1.0.11.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
    warning: /etc/yum/vars/infra saved as /etc/yum/vars/infra.rpmsave
    warning: file /etc/yum.repos.d/CentOS-x86_64-kernel.repo: remove failed: No such file or directory
    warning: file /etc/yum.repos.d/CentOS-fasttrack.repo: remove failed: No such file or directory
    warning: file /etc/yum.repos.d/CentOS-Vault.repo: remove failed: No such file or directory
    warning: file /etc/yum.repos.d/CentOS-Sources.repo: remove failed: No such file or directory
    warning: file /etc/yum.repos.d/CentOS-Media.repo: remove failed: No such file or directory
    warning: file /etc/yum.repos.d/CentOS-Debuginfo.repo: remove failed: No such file or directory
    warning: file /etc/yum.repos.d/CentOS-CR.repo: remove failed: No such file or directory
    warning: file /etc/yum.repos.d/CentOS-Base.repo: remove failed: No such file or directory
    Enabling ol7_latest,ol7_optional_latest which replaces updates
    Loaded plugins: fastestmirror, langpacks, versionlock
    =============================================================================================================================== repo: ol7_latest ================================================================================================================================
    [ol7_latest]
    async = True
    bandwidth = 0
    base_persistdir = /var/lib/yum/repos/x86_64/7Server
    baseurl = https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/
    cache = 0
    cachedir = /var/cache/yum/x86_64/7Server/ol7_latest
    check_config_file_age = True
    compare_providers_priority = 80
    cost = 1000
    deltarpm_metadata_percentage = 100
    deltarpm_percentage =
    enabled = True
    enablegroups = True
    exclude =
    failovermethod = priority
    ftp_disable_epsv = False
    gpgcadir = /var/lib/yum/repos/x86_64/7Server/ol7_latest/gpgcadir
    gpgcakey =
    gpgcheck = True
    gpgdir = /var/lib/yum/repos/x86_64/7Server/ol7_latest/gpgdir
    gpgkey = file:https:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    hdrdir = /var/cache/yum/x86_64/7Server/ol7_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 Latest (x86_64)
    old_base_cache_dir =
    password =
    persistdir = /var/lib/yum/repos/x86_64/7Server/ol7_latest
    pkgdir = /var/cache/yum/x86_64/7Server/ol7_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_latest/x86_64
    ui_repoid_vars = releasever,
    basearch
    username =

=========================================================================================================================== 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:https:///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

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
**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant