Author Archive phunsanit

Byphunsanit

nginx: W: http://nginx.org/packages/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

เจออันนี้ระหว่างที่ update package โดยใช้ sudo apt-get update จะตอบมาโดยมีข้อความว่า
W: http://nginx.org/packages/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
ถึงเป็นแค่คำเตือน แต่ถ้าแก้ได้โดยใช้คำสั่งง่าย ๆ

cd /etc/apt
sudo cp trusted.gpg trusted.gpg.d

เท่านี้ก็แก้ warning ได้แล้ว

อ่านเพิ่มเติม
apt-key deprecation warning when updating system: “Key is stored in legacy trusted.gpg keyring”