In the use of Yinhe Kirin system will be installed from time to time, yum command is the most convenient and fast command, but in the process of using the Failed to download metadata for repo ‘ks10-adv-os’ such an error how to solve it?
After several attempts, I finally succeeded in solving it, and the following is the specific solution.
Enter the yum source file directory
cd /etc/yum.repos.d
Back up the yum source files
cp kylin_aarch64.repo kylin_aarch64.repo.bak
Modify the contents of the source file
Enter the command: vim kylin_aarch64.repo
Delete the original code and copy the following code over
[ks10-adv-os] name = Kylin Linux Advanced Server 10 - Os baseurl = http://archive2.kylinos.cn/rpm/kylin/production/KY-KY10-GFB-aarch64/custom/kylin-server/KY10-GFB-aarch64/ #baseurl = http://update.cs2c.com.cn:8080/NS/V10/V10SP1/os/adv/lic/base/$basearch/ gpgcheck = 0 enabled = 1 [ks10-adv-updates] name = Kylin Linux Advanced Server 10 - Updates baseurl = http://update.cs2c.com.cn:8080/NS/V10/V10SP1/os/adv/lic/updates/$basearch/ gpgcheck = 0 enabled = 0 [ks10-adv-addons] name = Kylin Linux Advanced Server 10 - Addons baseurl = http://update.cs2c.com.cn:8080/NS/V10/V10SP1/os/adv/lic/addons/$basearch/ gpgcheck = 0 enabled = 0
Use the download command:
reposync -v –installroot /opt/aarch64/
After completion, you can see that the yum install program name can be downloaded normally, no error will be reported
Read More:
- yum: Error: Failed to download metadata for repo ‘aliyun-AppStream‘: Cannot download repomd.xml
- [Solved] Error: Failed to download metadata for repo ‘appstream‘
- [Solved] yum Command Error: Error: Failed to download metadata for repo ‘appstream‘
- Euopenler 21.09 sudo Yum Update Error: Errors during downloading metadata for repository ‘EPOL’
- [Solved] Some index files failed to download.They have been ignored, or old ones used instead
- Ansible Use yum module to install rpm Error: Request failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate v
- [Solved] docker Error: System has not been booted with systemd as init system (PID 1). Can‘t operate. Failed to con
- [Solved] Ubuntu Compile Rust Program Error: failed to run custom build command for openssl-sys v0.9.39
- Initializing the Kubernetes master node ERROR: failed to pull image registry.aliyuncs.com/google_containers/coredns:v1.8.0
- CentOS Yum error: cannot retrieve repository metadata (repomd.xml) for repository:
- WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
- [Solved] failed to start remount root and kernel file system
- How to Download APK Files from Google Play Store
- Linux system service command error: Failed to allocate directory watch: Too many open files
- How to Solve Xmind Install Error in Ubuntu System
- [Solved] Docker Download Mirror Error: Cannot connect to the Docker daemon at…
- System has not been booted with systemd as init system (PID 1). Can‘t operate
- [Solved] KingbaseES V8R3 Error: cluster.log ERROR: md5 authentication failed
- How to Solve Ubuntu “Failed to fetch” Error
- Shell: How to Get System Current Tme and Format it