Repository ‘base’: Error parsing config: Error parsing “gpgkey = 'file”///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7’": No closing quotation There are no enabled repos. Run “yum repolist all” to see the repos you have. To enable Red Hat Subscription Management repositories: subscription-manager repos --enable To enable custom repositories: 是因为在vim编辑的时候,加了注解,我的错误他说是这里的问题,我回去一看回去一看,不知道什么时候把冒号打成了双引号。进去修改了一下,再出来yum clean all 就可以了。