Giải quyết lỗi đơn giản “The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key” xuất hiện khi bạn cố gắng cập nhật các gói trên các hệ thống Debian.
Err:10 https://packages.sury.org/php bullseye InRelease
  The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]>
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 <[email protected]>
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 <[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.Lỗi này cũng ngăn chặn các gói cập nhật trên các máy chủ Debian với Wordops. .wo stack upgrade).
Có liên quan: Cách cài đặt và định cấu hình LEMP trên Debian 12
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key
Lỗi này xuất hiện do sury.org đã thay đổi khóa sang chữ ký số cho Debian và để khắc phục sự cố bạn phải tải xuống khóa mới.
apt-key adv --fetch-keys https://packages.sury.org/php/apt.gpgKhi bạn thực hiện thứ tự này, bạn có thể cập nhật tất cả các gói Debian:
apt update && apt upgradeNhững người sử dụng Wordops sẽ thực thi dòng lệnh:
wo stack upgradeMọi thứ sẽ hoạt động trơn tru trong việc cập nhật các gói trên Debian.
 
			