Unable to run Yum update on RHEL 7.3

Latest response

Hi, I have just installed RHEL 7.3 in Oracle VM (OVM) and subscribed to Redhat (Subscription Manager) sucessfully, but when i do yum update i see below error directly.

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager

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= ...

  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=

  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
    

Responses

Hi Shiva,

You seem to have added and enabled an external repository ("Unknown"). Remove this repository and execute :

sudo yum clean all
sudo rm -r /var/cache/yum
sudo yum update

Oh, and by the way ... why did you install the outdated version 7.3 and not the latest stable edition RHEL 7.6 ? :)

Regards,
Christian

Oh, and by the way ... why did you install the outdated version 7.3 and not the latest stable edition RHEL 7.6 ? :) It's because of my client requirement..

I tried the below commands as mentioned, but still no luck sudo yum clean all sudo rm -r /var/cache/yum sudo yum update

It shows the error (Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again) followed by the earlier messages Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager

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 retrieve metalink for repository: epel/x86_64. Please verify its path and try again

Hi Shiva,

The EPEL repository is the culprit (it should be a temporary issue) ... disable it and execute the commands again. :)

Regards,
Christian

Hi Chris, I do disabled the epel repository but still see below issue

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2404:6800:4007:810::200e: Network is unreachable" Trying other mirror. http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-tools-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-tools-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-tools-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-tools-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-tools-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-tools-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-tools-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-tools-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-tools-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-tools-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.mysql.com:80; Connection refused" Trying other mirror. rhel-7-server-rpms/7Server/x86_64 | 3.5 kB 00:00:00
rhel-7-server-rpms/7Server/x86_64/group | 774 kB 00:00:00
rhel-7-server-rpms/7Server/x86_64/updateinfo | 3.2 MB 00:00:01
rhel-7-server-rpms/7Server/x86_64/primary_db | 57 MB 00:00:25
repo id repo name status google-chrome google-chrome 0 mysql-connectors-community/x86_64 MySQL Connectors Community 0 mysql-tools-community/x86_64 MySQL Tools Community 0 mysql57-community/x86_64 MySQL 5.7 Community Server 0 rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 24,400 repolist: 24,400

Hi Shiva,

Seems you have to disable the Google Chrome and the MySQL repositories as well - disable ALL external
repositories, run the commands again, and then check the settings of the external repositories and enable
one repository after the other. I assume when all external repos are disabled, yum update will succeed ... :)

Regards,
Christian