OCI: Two OS Versions Are Displayed in "cat /etc/oracle-release" Command Output
in Linux
Applies to:
Oracle Cloud Infrastructure
Linux OS
Symptoms
Two different OS versions are displayed in "cat /etc/oracle-release" command output:
# cat /etc/oracle-release
Oracle Linux Server 8.7
#Oracle Linux Server 7.9
Cause
The below commented entry was manually added to the /etc/oracle-release file.
#Oracle Linux Server 7.9
Solution
1) Remove the erroneous entry or any extra OS version entry from “/etc/oracle-release” file:
#Oracle Linux Server 7.9
2) Save the file and run cat /etc/oracle-release
, it should show only the correct OS version output:
# cat /etc/oracle-release Oracle Linux Server release 8.9
Tagged:
0