apt java不能安装,在MacOS上进行Java安装:Apt命令无法正常运行

I have installed the latest version of JAVA (jdk-15.0.1_osx-x64_bin.dmg) on a MacBook (Catalina: 10.15.7).

When I try to use JAVA to install PUPPET MASTER with this command:

$ sudo apt Puppet Master install

I get this message back:

Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home/bin/apt" (-1)

Can anybody explain to me what that means and how I can go about installing Puppet Master in my machine?

Thank you so much

Mike

解决方案

Puppet supports agents running on MacOS, but the server is supported only on various flavors of Linux (even though the main server component runs in a JVM). This is unambiguously stated in the docs for version 7.0, which is current as of the time of this writing. It is less clear in the docs of earlier versions, but no less true.

Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home/bin/apt"

(-1)

Can anybody explain to me what that means

It means that there is no program named apt in your runtime path, though it looks like you may have a dangling symbolic link to such a program, as otherwise it's unclear why the system would be looking specifically for /Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home/bin/apt. Note well that apt is neither a standard component of OS X nor a standard utility packaged with the JVM.

and how I can go about

installing Puppet Master in my machine?

There is no supported way to do this. It might nevertheless be possible to make it work, but you would probably need to figure it out on your own. Before you go too far down that path, however, do be sure that you need the master (server) and not just the agent.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值