Repository & key management?

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

curl -sS https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | sudo apt-key add -
echo “deb http://repository.spotify.com 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?
Thanks!

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

#!/usr/bin/sh
if [ $# != 1 ]
then
echo "need a search term"
exit
fi

wget "https://keyserver.ubuntu.com/pks/lookup?op=get&search=$1" -e use_proxy=on -e https_proxy=127.0.0.1:8082 -O $1

Then you can fetch keys by name or fingerprint.