แก้ไขข้อผิดพลาดง่ายๆ “The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key” ที่ปรากฏขึ้นเมื่อพยายามอัปเดตแพ็คเกจบนระบบ Debian
Err:10 https://packages.sury.org/php bullseye InRelease
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
Fetched 14.1 kB in 1s (14.5 kB/s)
Reading package lists... Done
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 <deb@sury.org>
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 <deb@sury.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.
จุดบกพร่องนี้ยังป้องกันไม่ให้แพ็คเกจอัปเดตบนเซิร์ฟเวอร์ Debian ด้วย Wordอ๊ะ. -wo stack upgrade
).
ที่เกี่ยวข้อง วิธีติดตั้งและกำหนดค่า LEMP บน Debian 12
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key
ข้อผิดพลาดนี้เกิดขึ้นเนื่องจาก sury.org เปลี่ยนคีย์ลายเซ็นดิจิทัลสำหรับ Debian และเพื่อแก้ไขปัญหา คุณต้องดาวน์โหลดคีย์ใหม่
apt-key adv --fetch-keys https://packages.sury.org/php/apt.gpg
หลังจากรันคำสั่งนี้ คุณสามารถอัปเดตแพ็คเกจ Debian ทั้งหมดได้:
apt update && apt upgrade
ผู้ที่ใช้ WordOps จะรันบรรทัดคำสั่ง:
wo stack upgrade
ทุกอย่างจะทำงานได้โดยไม่มีปัญหาในการอัพเดตแพ็คเกจบน Debian