签到成功

知道了

CNDBA社区CNDBA社区

Linux Yum 报错 Public key for …… is not installed 解决方法

2020-12-27 21:57 2207 0 原创 Linux
作者: dave

在Linux 中用Yum 安装java,报如下错误:http://www.cndba.cn/cndba/dave/article/4339http://www.cndba.cn/cndba/dave/article/4339http://www.cndba.cn/cndba/dave/article/4339

http://www.cndba.cn/cndba/dave/article/4339
http://www.cndba.cn/cndba/dave/article/4339

[dave@www.cndba.cn software]# yum install -y java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64
……
Public key for ttmkfdir-3.0.9-32.1.el6.x86_64.rpm is not installed
[dave@www.cndba.cn software]#

yum 使用多年,第一次遇到这个问题,其实还是偷懒导致的,在yum源中配置gpgcheck=0导致的,修改gpgcheck 为0后,重新安装解决问题。 http://www.cndba.cn/cndba/dave/article/4339

http://www.cndba.cn/cndba/dave/article/4339

[dave@www.cndba.cn software]# vim /etc/yum.repos.d/CentOS-Base.repo
[dave@www.cndba.cn software]# cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=www.cndba.cn
baseurl=file:///mnt
gpgcheck=0
[dave@www.cndba.cn software]#

Linux 平台下 yum 源 配置 手册
https://www.cndba.cn/dave/article/154http://www.cndba.cn/cndba/dave/article/4339http://www.cndba.cn/cndba/dave/article/4339http://www.cndba.cn/cndba/dave/article/4339

版权声明:本文为博主原创文章,未经博主允许不得转载。

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
dave

dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 2261
    原创
  • 3
    翻译
  • 578
    转载
  • 191
    评论
  • 访问:8023205次
  • 积分:4346
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ