最近使用packer build 报错 无任何输出 一直报“skipping line: 1 skipping line: 2 skipping line: 3.....” , 解决方法如下:
# Install wget and unzip before executing the below steps
wget https://releases.hashicorp.com/packer/1.0.0/packer_1.0.0_linux_amd64.zip
unzip packer_1.0.0_linux_amd64.zip
# This extracts the packer executable
mkdir /packer_home
mv packer /packer_home
export PATH=/packer_home/:$PATH
根本原因 : 因为/sbin/packer位置中有一个预安装的软件包,因此要设置环境变量 。 这个问题在Fedora中也很常见。 (查看官方包装器 issue thread)