小编use*_*267的帖子

无法搜索文件:无法为 repo 'mariadb-main' 下载 gpg 密钥:Curl 错误 (37)

我使用此处给出的说明在装有 CentOS 的计算机上安装了 MariaDB:

MariaDB 包存储库设置和使用 - MariaDB 知识库

我使用的基本命令是:

sudo yum install MariaDB-server MariaDB-client  
Run Code Online (Sandbox Code Playgroud)

而且我没有安装 Maxscale 或 percona。

MariaDB 安装已成功完成,但现在如果我在 bash shell 中输入尚未卸载的命令,则会收到此错误:

Failed to search for file: Failed to download gpg key for repo 'mariadb-main': Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/MariaDB-Server-GPG-KEY [Couldn't open file /etc/pki/rpm-gpg/MariaDB-Server-GPG-KEY]
Run Code Online (Sandbox Code Playgroud)

例如,如果我输入命令 ftp,以前我会收到一条消息,指示 ftp 未安装,并且我会得到一些关于我的意思和想要下载的命令的建议。但是,现在我明白了:

[username@localhost ~]$ ftp
bash: ftp: command not found...
Failed to search for file: Failed to download gpg key for repo 'mariadb-main': Curl error (37):     Couldn't …
Run Code Online (Sandbox Code Playgroud)

yum centos mariadb

4
推荐指数
2
解决办法
1956
查看次数

标签 统计

centos ×1

mariadb ×1

yum ×1