在使用银河麒麟系统时会时不时的安装程序,yum命令是最方便快捷的命令,但是在使用的过程中出现了Failed to download metadata for repo 'ks10-adv-os’这样的报错如何解决呢?
经过了多次的尝试,小编终于成功解决,下面的是具体解决办法:
cd /etc/yum.repos.d
cp kylin_aarch64.repo kylin_aarch64.repo.bak
输入命令:vim kylin_aarch64.repo
删除原代码,将下列代码复制过去
[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
reposync -v --installroot /opt/aarch64/
完成后可以看到,yum install 程序名 可正常下载,不会报错了