My Oracle Support Banner

OL8: Typing an Invalid Command Results in yum/repo/related Error Message like "bash: junk_junk: command not found... Failed to search for file: cannot update repo 'ol8_baseos_latest': Cannot download repomd.xml" (Doc ID 2596425.1)

Last updated on FEBRUARY 26, 2020

Applies to:

Linux OS - Version Oracle Linux 8.0 and later
Linux x86-64

Symptoms

On newly installed OL8, noticed anytime a typo happens, and a command is NOT found, an additional error is printed to bash terminal as below:

[root@testc188 ~]# uname -r
4.18.0-80.7.2.el8_0.x86_64
[root@testc188 ~]# cat /etc/oracle-release
Oracle Linux Server release 8.0
[root@testc188 ~]# junk_junk
bash: junk_junk: command not found...
Failed to search for file: cannot update repo 'ol8_baseos_latest': Cannot
download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[root@testc188 ~]# ls -l /etc/yum.repos.d/
total 4
-rw-r--r--. 1 root root 1174 Jul 9 12:44 oracle-linux-ol8.repo
--- Default yum channels enabled ---
[ol8_baseos_latest]
name=Oracle Linux $releasever BaseOS Latest ($basearch)
baseurl=https://yum$ociregion.oracle.com/repo/OracleLinux/OL8/baseos/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[ol8_appstream]
name=Oracle Linux $releasever Application Stream ($basearch)
baseurl=https://yum$ociregion.oracle.com/repo/OracleLinux/OL8/appstream/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

Changes

 New installation

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
 -> The unset function is a fix just for that single shell/login.
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.