Fedora Server 29
修改源
建议使用国内源,比如阿里云镜像源https://opsx.alibaba.com/mirror,
包括fedora.repo和fedora-update.repo
http://mirrors.aliyun.com/repo/fedora.repo
http://mirrors.aliyun.com/repo/fedora-updates.repo
# curl -o /etc/yum.repos.d/fedora.repo http://mirrors.aliyun.com/repo/fedora.repo
# curl -o /etc/yum.repos.d/fedora-updates.repo http://mirrors.aliyun.com/repo/fedora-updates.repo
# yum makecache
遇到的问题
- [Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64]
解决方法:
[root@localhost ~]# ls /etc/pki/rpm-gpg/ |grep fedora-29
RPM-GPG-KEY-fedora-29-aarch64
RPM-GPG-KEY-fedora-29-armhfp
RPM-GPG-KEY-fedora-29-i386
RPM-GPG-KEY-fedora-29-ppc64
RPM-GPG-KEY-fedora-29-ppc64le
RPM-GPG-KEY-fedora-29-primary
RPM-GPG-KEY-fedora-29-s390x
RPM-GPG-KEY-fedora-29-x86_64
[root@localhost ~]# rpmkeys --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-29-primary
[root@localhost ~]# rpmkeys --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-29
- 未完待续