The situation encountered
My error is really oraclelinux 64bit install Oracle 11g, use the Yum to install the necessary tools when the error, I solve the problem is the direct- Mount CD
Specific situation:
Error when downloading GCC using yuminstall–y gcc*: [Errno-1] Metadata file does not match checksum, as shown in the following figure:
The error message means that the metadata file does not match
This error from the root or Yum is not configured, so we just need to check our Yum configuration file.
To mount an iOS CD:
Locate the virtual machine settings and specify that you want to use the ISO image file (I use this iOS that installs Linux directly):
And then go to the Linux desktop and see this icon to prove the mount is successful.
At the command line, enter: Rf–h can view the disk's mount, as shown in figure:
We have seen the catalogue of this mounted ISO in the/DEV/SR0 directory, we can create a/server directory under the root directory (directory name casually, command for; mkdir/server), and then mount the CD file in the/dev/sr0 directory to/ Server this directory, the command is: Mount/dev/sr0/server
Configure Yum
Enter ETC/YUM.REPOS.D directory, enter LS I see here are two files (Packagekit-media.repo and Public-yum-ol6.repo):
As long as the suffix name is. repo file, Yum will go to match, so just find a change can be.
After you use VIM filename to enter the file, either kill it directly, and then add the following:
[Server]---write casually
Name=oracle---name, whatever.
Baseurl=file:///server--Specify where to mount the disc
Gpgcheck=0---Check the data element (1 check, 0 do not check)
Enabled=1-enabled (1 enabled, 0 not enabled)
After modifying the save, use the command Yumclean all to clear the Yum
Then use command Yumupgrade to update, encounter input, select No:
Note: If you encounter a thread that is occupied and cannot be updated, enter the/etc/ YUM.REPOS.D directory, find the repo file that has not been modified, modify his suffix name (the suffix name here is changed, as long as it is not a. repo file), and then update it again.
After the update is finished, use yum install-y gcc* to download it.