DEBIAN:apt-get update:证书验证错误

DEBIAN:apt-get update:证书验证错误

我想升级我的 Debian 9 版本。遵循此程序:https://www.debian.org/doc/manuals/debian-faq/uptodate.en.html

当我启动时apt-get update,我收到以下错误:

Réception de:1 http://repo.mysql.com/apt/debian jessie InRelease [28,8 kB]
Réception de:3 http://ftp.fr.debian.org/debian buster InRelease [122 kB]
Ign:2 https://packages.dotdeb.org jessie InRelease
Err:1 http://repo.mysql.com/apt/debian jessie InRelease
  Les signatures suivantes ne sont pas valables : EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering <[email protected]>
Ign:3 http://ftp.fr.debian.org/debian buster InRelease
Err:4 https://packages.dotdeb.org jessie Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Lecture des listes de paquets... Fait
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com/apt/debian jessie InRelease: Les signatures suivantes ne sont pas valables : EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering <[email protected]>
W: Erreur de GPG : http://ftp.fr.debian.org/debian buster InRelease : Les signatures suivantes n'ont pas pu être vérifiées car la clé publique n'est pas disponible : NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY DCC9EFBF77E11517
W: The repository 'http://ftp.fr.debian.org/debian buster InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://packages.dotdeb.org jessie Release' does no longer have 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.
root@colinweb:/# apt-get update

请参阅屏幕截图以了解颜色: apt-get 更新错误屏幕截图

这是我的/etc/apt/sources.list内容:

deb http://ftp.fr.debian.org/debian/ stable main contrib

我还尝试从这篇文章启动此命令https://askubuntu.com/questions/277793/getting-server-certificate-verification-failed-during-apt-get-update/277796#277796: apt-get update -o Acquire::https::mirror.ufs.ac.za::Verify-Peer=false

但我得到同样的错误。

答案1

这里有关于需要做什么的解释: https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#repo-qg-apt-repo-manual-setup

基本上你需要运行这个命令:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8C718D3B5072E1F5

对于 Debian 9,您的系统中应该有以下内容/etc/apt/sources.list文件:

deb http://ftp.fr.debian.org/debian/ stretch main
deb-src http://ftp.fr.debian.org/debian/ stretch main

deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main

答案2

我将屏幕截图作为答案发布,以便您可以看到。

命令结果 命令结果2

相关内容