Using Yum to install errors under Oracle Linux: [Errno-1] Metadata file does not match checksum____ applet

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.