Repository & key management?

Newbie here… I was trying to follow the directions on this page to install Spotify.

curl -sS | sudo apt-key add -
echo “deb stable non-free” | sudo tee /etc/apt/sources.list.d/spotify.list

I got the repository added, but it gave the apt-key deprecated error. I manually imported the key, but I’m still getting an error. Is there a way to resolve this?

Did you connected your template to a netVM? This is in order to get the keys correctly, but it is HIGHLY DISCOURAGE because it was too dangerous to have the netVM connected to the template. It’s up to you to do that.

the template is not connected to a netVM.

Then, connect it to a netVM, or sys-firewall, for the template to retrieve the keys first then add them in to do the installation process.

1 Like

Thanks; connecting first, then running through their steps, and the update / install worked.
(disconnected from the sys-firewall afterward)

As one more thing, I have the tutorial in my blog.

1 Like

bookmarked :slight_smile:

Dont do this.

You can grab the keys in any network connected qube and qvm-copy them in
to the template.

Much better: templates use a proxy for updating - use that proxy to get
the keys.
Look here for one approach.
Create a simple script - get_key

if [ $# != 1 ]
echo "need a search term"

wget "$1" -e use_proxy=on -e https_proxy= -O $1

Then you can fetch keys by name or fingerprint.