| 93 | ===Pojawiające się problemy=== |
| 94 | Po aktualizacji może pojawić się komunikat: |
| 95 | {{{ |
| 96 | W: https://packages.sury.org/php/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. |
| 97 | }}} |
| 98 | |
| 99 | Wyświetlamy listę kluczy: |
| 100 | {{{ |
| 101 | sudo apt-key list |
| 102 | Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). |
| 103 | /etc/apt/trusted.gpg |
| 104 | -------------------- |
| 105 | pub rsa3072 2019-03-18 [SC] [wygasa: 2024-02-16] |
| 106 | 1505 8500 A023 5D97 F5D1 0063 B188 E2B6 95BD 4743 |
| 107 | uid [ nieznane ] DEB.SURY.ORG Automatic Signing Key <deb@sury.org> |
| 108 | sub rsa3072 2019-03-18 [E] [wygasa: 2024-02-16] |
| 109 | }}} |
| 110 | |
| 111 | Następnie usuwamy klucz |
| 112 | {{{ |
| 113 | sudo apt-key del 95BD4743 |
| 114 | }}} |
| 115 | |
| 116 | I ponownie dodajemy klucz z PHP |
| 117 | {{{ |
| 118 | apt -y install apt-transport-https lsb-release ca-certificates curl wget gnupg2 |
| 119 | |
| 120 | wget -qO- https://packages.sury.org/php/apt.gpg | \ |
| 121 | gpg --dearmor > /etc/apt/trusted.gpg.d/sury-php-x.x.gpg |
| 122 | }}} |