# Apt addition methods are not being adhered to causing errors Cloudmin Debian 12

**URL:** <https://forum.virtualmin.com/t/apt-addition-methods-are-not-being-adhered-to-causing-errors-cloudmin-debian-12/123632>\
**Category:** Cloudmin\
**Created:** [November 25, 2023, 6:11am UTC](https://forum.virtualmin.com/t/apt-addition-methods-are-not-being-adhered-to-causing-errors-cloudmin-debian-12/123632 "2023-11-25T06:11:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![forlotto](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/forlotto/32/12067_2.png) [@forlotto](https://forum.virtualmin.com/u/forlotto)\
**Post date:** [November 25, 2023, 6:11am UTC](https://forum.virtualmin.com/t/apt-addition-methods-are-not-being-adhered-to-causing-errors-cloudmin-debian-12/123632/1 "2023-11-25T06:11:15Z")

</div>

Might want to update the way you add .asc files or apt keys so that we don’t get these error messages and have people breaking stuff that isn’t broken because they are getting error messages. Supposedly the method was changed to improve upon security.

So if that is true we need to ensure also that folks are secure as they can be out of the box.

Here is the proper way to add keys so you don’t get error messages…  
ONLY AN EXAMPLE:

`curl -sS https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/spotify.gpg`

We are currently installing keys using a depreciated method thus giving these error messages afaik it shouldn’t give you errors about not being right should probably update it so you bypass error messages making customers think they’ve done something wrong or stuff isn’t working etc…

Unless of course there is something that prohibits you from doing so on the script. I know Ubuntu I believe has the same type of issues from what I can tell. Its all about how keys are installed the method has changed for security purposes. News to me.

But if you’d like more info on this visit: [[Fixed] apt-key is deprecated. Manage keyring files in trusted.gpg.d](https://itsfoss.com/apt-key-deprecated/)

I think that may help users from fiddling around trying to fix what isn’t broke and winding up in key smashing battle to get things safe and sound again and it’ll save you the headaches of answering support related questions to this maybe?

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [January 24, 2024, 6:11am UTC](https://forum.virtualmin.com/t/apt-addition-methods-are-not-being-adhered-to-causing-errors-cloudmin-debian-12/123632/2 "2024-01-24T06:11:19Z")

</div>

Closed on January 24, 2024, 6:11am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
