动态 版块 发帖 消息 我的
小绿叶技术博客
小绿叶技术博客
小绿叶技术Lv154   
ubuntu centos yum update 或者 apt update 错误: NO_PUBKEY 解决方案     

public key is not available: NO_PUBKEY F57D4F59BD3DF454




apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F57D4F59BD3DF454

# ubuntu 解决方案: 将报错的这个key,添加这个 key


yum adv --recv-keys --keyserver keyserver.ubuntu.com F57D4F59BD3DF454

# centos 解决方案: 添加这个 key




配置 apt 仓库源:http://eisc.cn/index.php?c=read&id=1070&page=1&cache=refresh

清华apt 源选择版本:https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/


vi /etc/apt/sources.list


# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse

# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse

# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse

# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse

# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse


# 预发布软件源,不建议启用

# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse

# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse



apt update       # 更新apt 源

 0  已被阅读了1125次  楼主 2022-04-08 15:23:12
回复列表

回复: ubuntu centos yum update 或者 apt update 错误: NO_PUBKEY 解决方案

guest
登录之后更精彩~
Powered by HadSky 7.12.10
© 2015-2024 PuYueTian
您的IP:34.236.191.0,2024-05-30 09:17:40,Processed in 0.0151 second(s).
Powered by HadSky
小绿叶技术博客