Rafi
2013-Aug-15 14:29 UTC
[Puppet Users] /usr/bin/apt-key: 8: /usr/bin/apt-key: mktemp: not found
When installing stackdriver on an ubuntu 12.04 machine, I get the following error: change from notrun to 0 failed: /usr/bin/apt-key: 8: /usr/bin/apt-key: mktemp: not found Based on the instructions here <http://feedback.stackdriver.com/knowledgebase/articles/206135-ubuntu> on their website, my resource is as follows: exec { ''add-stackdriver-key'': command => ''curl --silent https://www.stackdriver.com/RPM-GPG-KEY-stackdriver | apt-key add - && /usr/bin/apt-get update'', path => ''/usr/bin'', require => Apt::Source[''stackdriver''], } The individual commands have zero exit codes, so I expected them to work: curl --silent https://www.stackdriver.com/RPM-GPG-KEY-stackdriver | apt-key add - /usr/bin/apt-get update mktemp <http://packaging-farm.dachary.org/packaging-farm/debian/i386/oneiric/usr/bin/apt-key> exists under /bin and /bin is in PATH so I don''t understand why it throws an error. Poking around Google, I see someone came across the same problem <http://ubuntuforums.org/showthread.php?t=1979189> but nobody gave an answer: -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Neil
2013-Aug-17 13:37 UTC
Re: [Puppet Users] /usr/bin/apt-key: 8: /usr/bin/apt-key: mktemp: not found
Your code there says path is just /usr/bin so you need to add /bin Your os user paths are not relevant Neil On 15 Aug 2013 15:29, "Rafi" <rafi@newscred.com> wrote:> When installing stackdriver on an ubuntu 12.04 machine, I get the > following error: > > change from notrun to 0 failed: /usr/bin/apt-key: 8: /usr/bin/apt-key: mktemp: not found > > > Based on the instructions here <http://feedback.stackdriver.com/knowledgebase/articles/206135-ubuntu> on their website, my resource is as follows: > > > exec { ''add-stackdriver-key'': > command => ''curl --silent https://www.stackdriver.com/RPM-GPG-KEY-stackdriver | apt-key add - && /usr/bin/apt-get update'', > path => ''/usr/bin'', > require => Apt::Source[''stackdriver''], > } > > > > The individual commands have zero exit codes, so I expected them to work: > > curl --silent https://www.stackdriver.com/RPM-GPG-KEY-stackdriver | apt-key add - > > /usr/bin/apt-get update > > > mktemp <http://packaging-farm.dachary.org/packaging-farm/debian/i386/oneiric/usr/bin/apt-key> exists under /bin and /bin is in PATH so I don''t understand why it throws an error. > > > Poking around Google, I see someone came across the same problem <http://ubuntuforums.org/showthread.php?t=1979189> but nobody gave an answer: > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.