Debian11 apt 更新无效的错误 作者: Hogwarts 发布于: 2025-05-22 更新于: 2025-11-17 分类: 默认分类 #apt update 显示错误 Err:4 https://packages.sury.org/php bullseye InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743 Hit:9 https://dlm.mariadb.com/repo/maxscale/latest/apt bullseye InRelease Hit:6 https://downloads.mariadb.com/Tools/debian bullseye InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743 W: Failed to fetch https://packages.sury.org/php/dists/bullseye/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743 W: Some index files failed to download. They have been ignored, or old ones used instead. 翻译成白话文 https://packages.sury.org/php bullseye InRelease 由于公钥不可用,无法验证以下签名:NO_PUBKEY B188E2B695BD4743 #解决办法 apt-get update apt-get -y install lsb-release ca-certificates curl curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb dpkg -i /tmp/debsuryorg-archive-keyring.deb sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' apt update && apt upgrade -y 抄录地址 [解决 apt-get update 从 packages.sury.org 更新 apache2 与 php 时签名无效的错误](https://bohu.net/blog/10052/ "解决 apt-get update 从 packages.sury.org 更新 apache2 与 php 时签名无效的错误") #apt update 显示错误 E: The repository 'https://deb.debian.org/debian bullseye-backports Release' no longer has a Release file. 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. #解决办法 echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list sed -i s/security.debian.org/archive.debian.org/g /etc/apt/sources.list apt update && apt upgrade -y 标签: none