GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

此类问题大多是系统中没有RPM-GPG-KEY-xxx这个文件

进入相应的.repo文件中

找到baseurl的值

mysql.repo

[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


找到

baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/

一般gpgkey都在地址的根目录中

进入http://repo.mysql.com/找到RPM-GPG-KEY-mysql下载下来

放入etc/pki/rpm-gpg/中

wget http://repo.mysql.com/RPM-GPG-KEY-mysql -O /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

猜你喜欢

转载自blog.csdn.net/muziwenrong/article/details/71439911
gpg