debain11安装mysql报错一例

W: GPG error: http://repo.mysql.com/apt/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 467B942D3A79BD29
E: The repository 'http://repo.mysql.com/apt/debian bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

 找准错误提示:

The following signatures couldn’t be verified because the public key is not available

红框处 写你的报错KEY

命令是:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 你的KEY

然后apt update 就好了 

之后直接安装sudo apt install -y mysql-server

就可以了

 本文参考了(116条消息) ubuntu换源更新失败:The following signatures couldn‘t be verified because the public key is not available_sxiaocaicai的博客-CSDN博客

 

posted @   zhg1016  阅读(1441)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
· 三行代码完成国际化适配,妙~啊~
点击右上角即可分享
微信分享提示