Ricks-Lab / gpu-utils

A set of utilities for monitoring and customizing GPU performance
GNU General Public License v3.0
139 stars 23 forks source link

Warning: apt-key is deprecated in Ubuntu 22.04 #129

Closed Ricks-Lab closed 2 years ago

Ricks-Lab commented 2 years ago

Install from rickslab.com now produces a deprecation warning on Ubuntu 22.04:

W: https://debian.rickslab.com/gpu-utils/dists/eddore/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

Indications are that a shared keyring should be used instead. I found that this set of commands will add the key to a shared key ring and associate the shared key with the repository:

wget -q -O - https://debian.rickslab.com/PUBLIC.KEY | sudo gpg --dearmour -o /usr/share/keyrings/rickslab-agent.gpg

echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/rickslab-agent.gpg] https://debian.rickslab.com/gpu-utils/ eddore main' | sudo tee /etc/apt/sources.list.d/rickslab-gpu-utils.list

Afterwards, I suggest removing the original key with this command:

sudo apt-key del C98B8839

Let me know of any issues or recommendations to do this in a better way.

Ricks-Lab commented 2 years ago

I have updated the installation guide.