facerecognition icon indicating copy to clipboard operation
facerecognition copied to clipboard

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

Open subterfugium opened this issue 2 years ago • 1 comments
trafficstars

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

  • Operating system: Ubuntu 22.04

  • Pdlib version: 1.0.2-1ubuntu1

  • How is DLib installed: Make sure it is working correctly with this tool Ubuntu Repo

  • How is PDlib installed: Make sure it is working correctly with this tool Ubuntu Repo

  • PHP version:

  • 8.1

  • Web server: nginx

  • Database: postgresql

  • Nextcloud version: 27

Client configuration

  • Browser: Firefox

  • Operating system: Ubuntu 22.04

Logs

No need for logs

subterfugium avatar Oct 01 '23 16:10 subterfugium

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

subterfugium avatar Oct 01 '23 16:10 subterfugium