Announcements

Help Wizard

Step 1

NEXT STEP

puppet apt: “The following packages cannot be authenticated! spotify-client”

puppet apt: “The following packages cannot be authenticated! spotify-client”

I am trying to install the [spotify-client][1] using their repository on Ubuntu 16.04 via puppet's [apt][2] module:

      include apt
    
      apt::source { 'spotify-repo':
    		location => 'http://repository.spotify.com',
    		release	 => 'stable',
    		repos    => 'non-free',
    		key 		 => {
    			id      => '0DF731E45CE24F27EEEB1450EFDC8610341D9410',
    			server  => 'hkp://keyserver.ubuntu.com:80',
    		},
      }
    
      package { 'spotify-client':
        ensure  => latest,
        require => [ Class['apt::update'], Apt::Source['spotify-repo'] ],
      }



However I am getting this error:

> Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o
> DPkg::Options::=--force-confold install spotify-client' returned 100:
> Reading package lists... Building dependency tree...
>
> ...
>
> WARNING: The following packages cannot be authenticated!  
> spotify-client E: There were unauthenticated packages and -y was used
> without --allow-unauthenticated Error:
> /Stage[main]/Profile::Utils_multimedia/Package[spotify-client]/ensure:
> change from purged to latest failed: Could not update: Execution of
> '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install
> spotify-client' returned 100: Reading package lists...
>
> ...
>
> WARNING: The following packages cannot be authenticated!  
> spotify-client E: There were unauthenticated packages and -y was used
> without --allow-unauthenticated

I had previously tried installing via snap with no luck, and also tried with an old spotify key.  Maybe this history is part of the problem?  How can I fix this?
 

[1]: https://www.spotify.com/ca-en/download/linux/
  [2]: https://forge.puppet.com/puppetlabs/apt

 

 

cross posted: https://stackoverflow.com/questions/48533477/puppet-apt-the-following-packages-cannot-be-authenticat...

Reply
0 Replies

Suggested posts