How can I get Chef to run apt-get update before running other recipes
You can include the apt recipe in the very beginning: include_recipe ‘apt’ this will run the update command.
You can include the apt recipe in the very beginning: include_recipe ‘apt’ this will run the update command.
Adding a key to /etc/apt/trusted.gpg.d is insecure because it adds the key for all repositories. This is exactly why apt-key had to be deprecated. Short version Do similar to what Signal does. If you want to use the key at https://example.com/EXAMPLE.gpg for a repository listed in /etc/apt/sources.list.d/EXAMPLE.list, use: sudo mkdir -p /etc/apt/keyrings/ wget -O- https://example.com/EXAMPLE.gpg … Read more
It seems the closest is: apt-cache policy