更新系统sury问题解决 作者: Hogwarts 发布于: 2023-06-18 更新于: 2024-04-22 分类: 默认分类 #运行 apt update && apt upgrade -y #显示 E: Failed to fetch https://packages.sury.org/php/dists/buster/main/binary-amd64/Packages.gz File has unexpected size (402473 != 402461). Mirror sync in progress? [IP: 143.244.50.90 443] Hashes of expected file: - Filesize:402461 [weak] - SHA256:de77b93ade1524e4501959343514fccae46971cd01f25a1dc2f22100981417b8 - SHA1:331a8977627015b1424d6b285bd8490e11d0359c [weak] - MD5Sum:1ede52a9bf7875b1e8311af7ae45a891 [weak] Release file created at: Sun, 18 Jun 2023 00:00:12 +0000 E: Some index files failed to download. They have been ignored, or old ones used instead. #解决 rm -rf /var/lib/apt/lists/* rm -rf /etc/apt/sources.list.d/* #显示 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 were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key W: Failed to fetch https://packages.sury.org/php/dists/bullseye/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key W: Some index files failed to download. They have been ignored, or old ones used instead. #解决 apt-key adv --fetch-keys 'https://packages.sury.org/php/apt.gpg' > /dev/null 2>&1 标签: debian, sury