matiasdelellis / facerecognition

Nextcloud app that implement a basic facial recognition system.
GNU Affero General Public License v3.0
500 stars 45 forks source link

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). #701

Open subterfugium opened 9 months ago

subterfugium commented 9 months ago

When following guide for Ubuntu 22.04 to install pdlib PHP extension via repo: https://github.com/matiasdelellis/facerecognition/wiki/PDlib-Installation

Expected behaviour

After adding repos to Ubuntu 22.04 we should not see any warnings

Actual behaviour

Warning is generated.

wget -qO - https://repo.delellis.com.ar/repo.gpg.key | sudo apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).

Steps to reproduce

1. wget -qO - https://repo.delellis.com.ar/repo.gpg.key | sudo apt-key add -

Server configuration

Client configuration

Logs

No need for logs

subterfugium commented 9 months ago

I followed this guide: https://stackoverflow.com/questions/68992799/warning-apt-key-is-deprecated-manage-keyring-files-in-trusted-gpg-d-instead

And ended up with:

sudo mkdir -p /etc/apt/keyrings/
wget -O- https://repo.delellis.com.ar/repo.gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/php-pdlib.gpg > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/php-pdlib.gpg arch=amd64] https://repo.delellis.com.ar jammy jammy" | sudo tee /etc/apt/sources.list.d/php-pdlib.list

And I get no warnings anymore.

Tested with

sudo apt remove php8.1-pdlib
sudo apt install php8.1-pdlib