/usr/bin/apt-key: 8: /usr/bin/apt-key: mktemp: not found

997 views
Skip to first unread message

Rafi

unread,
Aug 15, 2013, 10:29:32 AM8/15/13
to puppet...@googlegroups.com
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 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:
/usr/bin/apt-get update

mktemp 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 but nobody gave an answer:

Neil

unread,
Aug 17, 2013, 9:37:16 AM8/17/13
to puppet...@googlegroups.com

Your code there says path is just /usr/bin so you need to add /bin

Your os user paths are not relevant

Neil

--
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...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages